svn commit: r359429 - in head/security/amavisd-milter: . files
Xin LI
delphij at FreeBSD.org
Fri Jun 27 01:31:53 UTC 2014
Author: delphij
Date: Fri Jun 27 01:31:51 2014
New Revision: 359429
URL: http://svnweb.freebsd.org/changeset/ports/359429
QAT: https://qat.redports.org/buildarchive/r359429/
Log:
Stageify and move state directory to /var/run/amavis.
PR: 187101
Submitted by: maintainer (with changes)
Added:
head/security/amavisd-milter/pkg-message
- copied unchanged from r359425, head/security/amavisd-milter/files/pkg-message.in
head/security/amavisd-milter/pkg-plist (contents, props changed)
Deleted:
head/security/amavisd-milter/files/pkg-message.in
Modified:
head/security/amavisd-milter/Makefile
head/security/amavisd-milter/files/amavisd-milter.in
Modified: head/security/amavisd-milter/Makefile
==============================================================================
--- head/security/amavisd-milter/Makefile Fri Jun 27 01:07:04 2014 (r359428)
+++ head/security/amavisd-milter/Makefile Fri Jun 27 01:31:51 2014 (r359429)
@@ -1,12 +1,13 @@
-# Created by: Petr Rehor <prehor at gmail.com>
+# Created by: Petr Rehor <rx at rx.cz>
# $FreeBSD$
PORTNAME= amavisd-milter
PORTVERSION= 1.6.0
+PORTREVISION= 1
CATEGORIES= security mail
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
-MAINTAINER= prehor at gmail.com
+MAINTAINER= rx at rx.cz
COMMENT= Milter for amavisd-new
RUN_DEPENDS= amavisd:${PORTSDIR}/security/amavisd-new
@@ -24,25 +25,23 @@ RUN_DEPENDS= amavisd:${PORTSDIR}/securit
# Shared defaults with security/amavisd-new
AMAVISUSER?= vscan
+AMAVISGROUP?= vscan
AMAVISDIR?= /var/amavis
+RUNDIR= /var/run/amavis
+
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --localstatedir=${AMAVISDIR} --with-working-dir=tmp
+CONFIGURE_ARGS= --localstatedir=${RUNDIR} --with-working-dir=tmp
USE_RC_SUBR= ${PORTNAME}
-SUB_FILES= pkg-message
SUB_LIST= AMAVISUSER=${AMAVISUSER} \
- AMAVISDIR=${AMAVISDIR}
+ AMAVISGROUP=${AMAVISGROUP} \
+ AMAVISDIR=${AMAVISDIR} \
+ RUNDIR=${RUNDIR}
+PLIST_SUB= ${SUB_LIST}
PORTDOCS= AUTHORS CHANGES INSTALL LICENSE README TODO
-NO_STAGE= yes
-PLIST_FILES= sbin/amavisd-milter
-PLIST_SUB= RC_DIR=${RC_DIR} \
- RC_SUFX=${RC_SUFX}
-
-MAN8= amavisd-milter.8
-
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk"
@@ -72,12 +71,10 @@ CONFIGURE_ARGS+=--enable-debug
.endif
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
- @${CAT} ${PKGMESSAGE}
+ ${INSTALL} -d -o ${AMAVISUSER} -g ${AMAVISGROUP} -m 755 ${STAGEDIR}${RUNDIR}
.include <bsd.port.post.mk>
Modified: head/security/amavisd-milter/files/amavisd-milter.in
==============================================================================
--- head/security/amavisd-milter/files/amavisd-milter.in Fri Jun 27 01:07:04 2014 (r359428)
+++ head/security/amavisd-milter/files/amavisd-milter.in Fri Jun 27 01:31:51 2014 (r359429)
@@ -25,12 +25,13 @@ load_rc_config $name
# Set defaults
: ${amavisd_milter_enable:="NO"}
: ${amavisd_milter_user="%%AMAVISUSER%%"}
-: ${amavisd_milter_socket:="%%AMAVISDIR%%/amavisd-milter.sock"}
+: ${amavisd_milter_socket:="%%RUNDIR%%/amavisd-milter.sock"}
: ${amavisd_milter_socket_perm:="0666"}
+: ${amavisd_am_pdp_socket:="%%AMAVISDIR%%/amavisd.sock"}
-pidfile="${amavisd_milter_pidfile:-%%AMAVISDIR%%/amavisd-milter.pid}"
+pidfile="${amavisd_milter_pidfile:-%%RUNDIR%%/amavisd-milter.pid}"
command="%%PREFIX%%/sbin/amavisd-milter"
-command_args="-p ${pidfile} -s ${amavisd_milter_socket}"
+command_args="-p ${pidfile} -s ${amavisd_milter_socket} -S ${amavisd_am_pdp_socket}"
required_files="%%PREFIX%%/etc/amavisd.conf"
start_postcmd="amavisd_milter_postcmd"
Copied: head/security/amavisd-milter/pkg-message (from r359425, head/security/amavisd-milter/files/pkg-message.in)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/amavisd-milter/pkg-message Fri Jun 27 01:31:51 2014 (r359429, copy of r359425, head/security/amavisd-milter/files/pkg-message.in)
@@ -0,0 +1,12 @@
+
+*******************************************************************
+
+ To configure amavisd-milter, sendmail and amavisd-new point
+ your browser to http://amavisd-milter.sourceforge.net
+
+ Enable amavisd-milter in /etc/rc.conf with the following line:
+
+ amavisd_milter_enable="YES"
+
+*******************************************************************
+
Added: head/security/amavisd-milter/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/amavisd-milter/pkg-plist Fri Jun 27 01:31:51 2014 (r359429)
@@ -0,0 +1,8 @@
+ at unexec if service amavisd-milter status | grep -q "amavisd-milter is running"; then service amavisd-milter stop; fi
+sbin/amavisd-milter
+man/man8/amavisd-milter.8.gz
+ at mode 755
+ at owner %%AMAVISUSER%%
+ at group %%AMAVISGROUP%%
+ at dirrmtry %%RUNDIR%%
+ at exec install -d -o %%AMAVISUSER%% -g %%AMAVISGROUP%% -m 755 %%RUNDIR%%
More information about the svn-ports-all
mailing list