aboutsummaryrefslogtreecommitdiff
path: root/mail/antivirus-milter
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-10-31 22:57:24 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-10-31 22:57:24 +0000
commit5de0996e47f72bec3e868eb2e3f47c363dfde536 (patch)
tree1286561553f259b65e56c75b6422cf5903217ce5 /mail/antivirus-milter
parent4f6290bfccacca29f76379ab8d67478b693e7b79 (diff)
downloadports-5de0996e47f72bec3e868eb2e3f47c363dfde536.tar.gz
ports-5de0996e47f72bec3e868eb2e3f47c363dfde536.zip
Avoid @exec and keep track of directories
Allow packaging as a user Bump portrevision as the plist was creating run/quarantine and the makefile was creating quarantine
Notes
Notes: svn path=/head/; revision=371947
Diffstat (limited to 'mail/antivirus-milter')
-rw-r--r--mail/antivirus-milter/Makefile3
-rw-r--r--mail/antivirus-milter/pkg-plist5
2 files changed, 4 insertions, 4 deletions
diff --git a/mail/antivirus-milter/Makefile b/mail/antivirus-milter/Makefile
index 3e97b7501e38..eaf480274e64 100644
--- a/mail/antivirus-milter/Makefile
+++ b/mail/antivirus-milter/Makefile
@@ -2,7 +2,7 @@
PORTNAME= antivirus
PORTVERSION= 3.30
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= dinoex
@@ -49,7 +49,6 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/clamav.conf \
${STAGEDIR}${PREFIX}/etc/antivirus.conf-clamav
${MKDIR} ${STAGEDIR}${ANTIVIRUS_DIR}/spool ${STAGEDIR}${ANTIVIRUS_DIR}/run ${STAGEDIR}${ANTIVIRUS_DIR}/quarantine
- ${CHOWN} -R nobody:nobody ${STAGEDIR}${ANTIVIRUS_DIR}/
@${ECHO_MSG} "Add to your *.mc configfile:"
@${ECHO_MSG} "INPUT_MAIL_FILTER(\`antivirus', \`S=local:${ANTIVIRUS_DIR}/antivirus.sock, F=')"
diff --git a/mail/antivirus-milter/pkg-plist b/mail/antivirus-milter/pkg-plist
index 4b58b0614423..ca5024cadc08 100644
--- a/mail/antivirus-milter/pkg-plist
+++ b/mail/antivirus-milter/pkg-plist
@@ -1,5 +1,6 @@
libexec/antivirus
etc/antivirus.conf-dist
etc/antivirus.conf-clamav
-@exec mkdir -p %%ANTIVIRUS%%/spool %%ANTIVIRUS%%/run %%ANTIVIRUS%%/run/quarantine
-@exec chown -R nobody:nobody %%ANTIVIRUS%%/
+@dir(nobody,nobody) %%ANTIVIRUS%%/spool
+@dir(nobody,nobody) %%ANTIVIRUS%%/quarantine
+@dir(nobody,nobody) %%ANTIVIRUS%%/run