From owner-svn-ports-head@freebsd.org Sat Nov 24 02:50:09 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 14C39113AC3E; Sat, 24 Nov 2018 02:50:09 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AEA1180162; Sat, 24 Nov 2018 02:50:08 +0000 (UTC) (envelope-from woodsb02@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9071C27B15; Sat, 24 Nov 2018 02:50:08 +0000 (UTC) (envelope-from woodsb02@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id wAO2o8Wu044987; Sat, 24 Nov 2018 02:50:08 GMT (envelope-from woodsb02@FreeBSD.org) Received: (from woodsb02@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAO2o6TT044975; Sat, 24 Nov 2018 02:50:06 GMT (envelope-from woodsb02@FreeBSD.org) Message-Id: <201811240250.wAO2o6TT044975@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: woodsb02 set sender to woodsb02@FreeBSD.org using -f From: Ben Woods Date: Sat, 24 Nov 2018 02:50:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r485721 - in head: . sysutils/munin-master sysutils/munin-master/files sysutils/munin-node sysutils/munin-node/files X-SVN-Group: ports-head X-SVN-Commit-Author: woodsb02 X-SVN-Commit-Paths: in head: . sysutils/munin-master sysutils/munin-master/files sysutils/munin-node sysutils/munin-node/files X-SVN-Commit-Revision: 485721 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: AEA1180162 X-Spamd-Result: default: False [1.37 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_SPAM_LONG(0.44)[0.439,0]; NEURAL_SPAM_MEDIUM(0.75)[0.746,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_SPAM_SHORT(0.18)[0.181,0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Nov 2018 02:50:09 -0000 Author: woodsb02 Date: Sat Nov 24 02:50:06 2018 New Revision: 485721 URL: https://svnweb.freebsd.org/changeset/ports/485721 Log: sysutils/munin-*: Use .conf suffix for /usr/local/etc/newsyslog.conf.d/ - Rename the files installed to /usr/local/etc/newsyslog.conf.d/ to end with a '.conf' suffix. - Add pkg-install script to automatically move any copies of the old newsyslog file to the new location if it was modified from the default or delete the old file if it is has not been modified. - Add a note to UPDATING and pkg-message to warn users of this, in case they are using provisioning/configuration management tools which need to be modified. Recent changes to /etc/newsyslog.conf (r340318) will only include files from the /usr/local/etc/newsyslog.conf.d/ directory which end with '.conf' and do not beginning with a '.' character. Reviewed by: mandree (D17088) Approved by: mat (maintainer) Differential Revision: https://reviews.freebsd.org/D17089 Modified: head/UPDATING head/sysutils/munin-master/Makefile head/sysutils/munin-master/files/pkg-message.in head/sysutils/munin-master/pkg-install head/sysutils/munin-master/pkg-plist head/sysutils/munin-node/Makefile head/sysutils/munin-node/files/pkg-message.in head/sysutils/munin-node/pkg-install head/sysutils/munin-node/pkg-plist Modified: head/UPDATING ============================================================================== --- head/UPDATING Sat Nov 24 01:18:57 2018 (r485720) +++ head/UPDATING Sat Nov 24 02:50:06 2018 (r485721) @@ -5,6 +5,22 @@ they are unavoidable. You should get into the habit of checking this file for changes each time you update your ports collection, before attempting any port upgrades. +20181124: + AFFECTS: users of sysutils/munin-master, sysutils/munin-node, www/owncloud, mail/mailman, net/ntpa + AUTHOR: woodsb02@FreeBSD.org + + The newsyslog.conf(5) filename installed by the port has been changed: + OLD: ${PREFIX}/etc/newsyslog.conf.d/${PORTNAME} + NEW: ${PREFIX}/etc/newsyslog.conf.d/${PORTNAME}.conf + + Any file found at the old location will be automatically moved to the new + location. This will ensure log rotation will continue to work after change + r340318 to FreeBSD base, where the default newsyslog configuration now only + includes filenames that end with '.conf' and do not begin with '.'. + + If you use provisioning/configuration management tools to create or edit this + file, you will need to change their configuration to use the new filename. + 20181111 AFFECTS: users of graphics/mesa-libs AUTHOR: jbeich@FreeBSD.org Modified: head/sysutils/munin-master/Makefile ============================================================================== --- head/sysutils/munin-master/Makefile Sat Nov 24 01:18:57 2018 (r485720) +++ head/sysutils/munin-master/Makefile Sat Nov 24 02:50:06 2018 (r485721) @@ -3,6 +3,7 @@ PORTNAME= munin PORTVERSION= ${MUNIN_VERSION} +PORTREVISION= 1 CATEGORIES= sysutils perl5 MASTER_SITES= ${MUNIN_SITES} PKGNAMESUFFIX= -master Modified: head/sysutils/munin-master/files/pkg-message.in ============================================================================== --- head/sysutils/munin-master/files/pkg-message.in Sat Nov 24 01:18:57 2018 (r485720) +++ head/sysutils/munin-master/files/pkg-message.in Sat Nov 24 02:50:06 2018 (r485721) @@ -10,3 +10,13 @@ If you need to customize the munin crontab, remove the containing #BEGIN_MUNIN_MAIN and #END_MUNIN_MAIN, and add a line with #MANUAL_MUNIN_CRONTAB. ******************************************************************** +The munin-master newsyslog.conf(5) filename has been changed: + OLD: ${PREFIX}/etc/newsyslog.conf.d/munin-master + NEW: ${PREFIX}/etc/newsyslog.conf.d/munin-master.conf + +Any file found at the old location has been automatically moved to +the new location. This was done to ensure log rotation continued to +work after change r340318 made to FreeBSD base, where the default +newsyslog configuration now only includes filenames that end with +'.conf' and do not begin with '.'. +******************************************************************** Modified: head/sysutils/munin-master/pkg-install ============================================================================== --- head/sysutils/munin-master/pkg-install Sat Nov 24 01:18:57 2018 (r485720) +++ head/sysutils/munin-master/pkg-install Sat Nov 24 02:50:06 2018 (r485721) @@ -60,6 +60,23 @@ move_www_dir() { fi } +move_newsyslog_conf() { + oldfile=${PKG_PREFIX}/etc/newsyslog.conf.d/munin-master + newfile=${PKG_PREFIX}/etc/newsyslog.conf.d/munin-master.conf + samplefile=${PKG_PREFIX}/etc/munin/munin-master.newsyslog + if [ -f ${oldfile} ]; then + echo "Configuration file found in old location: ${oldfile}" + if cmp -s ${samplefile} ${newfile} > /dev/null; then + echo "Configuration file in new location has not been modified from the default: ${newfile}" + echo " => Moving old configuration file to new location" + mv -f ${oldfile} ${newfile} + else + echo "Configuration file in new location has been modified from the default: ${newfile}" + echo " => Deleting old configuration file" + rm ${oldfile} + fi + fi +} ######################################################################## @@ -78,5 +95,6 @@ MAILTO=root #END_MUNIN_MAIN EOT fi + move_newsyslog_conf ;; esac Modified: head/sysutils/munin-master/pkg-plist ============================================================================== --- head/sysutils/munin-master/pkg-plist Sat Nov 24 01:18:57 2018 (r485720) +++ head/sysutils/munin-master/pkg-plist Sat Nov 24 02:50:06 2018 (r485721) @@ -37,7 +37,7 @@ bin/munin-cron @comment BSD.local.dist but if not registered here, it will not exist in PREFIX @comment when the package is installed. @dir etc/newsyslog.conf.d -@sample %%ETCDIR%%/munin-master.newsyslog etc/newsyslog.conf.d/munin-master +@sample %%ETCDIR%%/munin-master.newsyslog etc/newsyslog.conf.d/munin-master.conf %%SITE_PERL%%/Munin/Master/Config.pm %%SITE_PERL%%/Munin/Master/GraphOld.pm %%SITE_PERL%%/Munin/Master/Group.pm Modified: head/sysutils/munin-node/Makefile ============================================================================== --- head/sysutils/munin-node/Makefile Sat Nov 24 01:18:57 2018 (r485720) +++ head/sysutils/munin-node/Makefile Sat Nov 24 02:50:06 2018 (r485721) @@ -3,6 +3,7 @@ PORTNAME= munin PORTVERSION= ${MUNIN_VERSION} +PORTREVISION= 1 CATEGORIES= sysutils perl5 MASTER_SITES= ${MUNIN_SITES} PKGNAMESUFFIX= -node Modified: head/sysutils/munin-node/files/pkg-message.in ============================================================================== --- head/sysutils/munin-node/files/pkg-message.in Sat Nov 24 01:18:57 2018 (r485720) +++ head/sysutils/munin-node/files/pkg-message.in Sat Nov 24 02:50:06 2018 (r485721) @@ -24,3 +24,19 @@ For a list of plugins that will probably work run If this is a fresh install run %%PREFIX%%/sbin/munin-node-configure --shell | sh -x to install the plugins automatically + +******************************************************************** +The munin-node newsyslog.conf(5) filename has been changed: + OLD: ${PREFIX}/etc/newsyslog.conf.d/munin-node + NEW: ${PREFIX}/etc/newsyslog.conf.d/munin-node.conf + +Any file found at the old location has been automatically moved to +the new location. This was done to ensure log rotation continued to +work after change r340318 made to FreeBSD base, where the default +newsyslog configuration now only includes filenames that end with +'.conf' and do not begin with '.'. + +If you use provisioning/configuration management tools to create or +edit this file, you will need to change their configuration to use +the new filename. +******************************************************************** Modified: head/sysutils/munin-node/pkg-install ============================================================================== --- head/sysutils/munin-node/pkg-install Sat Nov 24 01:18:57 2018 (r485720) +++ head/sysutils/munin-node/pkg-install Sat Nov 24 02:50:06 2018 (r485721) @@ -12,6 +12,23 @@ init_plugins() { echo "done." } +move_newsyslog_conf() { + oldfile=${PKG_PREFIX}/etc/newsyslog.conf.d/munin-node + newfile=${PKG_PREFIX}/etc/newsyslog.conf.d/munin-node.conf + samplefile=${PKG_PREFIX}/etc/munin/munin-node.newsyslog + if [ -f ${oldfile} ]; then + echo "Configuration file found in old location: ${oldfile}" + if cmp -s ${samplefile} ${newfile} > /dev/null; then + echo "Configuration file in new location has not been modified from the default: ${newfile}" + echo " => Moving old configuration file to new location" + mv -f ${oldfile} ${newfile} + else + echo "Configuration file in new location has been modified from the default: ${newfile}" + echo " => Deleting old configuration file" + rm ${oldfile} + fi + fi +} ######################################################################## @@ -20,5 +37,6 @@ case $2 in if [ -z "${PACKAGE_BUILDING}" ]; then init_plugins fi + move_newsyslog_conf ;; esac Modified: head/sysutils/munin-node/pkg-plist ============================================================================== --- head/sysutils/munin-node/pkg-plist Sat Nov 24 01:18:57 2018 (r485720) +++ head/sysutils/munin-node/pkg-plist Sat Nov 24 02:50:06 2018 (r485721) @@ -6,7 +6,7 @@ bin/munindoc @comment BSD.local.dist but if not registered here, it will not exist in PREFIX @comment when the package is installed. @dir etc/newsyslog.conf.d -@sample %%ETCDIR%%/munin-node.newsyslog etc/newsyslog.conf.d/munin-node +@sample %%ETCDIR%%/munin-node.newsyslog etc/newsyslog.conf.d/munin-node.conf %%SITE_PERL%%/Munin/Node/Config.pm %%SITE_PERL%%/Munin/Node/Configure/Debug.pm %%SITE_PERL%%/Munin/Node/Configure/History.pm