From 4d267a8dde4baf5924101b00ca0df3627bdfb8bc Mon Sep 17 00:00:00 2001 Message-Id: <4d267a8dde4baf5924101b00ca0df3627bdfb8bc.1715233171.git.mdw@distorted.org.uk> From: Mark Wooding Date: Sun, 1 Jul 2007 22:51:52 +0100 Subject: [PATCH] More Debianization stuff: * depend on debconf * fix indenting of description * postrm does init.d and debconf purge Organization: Straylight/Edgeware From: Richard Kettlewell --- debian/control | 4 ++-- debian/postrm | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index c79e360..7ce3388 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Package: disorder Architecture: any Section: sound Priority: extra -Depends: httpd,pwgen,mpg321,vorbis-tools,sox,${shlibs:Depends} +Depends: httpd,pwgen,mpg321,vorbis-tools,sox,debconf,${shlibs:Depends} Conflicts: jukebox Description: Play random or selected digital audio files continuously - Controlled from the command line or via a web-based interface. + Controlled from the command line or via a web-based interface. diff --git a/debian/postrm b/debian/postrm index 0fc5ae5..614376c 100755 --- a/debian/postrm +++ b/debian/postrm @@ -19,8 +19,16 @@ # USA # set -e + case "$1" in remove ) ldconfig -n /usr/lib ;; +purge ) + if [ -e /usr/share/debconf/confmodule ]; then + . /usr/share/debconf/confmodule + db_purge + fi + update-rc.d disorder remove + ;; esac -- [mdw]