Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 02 Sep 2020 13:25:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 249062] sysutils/nut: should create etc/syslog.d before copying file
Message-ID:  <bug-249062-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249062

            Bug ID: 249062
           Summary: sysutils/nut: should create etc/syslog.d before
                    copying file
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: cy@FreeBSD.org
          Reporter: dvl@FreeBSD.org
          Assignee: cy@FreeBSD.org
             Flags: maintainer-feedback?(cy@FreeBSD.org)

Created attachment 217704
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217704&action=
=3Dedit
creates etc/syslog.d, bumps PORTREVSION, and adds the directory to pkg-plis=
t.

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:~] $=20


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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249062-7788>