provide own postinst and postrm
This commit is contained in:
parent
ab7117f5d2
commit
26e209abb1
11
debian/postinst
vendored
Executable file
11
debian/postinst
vendored
Executable 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
6
debian/postrm
vendored
Executable 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
1
debian/rules
vendored
|
@ -50,7 +50,6 @@ binary-arch: build install
|
||||||
dh_testroot
|
dh_testroot
|
||||||
dh_installchangelogs
|
dh_installchangelogs
|
||||||
dh_installdocs
|
dh_installdocs
|
||||||
dh_installinit -- defaults 40
|
|
||||||
dh_installman debian/dns-flood-detector.8
|
dh_installman debian/dns-flood-detector.8
|
||||||
dh_link
|
dh_link
|
||||||
dh_strip
|
dh_strip
|
||||||
|
|
Loading…
Reference in a new issue