1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/mail/spamd/pkg-deinstall
Adam Weinberger e9fc54e13d 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)
MFH:		2017Q3
2017-09-01 22:03:04 +00:00

19 lines
380 B
Makefile

#!/bin/sh
#
# ex:ts=4:sw=4:noet
#-*- mode: makefile; tab-width: 4; -*-
#
# $FreeBSD$
#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 '' \
-e "/^spamd-sync.*8025/d" \
-e "/^spamd-cfg.*8026/d" \
-e "/^spamd.*8025/d" \
${FILE}
fi