1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

upgrade to 20021227 p2

allow build without sendmail milter

Submitted by:	maintainer
This commit is contained in:
Ying-Chieh Liao 2003-01-17 03:47:38 +00:00
parent e3c8955dcc
commit f8bb702c0b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=73300
3 changed files with 18 additions and 4 deletions

View File

@ -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

View File

@ -1 +1 @@
MD5 (amavisd-new-20021227-p1.tar.gz) = abc443e113911a154d0f7e8c8e62e355
MD5 (amavisd-new-20021227-p2.tar.gz) = b147d532730cf7c77fef71114234ff65

View File

@ -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