Package: net-acct Version: 0.71-7 Tags: patch Attached is the NMU diff.
-- Robert Edmonds [EMAIL PROTECTED]
diff -u net-acct-0.71/debian/prerm net-acct-0.71/debian/prerm --- net-acct-0.71/debian/prerm +++ net-acct-0.71/debian/prerm @@ -7,7 +7,11 @@ fi if [ "$1" = "purge" -o "$1" = "upgrade" -o "$1" = "remove" ]; then - /etc/init.d/net-acct stop || echo "Stopping nacctd failed!" + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d net-acct stop + else + /etc/init.d/net-acct stop + fi fi exit 0 diff -u net-acct-0.71/debian/postinst net-acct-0.71/debian/postinst --- net-acct-0.71/debian/postinst +++ net-acct-0.71/debian/postinst @@ -22,7 +22,11 @@ # restarting daemon # - /etc/init.d/net-acct start || echo "Starting nacctd failed!" + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d net-acct start + else + /etc/init.d/net-acct start + fi fi exit 0 diff -u net-acct-0.71/debian/changelog net-acct-0.71/debian/changelog --- net-acct-0.71/debian/changelog +++ net-acct-0.71/debian/changelog @@ -1,3 +1,10 @@ +net-acct (0.71-7.1) unstable; urgency=low + + * Non-maintainer upload. + * Use invoke-rc.d; closes: #367725. + + -- Robert S. Edmonds <[EMAIL PROTECTED]> Sun, 02 Sep 2007 01:25:09 -0400 + net-acct (0.71-7) unstable; urgency=high * reupload for faster processing (resigned with correct GPG key) diff -u net-acct-0.71/debian/preinst net-acct-0.71/debian/preinst --- net-acct-0.71/debian/preinst +++ net-acct-0.71/debian/preinst @@ -4,8 +4,12 @@ dpkg --assert-support-predepends -if [ "$1" = "upgrade" -a -x /etc/init.d/net-acct ]; then - /etc/init.d/net-acct stop || echo "Stopping nacctd failed!" +if [ "$1" = "upgrade" ]; then + if which invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d net-acct stop + else + /etc/init.d/net-acct stop + fi fi exit 0
signature.asc
Description: Digital signature