Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Oct 2014 22:57:24 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r371947 - head/mail/antivirus-milter
Message-ID:  <201410312257.s9VMvOeJ014218@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Oct 31 22:57:24 2014
New Revision: 371947
URL: https://svnweb.freebsd.org/changeset/ports/371947
QAT: https://qat.redports.org/buildarchive/r371947/

Log:
  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

Modified:
  head/mail/antivirus-milter/Makefile
  head/mail/antivirus-milter/pkg-plist

Modified: head/mail/antivirus-milter/Makefile
==============================================================================
--- head/mail/antivirus-milter/Makefile	Fri Oct 31 22:52:41 2014	(r371946)
+++ head/mail/antivirus-milter/Makefile	Fri Oct 31 22:57:24 2014	(r371947)
@@ -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=')"
 

Modified: head/mail/antivirus-milter/pkg-plist
==============================================================================
--- head/mail/antivirus-milter/pkg-plist	Fri Oct 31 22:52:41 2014	(r371946)
+++ head/mail/antivirus-milter/pkg-plist	Fri Oct 31 22:57:24 2014	(r371947)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410312257.s9VMvOeJ014218>