From: Christian Hartmann Date: Sun, 11 Feb 2007 19:46:32 +0000 (+0000) Subject: Added reload function to spamd; bug #159933 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4c4ab9efb808e5ffa907ddb430f6b55cc85e881f;p=gentoo.git Added reload function to spamd; bug #159933 Package-Manager: portage-2.1.2-r9 --- diff --git a/mail-filter/spamassassin/ChangeLog b/mail-filter/spamassassin/ChangeLog index d7718e75a166..fd535078e3a6 100644 --- a/mail-filter/spamassassin/ChangeLog +++ b/mail-filter/spamassassin/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for mail-filter/spamassassin # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.120 2007/02/02 17:32:57 gustavoz Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/ChangeLog,v 1.121 2007/02/11 19:46:32 ian Exp $ + + 11 Feb 2007; Christian Hartmann files/3.0.0-spamd.init: + Added reload function to spamd; bug #159933 02 Feb 2007; Gustavo Zacarias spamassassin-3.1.7.ebuild: diff --git a/mail-filter/spamassassin/Manifest b/mail-filter/spamassassin/Manifest index 7d062c5a7782..0b81e92312eb 100644 --- a/mail-filter/spamassassin/Manifest +++ b/mail-filter/spamassassin/Manifest @@ -1,14 +1,11 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX 3.0.0-spamd.conf 1528 RMD160 92bbeb8d14ada234e9001cae914055b2d2cb69aa SHA1 e4918b986630043b01fd739ecd090fa23453fc2a SHA256 bf6dfce0e63813da4b900987826780d4bede9a1f5cc8324e3b96bce30dfe5158 MD5 cde41d7639fa7e7077f1c74fef8a4ed2 files/3.0.0-spamd.conf 1528 RMD160 92bbeb8d14ada234e9001cae914055b2d2cb69aa files/3.0.0-spamd.conf 1528 SHA256 bf6dfce0e63813da4b900987826780d4bede9a1f5cc8324e3b96bce30dfe5158 files/3.0.0-spamd.conf 1528 -AUX 3.0.0-spamd.init 772 RMD160 6574b794374482c9a3e63cc08730c5e69e1fe5ae SHA1 5d0ac79d788b9ca79ea5b854a6454ca118efa66f SHA256 c6e95a3ae75bd0a927ade55e198e6f026e6aacd66d7b5a677e820fc4841a66db -MD5 0e8e84140aed87827a97e36e018fcd93 files/3.0.0-spamd.init 772 -RMD160 6574b794374482c9a3e63cc08730c5e69e1fe5ae files/3.0.0-spamd.init 772 -SHA256 c6e95a3ae75bd0a927ade55e198e6f026e6aacd66d7b5a677e820fc4841a66db files/3.0.0-spamd.init 772 +AUX 3.0.0-spamd.init 877 RMD160 84e5f29bb1177789fa3b19dd3d2aa68d624c3e07 SHA1 091ab6f61836d744dffac64dd293b2c4021819cc SHA256 a36847dcae3f9a117d9cbac37e65ce2197031a434ac2afce6dfa7328c28132c1 +MD5 73aa2955361e80f4896c596d4704e54b files/3.0.0-spamd.init 877 +RMD160 84e5f29bb1177789fa3b19dd3d2aa68d624c3e07 files/3.0.0-spamd.init 877 +SHA256 a36847dcae3f9a117d9cbac37e65ce2197031a434ac2afce6dfa7328c28132c1 files/3.0.0-spamd.init 877 AUX secrets.cf 664 RMD160 afb1212a464bd7053c1301c1a1e670b73216528a SHA1 a742beddf850e55bc4454a7548dc43c36f8e9760 SHA256 9f134c7b857b21689f612fc6d131f719e5a65e2ba341b282e7aa57402c854139 MD5 d3b6df49d772fdf4425d4c2376bc7173 files/secrets.cf 664 RMD160 afb1212a464bd7053c1301c1a1e670b73216528a files/secrets.cf 664 @@ -54,10 +51,10 @@ EBUILD spamassassin-3.1.7.ebuild 7914 RMD160 110573f0fe62ac948eac030bfbd358db0e0 MD5 3173431562ea5a27854c3167f1f0a07c spamassassin-3.1.7.ebuild 7914 RMD160 110573f0fe62ac948eac030bfbd358db0e06df9c spamassassin-3.1.7.ebuild 7914 SHA256 0c08545b84648f7686a69b08cd88e72d1ea3b395e22b1b25e0de283d2b133e04 spamassassin-3.1.7.ebuild 7914 -MISC ChangeLog 27785 RMD160 7a7dbef1aa8f5cffc2c15d367265e8bff31133bc SHA1 1e09dd1d70319bf3774f9f9a9a68ba55aa155b90 SHA256 33b9183e16c9bb93694962113241412151bf3ba5e9af7e77d968edc0e390f609 -MD5 b6d65fdf1385716f7383decdb6c8cb22 ChangeLog 27785 -RMD160 7a7dbef1aa8f5cffc2c15d367265e8bff31133bc ChangeLog 27785 -SHA256 33b9183e16c9bb93694962113241412151bf3ba5e9af7e77d968edc0e390f609 ChangeLog 27785 +MISC ChangeLog 27902 RMD160 b82524c8544112befaaa6a09e4e294679190ba7c SHA1 26594d121bb3aa2ab132e3352251a82404a74eca SHA256 5b38a93bce1952f900ac63bf1acd74e88050bbfcdcc31c68c130a8602182c635 +MD5 012812cce03b747a3cef673aa6d4f97b ChangeLog 27902 +RMD160 b82524c8544112befaaa6a09e4e294679190ba7c ChangeLog 27902 +SHA256 5b38a93bce1952f900ac63bf1acd74e88050bbfcdcc31c68c130a8602182c635 ChangeLog 27902 MISC metadata.xml 305 RMD160 647980838c590f54441a053916ea629e53e551c0 SHA1 99ef1deeae9a934fb6e46cf5fc4a5fcb8379a74a SHA256 f05dbef15061919972882cab07057e102760a542beba17d131194091401cd7ca MD5 e2d8f1bf77722def1dd432e26455c818 metadata.xml 305 RMD160 647980838c590f54441a053916ea629e53e551c0 metadata.xml 305 @@ -80,10 +77,3 @@ SHA256 7f56d9f43f1a9a417d438e9b824e4c38990dd6fbb08192e0406c2981d75974f6 files/di MD5 b656a45f47a5c60d8df90925f1215e86 files/digest-spamassassin-3.1.7 274 RMD160 617cbac6436484db47c90c92b1cad06f629e29f7 files/digest-spamassassin-3.1.7 274 SHA256 75568ec0019ac02b2f075fe6bacec77fa856af25cfc7caf33d02e25e6218684a files/digest-spamassassin-3.1.7 274 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.6-ecc01.6 (GNU/Linux) - -iD8DBQFFw3XaKRy60XGEcJIRAspaAJ9qUHC2YIsO4ihZuvuRvWzefrLw9QCfVBrv -pHlS+OxteZm4sWyZmFFrf8I= -=ZPzb ------END PGP SIGNATURE----- diff --git a/mail-filter/spamassassin/files/3.0.0-spamd.init b/mail-filter/spamassassin/files/3.0.0-spamd.init index 82b2c2cb79e9..5a52b2ec946c 100644 --- a/mail-filter/spamassassin/files/3.0.0-spamd.init +++ b/mail-filter/spamassassin/files/3.0.0-spamd.init @@ -1,13 +1,15 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.0.0-spamd.init,v 1.6 2006/10/18 15:53:43 rajiv Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/files/3.0.0-spamd.init,v 1.7 2007/02/11 19:46:32 ian Exp $ # NB: Config is in /etc/conf.d/spamd # Provide a default location if they haven't in /etc/conf.d/spamd PIDFILE=${PIDFILE:-/var/run/spamd.pid} +opts="${opts} reload" + depend() { need net before mta @@ -28,3 +30,9 @@ stop() { start-stop-daemon --stop --quiet --pidfile ${PIDFILE} eend $? "Failed to stop spamd" } + +reload() { + ebegin "Reloading configuration" + kill -HUP $(< ${PIDFILE}) + eend $? +}