chiark / gitweb /
More Debianization stuff:
authorRichard Kettlewell <rjk@greenend.org.uk>
Sun, 1 Jul 2007 21:51:52 +0000 (22:51 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sun, 1 Jul 2007 21:51:52 +0000 (22:51 +0100)
  * depend on debconf
  * fix indenting of description
  * postrm does init.d and debconf purge

debian/control
debian/postrm

index c79e3602169e6c471dba0f30394c5b320a18a450..7ce338835974860650c8404b6efb7be22dc38e71 100644 (file)
@@ -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.
index 0fc5ae5bbb07023e4b6e14d7bdf339331484f067..614376ccc7e8bbba11ffc6f932eecf2a723c134e 100755 (executable)
 # 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