chiark / gitweb /
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 7afe207f34e3d5ebb05b795840a64da5b2540a3d..9dc03be7e809cf9fb72521cee23f3be46b445976 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 0054b60ad91b9ea0f320d3d4206a401e5446c97e..ead26aeba24407c3d240cc567bbb6d3163116572 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 b5bfaad459100739ed80f068f45fb59b6e983d85..222d4f2f205b06f6f34f79f469cf7a0a8f055541 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
@@ -128,12 +126,6 @@ EOF
     echo "scratch $s" >> /etc/disorder/conf.debconf.new
   done
 
-  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
index c2084d699380d3c2e1b75fc400230bad2a2ca506..97ed6c46663195bb61d47e22da5583016a20974c 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 03e958bc1e949fa3a68d9353e7e65a7ddbcce29d..f62e4043c5481a9629c713e96fff890d2acd31f7 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: