From: Richard Kettlewell Date: Sun, 1 Jul 2007 21:51:52 +0000 (+0100) Subject: More Debianization stuff: X-Git-Tag: debian-1_5_99dev8~298 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/commitdiff_plain/4d267a8dde4baf5924101b00ca0df3627bdfb8bc More Debianization stuff: * depend on debconf * fix indenting of description * postrm does init.d and debconf purge --- 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