aboutsummaryrefslogtreecommitdiffstats
path: root/security/amavisd-new
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2003-01-17 11:47:38 +0800
committerijliao <ijliao@FreeBSD.org>2003-01-17 11:47:38 +0800
commit7ce06fcf76597c07fd1a6a659c66faf66356f378 (patch)
treecd9f1c8f06794cfcbd8245d853baf614b35c2c4a /security/amavisd-new
parentfdf623ce6b5987b829696d4258fd8421b76de5e3 (diff)
downloadfreebsd-ports-graphics-7ce06fcf76597c07fd1a6a659c66faf66356f378.tar.gz
freebsd-ports-graphics-7ce06fcf76597c07fd1a6a659c66faf66356f378.tar.zst
freebsd-ports-graphics-7ce06fcf76597c07fd1a6a659c66faf66356f378.zip
upgrade to 20021227 p2
allow build without sendmail milter Submitted by: maintainer
Diffstat (limited to 'security/amavisd-new')
-rw-r--r--security/amavisd-new/Makefile16
-rw-r--r--security/amavisd-new/distinfo2
-rw-r--r--security/amavisd-new/pkg-plist4
3 files changed, 18 insertions, 4 deletions
diff --git a/security/amavisd-new/Makefile b/security/amavisd-new/Makefile
index d6ec8f15b92..4a65858e81b 100644
--- a/security/amavisd-new/Makefile
+++ b/security/amavisd-new/Makefile
@@ -7,7 +7,7 @@
# Based on amavisd ports makefile.
PORTNAME= amavisd-new
-PORTVERSION= 20021227.p1
+PORTVERSION= 20021227.p2
CATEGORIES= security
MASTER_SITES= http://www.ijs.si/software/amavisd/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-p/}
@@ -45,10 +45,22 @@ AMAVISDIR?= /var/amavis
AMAVISQUARANTINE?= /var/virusmails
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/\.p.+//}
+
+.if !exists(/usr/lib/libmilter.so) && !exists(${PREFIX}/lib/libmilter.so)
+AMAVIS_NOMILTER="@comment "
+.endif
+
+PLIST_SUB+= AMAVIS_NOMILTER=${AMAVIS_NOMILTER}
+
+.if defined(AMAVIS_NOMILTER)
+do-build:
+ @${ECHO} libmilter not available, not building amavis-milter and amavis
+.else
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-user=${AMAVISUSER} --with-runtime-dir=${AMAVISDIR}
CONFIGURE_WRKSRC= ${WRKSRC}/helper-progs
BUILD_WRKSRC= ${WRKSRC}/helper-progs
+.endif
pre-build:
for file in amavisd.sh INSTALL DEINSTALL MESSAGE; do \
@@ -70,8 +82,10 @@ pre-install:
@${SH} ${PKGINSTALL} ${DISTNAME} PRE-INSTALL
do-install:
+.if !defined(AMAVIS_NOMILTER)
${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/helper-progs/amavis-milter ${PREFIX}/sbin
+.endif
${INSTALL_SCRIPT} ${WRKSRC}/amavisd ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKDIR}/amavisd.conf ${PREFIX}/etc/amavisd.conf-dist
${INSTALL_SCRIPT} ${WRKDIR}/amavisd.sh ${PREFIX}/etc/rc.d
diff --git a/security/amavisd-new/distinfo b/security/amavisd-new/distinfo
index 68ec0474898..8a1e4d7efee 100644
--- a/security/amavisd-new/distinfo
+++ b/security/amavisd-new/distinfo
@@ -1 +1 @@
-MD5 (amavisd-new-20021227-p1.tar.gz) = abc443e113911a154d0f7e8c8e62e355
+MD5 (amavisd-new-20021227-p2.tar.gz) = b147d532730cf7c77fef71114234ff65
diff --git a/security/amavisd-new/pkg-plist b/security/amavisd-new/pkg-plist
index 01408742d28..b30e9e4297e 100644
--- a/security/amavisd-new/pkg-plist
+++ b/security/amavisd-new/pkg-plist
@@ -16,6 +16,6 @@
%%PORTDOCS%%@dirrm share/doc/amavisd-new
etc/amavisd.conf-dist
etc/rc.d/amavisd.sh
-sbin/amavis
-sbin/amavis-milter
+%%AMAVIS_NOMILTER%%sbin/amavis
+%%AMAVIS_NOMILTER%%sbin/amavis-milter
sbin/amavisd