Bug 248058

Summary: net-mgmt/net-snmp: Install newsyslog config as a sample
Product: Ports & Packages Reporter: James French <james>
Component: Individual Port(s)Assignee: Ryan Steinmetz <zi>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: driesm, james
Priority: --- Keywords: buildisok, easy, feature
Version: LatestFlags: bugzilla: maintainer-feedback? (zi)
koobs: merge-quarterly?
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to install newsyslog.conf.d/net-snmp.conf as a @sample
none
Poudriere build log
none
Patch to install newsyslog.conf.d/net-snmp.conf as a @sample
none
Poudriere build log none

Description James French 2020-07-18 03:32:26 UTC
Created attachment 216527 [details]
Patch to install newsyslog.conf.d/net-snmp.conf as a @sample

net-mgmt/net-snmp ships with a sample newsyslog.conf file that gets installed into /usr/local/etc/newsyslog.conf.d.

If a user decides to make changes to this file then those changes:
- Get overwritten when the package is updated
- Get complained about by periodic-security because the installed file no longer matches the package checksum

This patch instead installs the sample file under ${EXAMPLESDIR}/newsyslog.conf and uses @sample to install it under etc/newsyslog.conf.d.
Comment 1 James French 2020-07-18 03:35:13 UTC
Created attachment 216528 [details]
Poudriere build log
Comment 2 James French 2020-07-18 04:04:28 UTC
The attached patch only works if newsyslog.conf.d already exists. Putting together a correction now.
Comment 3 James French 2020-07-18 05:16:17 UTC
Created attachment 216530 [details]
Patch to install newsyslog.conf.d/net-snmp.conf as a @sample

Changes:
- Installs the newsyslog file under share/snmp/newsyslog.conf.sample
- Installation has been moved to the install-config rather than post-install
Comment 4 James French 2020-07-18 05:23:56 UTC
Created attachment 216531 [details]
Poudriere build log
Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2020-07-18 07:29:22 UTC
^Triage: [tags] in issue Titles are deprecated
Comment 6 Automation User 2020-08-02 00:13:19 UTC
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/173342776
Comment 7 Dries Michiels freebsd_committer freebsd_triage 2020-08-09 07:43:46 UTC
*** Bug 248466 has been marked as a duplicate of this bug. ***
Comment 8 James French 2020-09-04 07:06:20 UTC
Any chance we could get this committed under maintainer-timeout please? With bug 248466 as evidence there's a few people running into this issue.
Comment 9 Ryan Steinmetz freebsd_committer freebsd_triage 2020-09-04 16:19:21 UTC
This will be included in the update to 5.9
Comment 10 James French 2020-09-04 16:34:59 UTC
(In reply to Ryan Steinmetz from comment #9)

Perfect, thanks for the feedback!
Comment 11 Ryan Steinmetz freebsd_committer freebsd_triage 2020-09-12 12:58:26 UTC
Committed as part of the 5.9 update