From owner-svn-ports-all@freebsd.org Sat Sep 16 14:22:44 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E12F0E199FB; Sat, 16 Sep 2017 14:22:44 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B176D77D6E; Sat, 16 Sep 2017 14:22:44 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v8GEMhH8098154; Sat, 16 Sep 2017 14:22:43 GMT (envelope-from mandree@FreeBSD.org) Received: (from mandree@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v8GEMhtU098151; Sat, 16 Sep 2017 14:22:43 GMT (envelope-from mandree@FreeBSD.org) Message-Id: <201709161422.v8GEMhtU098151@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mandree set sender to mandree@FreeBSD.org using -f From: Matthias Andree Date: Sat, 16 Sep 2017 14:22:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r449964 - in head/mail/mailman: . files X-SVN-Group: ports-head X-SVN-Commit-Author: mandree X-SVN-Commit-Paths: in head/mail/mailman: . files X-SVN-Commit-Revision: 449964 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Sep 2017 14:22:45 -0000 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 +# 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