From 7e0e23fc02722bd169a87c6e682f2b83364c4376 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Thu, 5 Jul 2007 08:08:35 +0000 Subject: [PATCH] provide upgrade path --- debian/changelog | 1 + debian/prerm | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 debian/prerm diff --git a/debian/changelog b/debian/changelog index 13c9e57..c51d99d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ dns-flood-detector (1.12-2) unstable; urgency=low * some cosmetic fixes to init script * make start-stop-daemon working instead of using kill (Closes: #431676). + * providing upgrade path via prerm * drop own maintainers scripts and make again use of debhelper -- Jan Wagner Wed, 04 Jul 2007 12:29:06 +0200 diff --git a/debian/prerm b/debian/prerm new file mode 100755 index 0000000..4249969 --- /dev/null +++ b/debian/prerm @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +if [ "$1" = "upgrade" ] && [ "$2" ] && dpkg --compare-versions "$2" <= "1.12-1"; then + ps aux | grep /usr/bin/dns-flood-detector | head -1 | awk '{ print $2 }' > /var/run/dns-flood-detector.pid +fi +#DEBHLPER#