head	1.3;
access;
symbols
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.2
	RELEASE_5_3_0:1.2;
locks; strict;
comment	@# @;


1.3
date	2008.06.18.23.15.47;	author pav;	state dead;
branches;
next	1.2;

1.2
date	2004.06.06.23.18.36;	author pav;	state Exp;
branches;
next	1.1;

1.1
date	2004.05.30.11.33.25;	author pav;	state Exp;
branches;
next	;


desc
@@


1.3
log
@- Delete expired security/amavisd port: depends on misc/compat3x, which has
  security problems; old version
@
text
@--- amavis/av/clamavd.orig	Tue Feb 25 11:42:54 2003
+++ amavis/av/clamavd	Mon Jun  7 01:16:46 2004
@@@@ -5,7 +5,7 @@@@
 
 if ($clamd) {
     do_log(2,"Using clamd");
-    my $sock = IO::Socket::INET->new('127.0.0.1:3310');
+    my $sock = IO::Socket::UNIX->new(Peer => '/var/run/clamav/clamd');
     if (defined $sock) {
 	$sock->print("SCAN $TEMPDIR/parts\n");
 	$sock->flush;
@@@@ -15,7 +15,7 @@@@
 	if ($output =~ /FOUND$/) {	# no errors, a virus was found
 	    $scanner_errors = 0;
 	    @@virusname = ($output =~ /: (.+) FOUND/g);
-	    return 1;  # 'true' indicates virus found and stops further checking
+	    do_virus($output);
 	} elsif ($output =~ /OK$/) {            # no errors, no viruses
 	    $scanner_errors = 0;
 	} elsif ($output =~ /ERROR$/) {
@


1.2
log
@- Really fix connection to clamd
- Actually use result returned by clamd

PR:		ports/67621
Submitted by:	Yoshisato YANAGISAWA <osho@@pcc-software.org>
@
text
@@


1.1
log
@- Convert rc script to rcng [1]
- Fix build with milter [1, 2]
- Fix default connection method against clamd [3]

PR:		ports/56658 [1], ports/57056 [2], ports/67371 [3]
Submitted by:	Scot W. Hetzel <hetzelsw@@westbend.net>,
		Yoshisato YANAGISAWA <osho@@pcc-software.org>
@
text
@d2 1
a2 1
+++ amavis/av/clamavd	Sun May 30 13:26:34 2004
d8 1
a8 1
+    my $sock = IO::Socket::UNIX->new('/var/run/clamav/clamd');
d12 9
@

