- Create /var/amavis/var directory at install time [1]

- Install the amavisd-release script [2]
- Drop maintainership [3]

PR:		ports/89723 [1], ports/90047 [2]
Submitted by:	Mipam <root@relay3.ordina.nl> [1],
		Dave Smith <david.smith@omnieng.co.uk> [2],
		Blaz Zupan <blaz@si.FreeBSD.org> (maintainer, by private
		email) [3]
This commit is contained in:
Sam Lawrance 2005-12-09 00:10:26 +00:00
parent 51532541d3
commit 1cde264552
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=150693
3 changed files with 7 additions and 2 deletions

View file

@ -8,6 +8,7 @@
PORTNAME= amavisd-new
PORTVERSION= 2.3.3
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= security
MASTER_SITES= http://www.ijs.si/software/amavisd/ \
@ -15,7 +16,7 @@ MASTER_SITES= http://www.ijs.si/software/amavisd/ \
http://ftp.cfu.net/pub/amavisd-new/
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.p/-p/}
MAINTAINER= blaz@si.FreeBSD.org
MAINTAINER= ports@FreeBSD.org
COMMENT= Performance-enhanced daemonized version of amavis-perl
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Unix/Syslog.pm:${PORTSDIR}/sysutils/p5-Unix-Syslog \
@ -116,7 +117,7 @@ RUN_DEPENDS+= ${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap
.endif
post-patch:
@for f in amavisd.conf amavisd.conf-sample amavisd amavisd-agent amavisd-nanny; do \
@for f in amavisd.conf amavisd.conf-sample amavisd amavisd-agent amavisd-nanny amavisd-release; do \
${SED} ${SED_SCRIPT} < ${WRKSRC}/$${f} > ${WRKDIR}/$${f}; \
done
@ -133,6 +134,7 @@ do-install:
${INSTALL_SCRIPT} ${WRKDIR}/amavisd ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKDIR}/amavisd-agent ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKDIR}/amavisd-nanny ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKDIR}/amavisd-release ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKDIR}/amavisd.conf ${PREFIX}/etc/amavisd.conf-dist
.if !exists(${PREFIX}/etc/amavisd.conf)
${INSTALL_SCRIPT} ${WRKDIR}/amavisd.conf ${PREFIX}/etc

View file

@ -46,6 +46,8 @@ if [ "$2" = "PRE-INSTALL" ]; then
echo "Created \"${DIR}/db\" directory."
/usr/bin/install -o ${USER} -g ${GROUP} -m 750 -d ${DIR}/tmp
echo "Created \"${DIR}/tmp\" directory."
/usr/bin/install -o ${USER} -g ${GROUP} -m 750 -d ${DIR}/var
echo "Created \"${DIR}/var\" directory."
/usr/bin/install -o ${USER} -g ${GROUP} -m 750 -d ${QUARANTINE}
echo "Created \"${QUARANTINE}\" directory."
fi

View file

@ -38,3 +38,4 @@ etc/amavisd.conf-sample
sbin/amavisd
sbin/amavisd-agent
sbin/amavisd-nanny
sbin/amavisd-release