Date: Sat, 16 Sep 2017 14:22:43 +0000 (UTC) From: Matthias Andree <mandree@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r449964 - in head/mail/mailman: . files Message-ID: <201709161422.v8GEMhtU098151@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mandree Date: Sat Sep 16 14:22:43 2017 New Revision: 449964 URL: https://svnweb.freebsd.org/changeset/ports/449964 Log: Add a newsyslog configuration file, to rotate logs. This enforces the EXAMPLES option because we can't keep the .sample file in etc/newsyslog.conf.d/* - it would be processed as the actual file, so we use %%EXAMPLESDIR%% for the distributed version. Added: head/mail/mailman/files/mailman.newsyslog.sample.in (contents, props changed) Modified: head/mail/mailman/Makefile head/mail/mailman/pkg-plist Modified: head/mail/mailman/Makefile ============================================================================== --- head/mail/mailman/Makefile Sat Sep 16 12:01:42 2017 (r449963) +++ head/mail/mailman/Makefile Sat Sep 16 14:22:43 2017 (r449964) @@ -3,7 +3,7 @@ PORTNAME= mailman DISTVERSION= 2.1.24 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= mail MASTER_SITES= GNU \ SF/${PORTNAME}/Mailman%202.1%20%28stable%29/${PORTVERSION} \ @@ -57,7 +57,7 @@ GROUPS= ${MM_GROUPNAME} MAILMANDIR= ${PREFIX}/${MM_DIR} PLIST_SUB= MMDIR=${MM_DIR} IMGDIR=${IMGDIR} MM_USERNAME=${MM_USERNAME} MM_GROUPNAME=${MM_GROUPNAME} -SUB_FILES= pkg-message pkg-install pkg-deinstall +SUB_FILES= pkg-message pkg-install pkg-deinstall mailman.newsyslog.sample SUB_LIST= MAILMANDIR=${MAILMANDIR} USER=${MM_USERNAME} GROUP=${MM_GROUPNAME} PYTHON_CMD="${PYTHON_CMD}" PORTDOCS= ACKNOWLEDGMENTS BUGS FAQ INSTALL NEWS README README-I18N.en \ @@ -83,6 +83,12 @@ MTA_DESC= Integrate with which MTA? .include <bsd.port.options.mk> +# enforce EXAMPLES option, necessary so that @sample +# can install the newsyslog file +.if empty(PORT_OPTIONS:MEXAMPLES) +PORT_OPTIONS+= EXAMPLES +.endif + .if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" @@ -170,6 +176,8 @@ pre-configure: .endif post-install: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKDIR}/mailman.newsyslog.sample ${STAGEDIR}${EXAMPLESDIR} .for i in admindb admin confirm create edithtml listinfo options private \ rmlist roster subscribe ${STRIP_CMD} ${STAGEDIR}${MAILMANDIR}/cgi-bin/${i} Added: head/mail/mailman/files/mailman.newsyslog.sample.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/mail/mailman/files/mailman.newsyslog.sample.in Sat Sep 16 14:22:43 2017 (r449964) @@ -0,0 +1,11 @@ +# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] +%%MAILMANDIR%%/logs/bounce %%USER%%:%%GROUP%% 660 10 2000 * X %%MAILMANDIR%%/data/master-qrunner.pid +%%MAILMANDIR%%/logs/error %%USER%%:%%GROUP%% 660 10 2000 * X %%MAILMANDIR%%/data/master-qrunner.pid +%%MAILMANDIR%%/logs/locks %%USER%%:%%GROUP%% 660 10 2000 * X %%MAILMANDIR%%/data/master-qrunner.pid +%%MAILMANDIR%%/logs/mischief %%USER%%:%%GROUP%% 660 10 2000 * X %%MAILMANDIR%%/data/master-qrunner.pid +%%MAILMANDIR%%/logs/post %%USER%%:%%GROUP%% 660 10 2000 * X %%MAILMANDIR%%/data/master-qrunner.pid +%%MAILMANDIR%%/logs/qrunner %%USER%%:%%GROUP%% 660 10 2000 * X %%MAILMANDIR%%/data/master-qrunner.pid +%%MAILMANDIR%%/logs/smtp %%USER%%:%%GROUP%% 660 10 2000 * X %%MAILMANDIR%%/data/master-qrunner.pid +%%MAILMANDIR%%/logs/smtp-failure %%USER%%:%%GROUP%% 660 10 2000 * X %%MAILMANDIR%%/data/master-qrunner.pid +%%MAILMANDIR%%/logs/subscribe %%USER%%:%%GROUP%% 660 10 2000 * X %%MAILMANDIR%%/data/master-qrunner.pid +%%MAILMANDIR%%/logs/vette %%USER%%:%%GROUP%% 660 10 2000 * X %%MAILMANDIR%%/data/master-qrunner.pid Modified: head/mail/mailman/pkg-plist ============================================================================== --- head/mail/mailman/pkg-plist Sat Sep 16 12:01:42 2017 (r449963) +++ head/mail/mailman/pkg-plist Sat Sep 16 14:22:43 2017 (r449964) @@ -1,5 +1,7 @@ @postunexec if cmp -s %D/%%MMDIR%%/Mailman/mm_cfg.py %D/%%MMDIR%%/Mailman/mm_cfg.py.dist; then rm -f %D/%%MMDIR%%/Mailman/mm_cfg.py; fi @postunexec rm -f %D/%%MMDIR%%/Mailman/mm_cfg.pyc +@dir etc/newsyslog.conf.d +@sample %%EXAMPLESDIR%%/mailman.newsyslog.sample etc/newsyslog.conf.d/mailman.newsyslog %%IMGDIR%%/mailman-large.jpg %%IMGDIR%%/gnu-head-tiny.jpg %%IMGDIR%%/mailman.jpg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709161422.v8GEMhtU098151>