...
 
Commits (3)
spamassassin (3.4.2-1) unstable; urgency=medium
Prior to version 3.4.2-1, spamd could be enabled by setting ENABLED=1 in
/etc/default/spamassassin. This pattern is discouraged Debian, is not
supported by the systemd unit file, and is considered
deprecated. Instead, please use the update-rc.d command, invoked for
example as "update-rc.d spamassassin enable", to enable the spamd
service.
-- Noah Meyerhans <noahm@debian.org> Sun, 23 Sep 2018 17:06:30 -0700
spamassassin (3.3.2-8) unstable; urgency=low
As of spamassassin 3.3.2-8, sa-compile has been split into its own
......
......@@ -25,8 +25,6 @@ spamassassin (3.4.2-1) unstable; urgency=medium
* Don't recursively chown /var/lib/spamassassin during postinst.
(Closes: 889501)
* Reload spamd after compiling rules in sa-compile.postinst.
* Preserve locally set ENABLED=1 setting from /etc/default/spamassassin
when installing on systemd-based systems. (Closes: 884163, 858457)
* Update SysV init script to cope with upstream's change to $0.
* Remove compiled rules upon removal of the sa-compile package.
* Ensure that /var/lib/spamassassin/compiled doesn't change modes with
......
......@@ -17,8 +17,7 @@ Multi-Arch: foreign
Depends: perl, libhtml-parser-perl, libsocket6-perl, adduser,
libsys-hostname-long-perl, libarchive-tar-perl, libnet-dns-perl,
libnetaddr-ip-perl, libhttp-date-perl, libmail-dkim-perl,
lsb-base (>= 3.0-6), libwww-perl | curl | w3m,
init-system-helpers (>= 1.51), ${misc:Depends}
lsb-base (>= 3.0-6), libwww-perl | curl | w3m, ${misc:Depends}
Recommends: spamc, sa-compile, libmail-spf-perl,
libsys-syslog-perl, gnupg, libio-socket-inet6-perl
Suggests: razor, libio-socket-ssl-perl, libdbi-perl, pyzor,
......
......@@ -127,7 +127,7 @@ binary-indep: build-indep install-indep
dh_installdocs -i
dh_installexamples -i
dh_systemd_enable -i --no-enable
dh_installinit -i --no-enable --no-start
dh_installinit -i --no-start -- defaults 19 21
dh_systemd_start -i --no-start
dh_installcron -i
dh_installchangelogs Changes -i
......
......@@ -4,10 +4,11 @@
# WARNING: please read README.spamd before using.
# There may be security risks.
# Prior to version 3.4.2-1, spamd could be enabled by setting
# ENABLED=1 in this file. This is no longer supported. Instead, please
# use the update-rc.d command, invoked for example as "update-rc.d
# spamassassin enable", to enable the spamd service.
# If you're using systemd (default for jessie), the ENABLED setting is
# not used. Instead, enable spamd by issuing:
# systemctl enable spamassassin.service
# Change to "1" to enable spamd on systems using sysvinit:
ENABLED=0
# Options
# See man spamd for possible options. The -d option is automatically added.
......
......@@ -26,6 +26,7 @@ export TMPDIR=/tmp
# Apparently people have trouble if this isn't explicitly set...
# Defaults - don't touch, edit /etc/default/spamassassin
ENABLED=0
OPTIONS=""
NICE=
......
......@@ -43,43 +43,6 @@ fi
#DEBHELPER#
# Note: the following mess should go away as soon as possible after
# the next stable release to complete the transition away from using
# ENABLED=1 in /etc/default/spamassassin
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || \
[ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
set +e
invoke-rc.d --query spamassassin start
code=$?
set -e
ENABLED=0
if [ -f /etc/default/spamassassin ]; then
. /etc/default/spamassassin
fi
if [ $code -eq 104 ] && \
! command -v systemctl > /dev/null ; then
# We're not using systemd and thus may have some sysvinit cleanup
# to do in order to comply with policy 9.3.3.1
if [ -z "$ENABLED" -o "$ENABLED" = 0 ]; then
# The rc?d symlinks are inconsistent with the value set in
# /etc/default/spamassassin. Update the symlinks to
# reflect the actual state.
update-rc.d -f spamassassin remove
update-rc.d -f spamassassin defaults-disabled
deb-systemd-helper disable spamassassin.service
fi
elif [ $code -eq 101 ] && \
command -v systemctl > /dev/null && \
[ $ENABLED -eq 1 ]; then
# We're running on a systemd system, and the service is not
# configured to start (the default), but the admin has
# previously enabled it via
# /etc/default/spamassassin. Preserve that configuration.
deb-systemd-helper enable spamassassin.service
fi
fi
if [ "$1" = "configure" ] && [ -n "$2" ]; then
if deb-systemd-helper was-enabled spamassassin.service > /dev/null 2>&1; then
invoke-rc.d spamassassin restart
......