Skip site navigation (1)Skip section navigation (2)
Date:      30 Dec 2003 06:24:13 -0800
From:      Fumihiko Kimura <jfkimura@yahoo.co.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        svenasse@polaris.ca
Subject:   ports/60728: [Change-request] ports: mail/amavis-perl
Message-ID:  <20031230142413.43348.qmail@la.fkimura.com>
Resent-Message-ID: <200312301430.hBUEUNaX052575@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         60728
>Category:       ports
>Synopsis:       [Change-request] ports: mail/amavis-perl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 30 06:30:23 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Fumihiko Kimura
>Release:        FreeBSD 4.9-RELEASE i386
>Organization:
>Environment:
>Description:

I do not use vscan. I usually use to ClamAV and/or H+BEDV AntiVir wholly.
I request that I can realize these.

In addition, I added the following to be convenient.

  - added disable-x-header
  - added with-warnsender=no
  - appoint with-amavisuser


>How-To-Repeat:
>Fix:

	Check:
	FreeBSD 4.9-RELEASE

==== Begin here
diff -urN amavis-perl-orig/Makefile amavis-perl/Makefile
--- amavis-perl-orig/Makefile	Sat Dec 13 01:04:52 2003
+++ amavis-perl/Makefile	Tue Dec 30 06:06:21 2003
@@ -13,8 +13,7 @@
 MAINTAINER=	svenasse@polaris.ca
 COMMENT=	Mail Virus Scanner (uses external antivirus)
 
-BUILD_DEPENDS=	${LOCALBASE}/bin/uvscan:${PORTSDIR}/security/vscan \
-		${LOCALBASE}/bin/lha:${PORTSDIR}/archivers/lha \
+BUILD_DEPENDS=	${LOCALBASE}/bin/lha:${PORTSDIR}/archivers/lha \
 		${LOCALBASE}/bin/unarj:${PORTSDIR}/archivers/unarj \
 		${LOCALBASE}/bin/unrar:${PORTSDIR}/archivers/unrar \
 		${LOCALBASE}/bin/zoo:${PORTSDIR}/archivers/zoo \
@@ -29,12 +28,29 @@
 		${SITE_PERL}/Archive/Tar.pm:${PORTSDIR}/archivers/p5-Archive-Tar \
 		${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
 		${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip
+
+.if defined(WITHOUT_AMAVIS_VSCAN)
+.if ! ${WITHOUT_AMAVIS_VSCAN} == YES
+BUILD_DEPENDS+= ${LOCALBASE}/bin/uvscan:${PORTSDIR}/security/vscan
+.endif
+.endif
 .if !exists(/usr/bin/bzip2)
 BUILD_DEPENDS+=	bunzip2:${PORTSDIR}/archivers/bzip2
 .endif
 RUN_DEPENDS=	${BUILD_DEPENDS}
 
 GNU_CONFIGURE=	yes
+
+.if defined(WITHOUT_AMAVIS_X-HEADER)
+CONFIGURE_ARGS+=	--disable-x-header
+.endif
+.if defined(WITHOUT_AMAVIS_WARNSENDER)
+CONFIGURE_ARGS+=	--with-warnsender=no
+.endif
+.if defined(WITH_AMAVIS_USER)
+CONFIGURE_ARGS+=	--with-amavisuser="${WITH_AMAVIS_USER}"
+.endif
+
 CONFIGURE_ARGS+=	--with-virusdir=/var/spool/quarantine --with-runtime-dir=/var/log/amavis \
 			--with-logdir=/var/log/amavis
==== END here


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031230142413.43348.qmail>