diff options
author | adamw <adamw@FreeBSD.org> | 2017-09-02 15:03:53 +0000 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2017-09-02 15:03:53 +0000 |
commit | fbaee032a5d9ee9e7f3f4163cbee317ad27927cf (patch) | |
tree | 6392b0d00e05cbfce3e3dea009a9203257293636 | |
parent | 829f621486d1fb669c58658cc2de2b9c8904950a (diff) | |
download | FreeBSD-ports-fbaee032a5d9ee9e7f3f4163cbee317ad27927cf.zip FreeBSD-ports-fbaee032a5d9ee9e7f3f4163cbee317ad27927cf.tar.gz |
MFH: r449108
Disable the pkg-deinstall script.
spamd's pkg-install adds spamd stuff to /etc/services, and pkg-deinstall
removed it. The problem is that pkg doesn't run DEINSTALL before INSTALL
when upgrading/reinstalling. As a result, when spamd is restarted,
/etc/services winds up lacking the spamd entries, causing spamd to fail
to start.
The ideal solution is pkg running those targets in the predicted order,
or pkg gaining a @services keyword. In the meantime, this commit just
disables the pkg-deinstall. If you are uninstalling spamd you can remove
those /etc/services entries by hand.
PR: 212335
Approved by: maintainer timeout (~ 1 yr)
Approved by: ports-secteam (delphij)
-rw-r--r-- | mail/spamd/Makefile | 2 | ||||
-rw-r--r-- | mail/spamd/pkg-deinstall | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/mail/spamd/Makefile b/mail/spamd/Makefile index 0a3672d..d0b987e 100644 --- a/mail/spamd/Makefile +++ b/mail/spamd/Makefile @@ -3,7 +3,7 @@ PORTNAME= spamd PORTVERSION= 4.9.1 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= mail MASTER_SITES= SF/freebsdspamd/spamd diff --git a/mail/spamd/pkg-deinstall b/mail/spamd/pkg-deinstall index 5de9b4d..a1ec026 100644 --- a/mail/spamd/pkg-deinstall +++ b/mail/spamd/pkg-deinstall @@ -5,7 +5,9 @@ # # $FreeBSD$ -if [ "$2" = "DEINSTALL" ]; then +#if [ "$2" = "DEINSTALL" ]; then +# Disabled until pkg runs DEINSTALL before INSTALL in upgrades +if false; then FILE="/etc/services" echo "===> Removing spamd entries from ${FILE}" sed -i '' \ |