ports/60728: [Change-request] ports: mail/amavis-perl

Fumihiko Kimura jfkimura at yahoo.co.jp
Tue Dec 30 14:30:27 UTC 2003


>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 at 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:



More information about the freebsd-ports-bugs mailing list