Bug 249062

Summary: sysutils/nut: should create etc/syslog.d before copying file
Product: Ports & Packages Reporter: Dan Langille <dvl>
Component: Individual Port(s)Assignee: Cy Schubert <cy>
Status: Closed DUPLICATE    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (cy)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
creates etc/syslog.d, bumps PORTREVSION, and adds the directory to pkg-plist. none

Description Dan Langille freebsd_committer freebsd_triage 2020-09-02 13:25:55 UTC
Created attachment 217704 [details]
creates etc/syslog.d, bumps PORTREVSION, and adds the directory to pkg-plist.

I notice this when installing sysutils/nut on a system which did not have a /usr/local/etc/syslog.d directory:

[2/2] Installing nut-2.7.4_14...
[2/2] Extracting nut-2.7.4_14: 100%
cp: /usr/local/etc/syslog.d/nut: No such file or directory
pkg: POST-INSTALL script failed
[dan@slocum:~] $ ls -l /usr/local/etc/syslog.d
ls: /usr/local/etc/syslog.d: No such file or directory
[dan@slocum:~] $ 


I could reproduce it via poudriere testport:

[121amd64-dvl] Extracting nut-2.7.4_14: 100%
cp: /usr/local/etc/syslog.d/nut: No such file or directory
pkg-static: POST-INSTALL script failed


The attached patch creates that directory, bumps PORTREVSION, and adds the directory to pkg-plist.

I'm happy to commit this on behalf of the maintainer if so wished.
Comment 1 Dan Langille freebsd_committer freebsd_triage 2020-09-03 22:20:56 UTC

*** This bug has been marked as a duplicate of bug 241234 ***