Debian packaging changes:
authorRichard Kettlewell <rjk@greenend.org.uk>
Tue, 3 Jun 2008 17:09:20 +0000 (18:09 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Tue, 3 Jun 2008 17:09:20 +0000 (18:09 +0100)
   - disorder-server now depends on mail-transport-agent
   - disorder-server no longer asks for an SMTP server
     (instead uses local /usr/sbin/sendmail)
   - remove /etc/disorder/conf.debconf on purge

debian/config.disorder-server
debian/control
debian/postinst.disorder-server
debian/postrm.disorder-server
debian/templates.disorder-server

index 7afe207..9dc03be 100755 (executable)
@@ -34,7 +34,6 @@ db_input high disorder/roots || true
 db_input high disorder/encoding || true
 db_input high disorder/port || true
 db_input medium disorder/scratches || true
-db_input high disorder/smtp_server || true
 db_input high disorder/mail_sender || true
 db_input high disorder/interface || true
 db_go || true
index 0054b60..ead26ae 100644 (file)
@@ -26,7 +26,7 @@ Package: disorder-server
 Architecture: any
 Section: sound
 Priority: extra
-Depends: disorder,httpd-cgi,sox,debconf,${shlibs:Depends}
+Depends: disorder,httpd-cgi,sox,debconf,${shlibs:Depends},mail-transport-agent
 Suggests: disorder-playrtp,disobedience
 Description: Play random or selected digital audio files continuously
  DisOrder is a software jukebox.  It can play OGG, MP3, WAV and FLAC files,
index b5bfaad..222d4f2 100755 (executable)
@@ -96,8 +96,6 @@ create_config() {
   encoding="$RET"
   db_get disorder/port || true
   port="$RET"
-  db_get disorder/smtp_server || true
-  smtp_server="$RET"
   db_get disorder/mail_sender || true
   mail_sender="$RET"
   db_get disorder/interface || true
@@ -130,12 +128,6 @@ EOF
 
   if test "$mail_sender" != ""; then
     echo "" >> /etc/disorder/conf.debconf.new
-    echo "# SMTP server" >> /etc/disorder/conf.debconf.new
-    echo "smtp_server $smtp_server" >> /etc/disorder/conf.debconf.new
-  fi
-
-  if test "$mail_sender" != ""; then
-    echo "" >> /etc/disorder/conf.debconf.new
     echo "# Source mail address" >> /etc/disorder/conf.debconf.new
     echo "mail_sender $mail_sender" >> /etc/disorder/conf.debconf.new
   fi
index c2084d6..97ed6c4 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 #
 # This file is part of DisOrder
-# Copyright (C) 2004, 2007 Richard Kettlewell
+# Copyright (C) 2004, 2007, 2008 Richard Kettlewell
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -27,5 +27,7 @@ purge )
     db_purge
   fi
   update-rc.d disorder remove
+  rm -f /etc/disorder/conf.debconf
+  # TODO - should we delete none/some/all of the contents of /var/lib/disorder?
   ;;
 esac
index 03e958b..f62e404 100644 (file)
@@ -52,14 +52,6 @@ Type: string
 Description: Destination port for network sound transmission
  Sound data will be sent to this UDP port using the RTP protocol.
 
-Template: disorder/smtp_server
-Type: string
-Default: localhost
-Description: SMTP server for web interface
- The web interface requires an SMTP server in order to send messages to
- newly registered users, and to send password reminders.  Enter the hostname
- or IP address to use.
-
 Template: disorder/mail_sender
 Type: string
 Default: