Bug 241234 - sysutils/nut upgrade fails when /usr/local/etc/syslog.d/nut does not exist
Summary: sysutils/nut upgrade fails when /usr/local/etc/syslog.d/nut does not exist
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-13 19:34 UTC by ddrinnon
Modified: 2019-10-14 00:23 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (cy)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ddrinnon 2019-10-13 19:34:21 UTC
When upgrading sysutils/nut and /usr/local/etc/syslog.d/nut does not exist, the upgrade fails with:

cp: /usr/local/etc/syslog.d/nut: No such file or directory
pkg: POST-INSTALL script failed

In fact, the upgrade seems okay and nut does start and run okay.
Comment 1 Cy Schubert freebsd_committer 2019-10-13 22:59:25 UTC
Are you building from port or installing the binary package via pkg?
Comment 2 ddrinnon 2019-10-14 00:23:37 UTC
(In reply to Cy Schubert from comment #1)

I am building from the port with Poudriere.

uname -a:
FreeBSD nas01.cdor.net 11.3-RELEASE-p3 FreeBSD 11.3-RELEASE-p3 #0: Mon Aug 19 21:08:43 UTC 2019     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

pkg info nut:
nut-2.7.4_13
Name           : nut
Version        : 2.7.4_13
Installed on   : Sun Oct 13 12:49:11 2019 MST
Origin         : sysutils/nut
Architecture   : FreeBSD:11:amd64
Prefix         : /usr/local
Categories     : sysutils
Licenses       :
Maintainer     : cy@FreeBSD.org
WWW            : http://www.networkupstools.org/
Comment        : Network UPS Tools
Options        :
        AVAHI          : off
        BASH           : off
        CGI            : on
        DOCS           : on
        FREEIPMI       : off
        IPMIPSU        : off
        IPMI_OFF       : on
        NEON           : on
        NSS            : off
        OPENSSL        : off
        PDU            : off
        SERIAL         : on
        SNMP           : on
        SSL_OFF        : on
        USB            : on
Shared Libs required:
        libgd.so.6
        libpkg.so.4
        libneon.so.27
        libnetsnmp.so.30
Shared Libs provided:
        libnutclient.so.0
        libupsclient.so.4
Annotations    :
        FreeBSD_version: 1103000
        repo_type      : binary
        repository     : head
Flat size      : 6.36MiB
Description    :
This is a developing project to monitor a large assortment of UPS hardware.
Network communications are used so that multiple systems can monitor a
single physical UPS and shut down together if necessary without any
special "sharing hardware" on the UPS itself. CGI scripts are provided
to monitor UPS status via a WEB browser.

WWW: http://www.networkupstools.org/