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
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,
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
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
#! /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
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
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: