[Bug 212335] mail/spamd: /etc/services entries are deleted on reinstall
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Sep 2 16:28:45 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=212335
Bug ID: 212335
Summary: mail/spamd: /etc/services entries are deleted on
reinstall
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: ohauer at FreeBSD.org
Reporter: adamw at FreeBSD.org
CC: portmgr at FreeBSD.org
Flags: maintainer-feedback?(ohauer at FreeBSD.org)
Assignee: ohauer at FreeBSD.org
When spamd gets reinstalled (including by upgrade), the /etc/services entries
are deleted during deinstall but not recreated during reinstall. As a result,
spamd won't start after an upgrade. It looks like it is happening because the
pkg-* scripts are not run in the order than spamd is anticipating.
[root at lockup ~] poudriere bulk -j 10amd64 -i mail/spamd
[...]
root at lockup:~ # grep spamd /etc/services
spamd 8025/tcp # spamd(8)
spamd-sync 8025/udp # spamd(8) synchronisation
spamd-cfg 8026/tcp # spamd(8) configuration
root at lockup:~ # pkg upgrade -f spamd
[...]
[lockup] [1/1] Reinstalling spamd-4.9.1_3...
===> Creating groups.
Using existing group '_spamd'.
===> Creating users
Using existing user '_spamd'.
Checking /etc/services for missing service entries <-- pkg-install
[lockup] [1/1] Extracting spamd-4.9.1_3: 100%
===> Removing spamd entries from /etc/services <-- pkg-deinstall
[...]
root at lockup:~ # grep spamd /etc/services
root at lockup:~ #
It looks as if pkg-deinstall is being run after the pkg-install, which seems
strange... I would have thought that the deinstall should run before the
install. I'm not sure whether this is a problem with spamd or with pkg, so I'm
Cc'ing portmgr for input.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list