provide own postinst and postrm

This commit is contained in:
Jan Wagner 2006-11-10 07:45:27 +00:00
parent ab7117f5d2
commit 26e209abb1
3 changed files with 17 additions and 1 deletions

11
debian/postinst vendored Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
set -e
if [ -x "/etc/init.d/dns-flood-detector" ]; then
update-rc.d dns-flood-detector defaults 40 >/dev/null
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d dns-flood-detector start || exit $?
else
/etc/init.d/dns-flood-detector start || exit $?
fi
fi

6
debian/postrm vendored Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
set -e
if [ "$1" = "purge" ] ; then
update-rc.d dns-flood-detector remove >/dev/null || exit $?
fi

1
debian/rules vendored
View file

@ -50,7 +50,6 @@ binary-arch: build install
dh_testroot
dh_installchangelogs
dh_installdocs
dh_installinit -- defaults 40
dh_installman debian/dns-flood-detector.8
dh_link
dh_strip