[Pkg-voip-commits] r5326 - /mumble/trunk/debian/
the-me-guest at alioth.debian.org
the-me-guest at alioth.debian.org
Wed Mar 19 18:20:57 UTC 2008
Author: the-me-guest
Date: Wed Mar 19 18:20:57 2008
New Revision: 5326
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5326
Log:
Initial import of the mumble package.
Added:
mumble/trunk/debian/README.Debian
mumble/trunk/debian/changelog
mumble/trunk/debian/compat
mumble/trunk/debian/control
mumble/trunk/debian/copyright
mumble/trunk/debian/mumble-server.config
mumble/trunk/debian/mumble-server.default
mumble/trunk/debian/mumble-server.dirs
mumble/trunk/debian/mumble-server.docs
mumble/trunk/debian/mumble-server.init
mumble/trunk/debian/mumble-server.install
mumble/trunk/debian/mumble-server.logrotate
mumble/trunk/debian/mumble-server.manpages
mumble/trunk/debian/mumble-server.postinst
mumble/trunk/debian/mumble-server.postrm
mumble/trunk/debian/mumble-server.templates
mumble/trunk/debian/mumble.gconf-defaults
mumble/trunk/debian/mumble.install
mumble/trunk/debian/mumble.manpages
mumble/trunk/debian/mumble.menu
mumble/trunk/debian/rules (with props)
mumble/trunk/debian/watch
Added: mumble/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/README.Debian?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/README.Debian (added)
+++ mumble/trunk/debian/README.Debian Wed Mar 19 18:20:57 2008
@@ -1,0 +1,15 @@
+This package includes a system-wide installation of murmurd. If you want a
+personal server running on your own user account, use the murmur-wrapper
+script.
+
+If you have apache running, you can install the mumble-server-web package and
+access the user list at
+http://localhost/cgi-bin/mumble-server/list.cgi
+and new users can register themselves at
+http://localhost/cgi-bin/mumble-server/register.cgi
+
+For registration to work, you will need to set an email address to use for
+registraion emails. To set the address, dpkg-reconfigure mumble-server.
+
+Murmur's root user is called SuperUser. To set the password for superuser,
+simply dpkg-reconfigure mumble-server.
Added: mumble/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/changelog?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/changelog (added)
+++ mumble/trunk/debian/changelog Wed Mar 19 18:20:57 2008
@@ -1,0 +1,6 @@
+mumble (1.1.3-1) unstable; urgency=low
+
+ * Initial release.
+ Closes: #429988
+
+ -- Patrick Matthäi <patrick.matthaei at web.de> Sun, 16 Mar 2008 11:09:08 +0100
Added: mumble/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/compat?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/compat (added)
+++ mumble/trunk/debian/compat Wed Mar 19 18:20:57 2008
@@ -1,0 +1,1 @@
+6
Added: mumble/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/control?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/control (added)
+++ mumble/trunk/debian/control Wed Mar 19 18:20:57 2008
@@ -1,0 +1,47 @@
+Source: mumble
+Section: sound
+Priority: optional
+Homepage: http://mumble.sourceforge.net/
+Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
+Uploaders: Patrick Matthäi <patrick.matthaei at web.de>
+Build-Depends: debhelper (>= 5), dpatch, po-debconf, libasound2-dev, libboost-dev, libgl1-mesa-dev, libqt4-dev, libspeex-dev, libssl-dev, libxevie-dev, libpulse-dev
+Standards-Version: 3.7.3
+
+Package: mumble
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: festival, mumble-server
+Description: graphical voice chat client
+ This is the low-latency, high quality voice chat client for gaming.
+ Mumble includes game linking, so voices from other players comes direct
+ from their characters.
+ Echo cancellation is also included, so that the sound from your loudspeakers
+ won't be audible to other players.
+ .
+ This package provides the graphical mumble client.
+
+Package: mumble-server
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, dbus, debconf, ucf, libnet-dbus-perl
+Recommends: mumble, mumble-server-web
+Description: voice chat server for mumble
+ This is the low-latency, high quality voice chat server for gaming.
+ Mumble includes game linking, so voices from other players comes direct
+ from their characters.
+ Echo cancellation is also included, so that the sound from your loudspeakers
+ won't be audible to other players.
+ .
+ This package provides the murmur server for mumble.
+
+Package: mumble-server-web
+Architecture: all
+Depends: ${perl:Depends}, libnet-dbus-perl, apache2 | httpd, postfix | mail-transport-agent
+Recommends: mumble, mumble-server-web
+Description: voice chat server for mumble (web files)
+ This is the low-latency, high quality voice chat server for gaming.
+ Mumble includes game linking, so voices from other players comes direct
+ from their characters.
+ Echo cancellation is also included, so that the sound from your loudspeakers
+ won't be audible to other players.
+ .
+ This package provides the web files for mumble-server.
Added: mumble/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/copyright?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/copyright (added)
+++ mumble/trunk/debian/copyright Wed Mar 19 18:20:57 2008
@@ -1,0 +1,143 @@
+This package was debianized by Patrick Matthäi <patrick.matthaei at web.de>
+on Sun, 16 Mar 2008 11:09:08 +0100.
+
+It was downloaded from <http://mumble.sourceforge.net/>.
+
+
+The directory "speex" contains the needed speex source code for mumble.
+
+Upstream Author: Jean-Marc Valin <jean-marc.valin at usherbrooke.ca>
+
+Copyright: 2002 Jean-Marc Valin
+
+License:
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ - Neither the name of the Xiph.org Foundation nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+The files src/mumble/smallft.cpp and src/mumble/smallft.h are copied from the
+Ogg Vorbis project. They are also licensed under the BSD(revised) license:
+
+Copyright (c) 2002-2007 Xiph.org Foundation
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ - Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ - Neither the name of the Xiph.org Foundation nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ `AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION
+ OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+The other parts of the source code are licensed as followed.
+
+Upstream Author: Thorvald Natvig <slicer at sourceforge.net>
+
+Copyright: 2005 - 2008, Thorvald Natvig <thorvald at natvig.com>
+ 2007, Stefan Gehn <mETz AT gehn DOT net>
+ 2007, Sebastian Schlingmann <mit_service at users.sourceforge.net>
+ 2008, Mikkel Krautz <mikkel at krautz.dk>
+
+License:
+
+ All rights reserved.
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+ - Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+ - Neither the name of the Mumble Developers nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
+The file src/CryptState.cpp implements OCB-AES128 (an authenticated-
+encryption algorithm), which is covered by patents in the US. The patent
+holder has written a patent grant for applications licensed under the GNU
+Public License, but has also granted a license for Mumble:
+
+-------------------------------------------------------------------------
+Date: Wed, 20 Feb 2008 09:33:40 -0800 (Pacific Standard Time)
+From: Phillip Rogaway <rogaway at cs.ucdavis.edu>
+To: Thorvald Natvig <thorvald at natvig.com>
+Subject: Re: OCB under BSD License?
+
+Hi Thorvald,
+
+Nice to hear from you, and to hear that OCB is in Mumble.
+
+I am in fact planning to greatly broaden the patent grant; I just need to
+check with my attorney to see what's the best way to word it. Thanks for the
+excellent suggestion to include "all programs whose complete source code is
+freely available". I will make sure to include this setting. I am actually
+looking to go much further.
+
+Anyway, until I get the wording figured out and on the web
+for a very general patent grant, please consider this email from me as
+explicit permission to include OCB in Mumble and distribute it under under
+BSD (as well as GNU GPL) on a royalty-free basis.
+
+Good luck, and thanks for creating your software.
+
+phil
+-------------------------------------------------------------------------
Added: mumble/trunk/debian/mumble-server.config
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble-server.config?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble-server.config (added)
+++ mumble/trunk/debian/mumble-server.config Wed Mar 19 18:20:57 2008
@@ -1,0 +1,31 @@
+#! /bin/sh
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_set mumble-server/password ""
+
+if [ -f /etc/default/mumble-server ] ; then
+ MURMUR_DAEMON_START=0
+ . /etc/default/mumble-server
+ if [ "X$MURMUR_DAEMON_START" = "X1" ] ; then
+ db_set mumble-server/start_daemon true
+ else
+ db_set mumble-server/start_daemon false
+ fi
+fi
+
+if [ -f /etc/mumble-server/mumble-server.ini ] ; then
+ EMAILFROM=`perl -ne 'if (/^emailfrom\s*=\s*(.+)\s*$/) { print $1 ; }' /etc/mumble-server/mumble-server.ini`
+ db_set mumble-server/emailfrom "$EMAILFROM"
+fi
+
+db_input medium mumble-server/start_daemon || true
+db_input medium mumble-server/emailfrom || true
+db_input medium mumble-server/password || true
+db_go
+
+#DEBHELPER#
+
+exit 0
Added: mumble/trunk/debian/mumble-server.default
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble-server.default?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble-server.default (added)
+++ mumble/trunk/debian/mumble-server.default Wed Mar 19 18:20:57 2008
@@ -1,0 +1,2 @@
+# 0 = don't start, 1 = start
+MURMUR_DAEMON_START=0
Added: mumble/trunk/debian/mumble-server.dirs
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble-server.dirs?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble-server.dirs (added)
+++ mumble/trunk/debian/mumble-server.dirs Wed Mar 19 18:20:57 2008
@@ -1,0 +1,3 @@
+etc/mumble-server
+var/log/mumble-server
+var/run/mumble-server
Added: mumble/trunk/debian/mumble-server.docs
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble-server.docs?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble-server.docs (added)
+++ mumble/trunk/debian/mumble-server.docs Wed Mar 19 18:20:57 2008
@@ -1,0 +1,2 @@
+README
+
Added: mumble/trunk/debian/mumble-server.init
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble-server.init?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble-server.init (added)
+++ mumble/trunk/debian/mumble-server.init Wed Mar 19 18:20:57 2008
@@ -1,0 +1,94 @@
+#! /bin/sh
+#
+### BEGIN INIT INFO
+# Provides: mumble-server
+# Required-Start: $network $local_fs $remote_fs dbus
+# Required-Stop: $network $local_fs $remote_fs dbus
+# Should-Start: $mysql
+# Should-Stop: $mysql
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Mumble VoIP Server
+### END INIT INFO
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+NAME=mumble-server
+DESC="Mumble VoIP Server"
+PIDDIR=/var/run/$NAME
+PIDFILE=$PIDDIR/$NAME.pid
+DAEMON=/usr/sbin/murmurd
+USER=mumble-server
+GROUP=mumble-server
+
+test -x $DAEMON || exit 0
+
+INIFILE=/etc/mumble-server/mumble-server.ini
+DAEMON_OPTS="-ini $INIFILE"
+MURMUR_DAEMON_START=0
+
+# Include murmur defaults if available
+if [ -f /etc/default/$NAME ] ; then
+ . /etc/default/$NAME
+fi
+
+. /lib/init/vars.sh
+. /lib/lsb/init-functions
+
+case "$1" in
+ start)
+ if [ "$MURMUR_DAEMON_START" != "1" ] ; then
+ log_warning_msg "Not starting $DESC $NAME, disabled via /etc/default/$NAME"
+ exit 0
+ fi
+ [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
+ [ -d $PIDDIR ] || install -o $USER -d $PIDDIR
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid $USER:$GROUP --exec $DAEMON -- $DAEMON_OPTS
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+
+ stop)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --user $USER --exec $DAEMON
+ case "$?" in
+ 0|1)
+ rm -f $PIDFILE
+ [ "$VERBOSE" != no ] && log_end_msg 0
+ ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+
+ force-reload)
+ start-stop-daemon --stop --test --quiet --pidfile $PIDFILE --user $USER --exec $DAEMON && $0 restart || exit 0
+ ;;
+
+ restart)
+ [ "$VERBOSE" != no ] && log_daemon_msg "Restarting $DESC" "$NAME"
+ start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE --user $USER --exec $DAEMON
+ case "$?" in
+ 0|1)
+ [ -d $PIDDIR ] || install -o $USER -d $PIDDIR
+ rm -f $PIDFILE
+ start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid $USER:$GROUP --exec $DAEMON -- $DAEMON_OPTS
+ case "$?" in
+ 0) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ *) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ *)
+ [ "$VERBOSE" != no ] && log_end_msg 0
+ ;;
+ esac
+ ;;
+
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
+
+exit 0
Added: mumble/trunk/debian/mumble-server.install
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble-server.install?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble-server.install (added)
+++ mumble/trunk/debian/mumble-server.install Wed Mar 19 18:20:57 2008
@@ -1,0 +1,4 @@
+release/murmurd usr/sbin/
+scripts/murmur-wrapper usr/bin/
+scripts/murmur.ini.system usr/share/mumble-server/templates/
+scripts/murmur.conf usr/share/mumble-server/templates/
Added: mumble/trunk/debian/mumble-server.logrotate
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble-server.logrotate?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble-server.logrotate (added)
+++ mumble/trunk/debian/mumble-server.logrotate Wed Mar 19 18:20:57 2008
@@ -1,0 +1,10 @@
+/var/log/mumble-server/mumble-server.log {
+ weekly
+ rotate 7
+ compress
+ delaycompress
+ missingok
+ postrotate
+ start-stop-daemon --quiet --stop --signal 1 --exec /usr/sbin/murmurd --user mumble-server --pidfile /var/run/mumble-server/mumble-server.pid
+ endscript
+}
Added: mumble/trunk/debian/mumble-server.manpages
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble-server.manpages?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble-server.manpages (added)
+++ mumble/trunk/debian/mumble-server.manpages Wed Mar 19 18:20:57 2008
@@ -1,0 +1,2 @@
+man/murmurd.1
+man/murmur-wrapper.1
Added: mumble/trunk/debian/mumble-server.postinst
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble-server.postinst?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble-server.postinst (added)
+++ mumble/trunk/debian/mumble-server.postinst Wed Mar 19 18:20:57 2008
@@ -1,0 +1,124 @@
+#! /bin/sh
+# postinst script for mumble-server
+
+set -e
+
+. /usr/share/debconf/confmodule
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <postinst> `abort-remove'
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+CONF="/etc/mumble-server/mumble-server.ini"
+CONF_NEW="/etc/mumble-server/mumble-server.ini.new"
+CONF_OLD="/etc/mumble-server/mumble-server.ini.old"
+TEMPLATE="/usr/share/mumble-server/templates/murmur.ini.system"
+do_configuration;
+CONF="/etc/dbus-1/system.d/murmur.conf"
+CONF_NEW="/etc/dbus-1/system.d/murmur.conf.new"
+CONF_OLD="/etc/dbus-1/system.d/murmur.conf.old"
+TEMPLATE="/usr/share/mumble-server/templates/murmur.conf"
+do_configuration;
+
+do_configuration() {
+ if [ -f ${CONF} ] ; then
+ # No configuration exists, just install the template one.
+ cp ${TEMPLATE} ${CONF_NEW}
+ fi
+
+ if diff -q ${CONF} ${CONF_NEW} >/dev/null 2>&1; then
+ # New and old config are the same.
+ rm -f ${CONF_NEW}
+ else
+ if [ ! -f ${CONF} ] ; then
+ cp ${TEMPLATE} ${CONF}
+ else
+ cp ${CONF} ${CONF_OLD}
+ ucf --debconf-ok ${CONF_NEW} ${CONF}
+ fi
+ fi
+}
+
+
+case "$1" in
+ configure)
+ # Add user and permanent directories
+ adduser --system --quiet --home /var/lib/mumble-server --group mumble-server
+ chmod 0750 /var/log/mumble-server
+ chmod 0750 /var/lib/mumble-server
+ chown mumble-server:adm /var/log/mumble-server
+ chown mumble-server:mumble-server /var/lib/mumble-server
+
+ # Ensure the file we put in /etc/dbus-1/system.d is loaded
+ # or mumble-server will fail to bind to dbus.
+ invoke-rc.d --quiet dbus reload
+
+ # Update /etc/default file based on config
+ if [ -f /etc/default/mumble-server ] ; then
+ db_get mumble-server/start_daemon
+ if [ "$RET" = "true" ] ; then
+ DAEMON_START=1
+ else
+ DAEMON_START=0
+ fi
+ if grep -E ^MURMUR_DAEMON_START= /etc/default/mumble-server > /dev/null; then
+ perl -pi -w -e "s/^MURMUR_DAEMON_START=.+$/MURMUR_DAEMON_START=$DAEMON_START/g" /etc/default/mumble-server
+ else
+ echo "MURMUR_DAEMON_START=$DAEMON_START" >> /etc/default/mumble-server
+ fi
+ else
+ echo "/etc/default/mumble-server not found, configuration failed." >&2
+ fi
+
+ # Update /etc/mumble-server/mumble-server.ini based on config
+ if [ -f /etc/mumble-server/mumble-server.ini ] ; then
+ db_get mumble-server/emailfrom
+ if [ "X$RET" != "X" ] ; then
+ if grep -E '^.*emailfrom[[:space:]]*=' /etc/mumble-server/mumble-server.ini > /dev/null; then
+ perl -pi -w -e "BEGIN { \$email = '$RET'; } s/^.*emailfrom\\s*=.*$/emailfrom = \$email/g" /etc/mumble-server/mumble-server.ini
+ else
+ echo "emailfrom = $RET" >> /etc/mumble-server/mumble-server.ini
+ echo "Warning: /etc/mumble-server/mumble-server.ini looks damaged" >&2
+ fi
+ else
+ perl -pi -w -e "s/^.*emailfrom\\s*=.*$/#emailfrom =/g" /etc/mumble-server/mumble-server.ini
+ fi
+ else
+ echo "/etc/mumble-server/mumble-server.ini not found, configuration failed." >&2
+ fi
+
+ # Update SuperUser password based on config.
+ # When set, clear it from config as it can't be queried and the user is
+ # likely to update it outside of debconf.
+ db_get mumble-server/password
+ if [ "X$RET" != "X" ] ; then
+ su mumble-server -s /bin/sh -c "/usr/sbin/murmurd -ini /etc/mumble-server/mumble-server.ini -supw $RET"
+ if [ $? = 0 ] ; then
+ db_set mumble-server/password ""
+ else
+ echo "Failed to set SuperUser password." >&2
+ fi
+ fi
+ db_stop
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Added: mumble/trunk/debian/mumble-server.postrm
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble-server.postrm?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble-server.postrm (added)
+++ mumble/trunk/debian/mumble-server.postrm Wed Mar 19 18:20:57 2008
@@ -1,0 +1,45 @@
+#! /bin/sh
+
+set -e
+
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <overwriter>
+# <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+ purge)
+ [ -f /var/log/mumble-server/mumble-server.log ] && rm -f /var/log/mumble-server/mumble-server.log*
+ [ -f /var/lib/mumble-server/mumble-server.sqlite ] && rm -f /var/lib/mumble-server/mumble-server.sqlite
+ [ -d /var/lib/mumble-server/.config ] && rmdir --ignore-fail-on-non-empty /var/lib/mumble-server/.config
+ [ -f /var/run/mumble-server/mumble-server.pid ] && rm -f /var/run/mumble-server/mumble-server.pid
+ [ -d /var/run/mumble-server ] && rmdir --ignore-fail-on-non-empty /var/run/mumble-server
+ if [ -x "$(command -v deluser)" ] ; then
+ deluser --quiet --system mumble-server > /dev/null || true
+ deluser --quiet --system --group --only-if-empty mumble-server > /dev/null || true
+ else
+ echo >&2 "not removing 'mumble-server' system account because deluser command was not found."
+ fi
+ ;;
+
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Added: mumble/trunk/debian/mumble-server.templates
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble-server.templates?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble-server.templates (added)
+++ mumble/trunk/debian/mumble-server.templates Wed Mar 19 18:20:57 2008
@@ -1,0 +1,26 @@
+Template: mumble-server/password
+Type: password
+_Description: Password to set on SuperUser account:
+ Murmur has a special account called "SuperUser" which bypasses all
+ privilege checks.
+ .
+ If you set a password here, the password for the "SuperUser" account will
+ be updated.
+ .
+ If you leave this blank, the password will not be changed.
+
+Template: mumble-server/start_daemon
+Type: boolean
+Default: false
+_Description: Autostart mumble-server on server boot?
+ Mumble-server (murmurd) can start automatically when the server is booted.
+
+Template: mumble-server/emailfrom
+Type: string
+_Description: Email address to send registration emails from:
+ Murmur comes with a web-based registration script, which will send an
+ authentication code to the user by email before registration can be
+ completed.
+ .
+ Set this to the email address you wish such authentication emails to
+ come from. If you set it blank, registration will be disabled.
Added: mumble/trunk/debian/mumble.gconf-defaults
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble.gconf-defaults?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble.gconf-defaults (added)
+++ mumble/trunk/debian/mumble.gconf-defaults Wed Mar 19 18:20:57 2008
@@ -1,0 +1,4 @@
+/desktop/gnome/url-handlers/mumble/command "mumble %s"
+/desktop/gnome/url-handlers/mumble/needs_terminal false
+/desktop/gnome/url-handlers/mumble/enabled true
+
Added: mumble/trunk/debian/mumble.install
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble.install?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble.install (added)
+++ mumble/trunk/debian/mumble.install Wed Mar 19 18:20:57 2008
@@ -1,0 +1,6 @@
+release/mumble usr/bin/
+release/libmumble.so* usr/lib/mumble/
+icons/mumble.xpm usr/share/pixmaps/
+scripts/mumble.desktop usr/share/applications/
+scripts/mumble.protocol usr/share/services/
+scripts/mumble-overlay usr/bin/
Added: mumble/trunk/debian/mumble.manpages
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble.manpages?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble.manpages (added)
+++ mumble/trunk/debian/mumble.manpages Wed Mar 19 18:20:57 2008
@@ -1,0 +1,2 @@
+man/mumble.1
+man/mumble-overlay.1
Added: mumble/trunk/debian/mumble.menu
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/mumble.menu?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/mumble.menu (added)
+++ mumble/trunk/debian/mumble.menu Wed Mar 19 18:20:57 2008
@@ -1,0 +1,4 @@
+?package(mumble):needs="X11" section="Applications/Sound"\
+ title="Mumble"\
+ description="Mumble voice chat client."\
+ command="/usr/bin/mumble" icon="/usr/share/pixmaps/mumble.xpm"
Added: mumble/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/rules?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/rules (added)
+++ mumble/trunk/debian/rules Wed Mar 19 18:20:57 2008
@@ -1,0 +1,90 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export DH_OPTIONS
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ qmake-qt4 main.pro DEFINES+=NO_UPDATE_CHECK DEFINES+=DEFAULT_SOUNDSYSTEM=ALSA
+ touch configure-stamp
+
+build: build-arch
+
+build-arch: build-arch-stamp
+
+build-arch-stamp: configure-stamp
+ $(MAKE) release
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-arch-stamp configure-stamp
+ [ ! -f Makefile ] || $(MAKE) distclean
+ # Unfortunately, static libraries are left over after
+ # qmake's makefile is done, as are the translations.
+ [ ! -f src/mumble/mumble_en.qm ] || rm -rf release debug src/mumble/*.qm
+ dh_clean
+
+install: install-indep install-arch
+
+install-indep:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -i
+ dh_installdirs -i
+ dh_install -s
+ # Install and rename web scripts
+ install -D -m 0755 ./scripts/murmur.pl $(CURDIR)/debian/mumble-server-web/usr/lib/cgi-bin/mumble-server/register.cgi
+ install -D -m 0755 ./scripts/weblist.pl $(CURDIR)/debian/mumble-server-web/usr/lib/cgi-bin/mumble-server/list.cgi
+
+install-arch:
+ dh_testdir
+ dh_testroot
+ dh_clean -k -s
+ dh_installdirs -s
+ dh_install -s
+ # Add debian files.
+ install -m 0755 ./scripts/murmur.init $(CURDIR)/debian/mumble-server.init
+ install -m 0755 ./scripts/murmur.logrotate $(CURDIR)/debian/mumble-server.logrotate
+ # install mumble files that need to be renamed.
+ install -m 0644 -D ./icons/mumble.16x16.png $(CURDIR)/debian/mumble/usr/share/icons/hicolor/apps/16x16/mumble.png
+ install -m 0644 -D ./icons/mumble.32x32.png $(CURDIR)/debian/mumble/usr/share/icons/hicolor/apps/32x32/mumble.png
+ install -m 0644 -D ./icons/mumble.48x48.png $(CURDIR)/debian/mumble/usr/share/icons/hicolor/apps/48x48/mumble.png
+ install -m 0644 -D ./icons/mumble.64x64.png $(CURDIR)/debian/mumble/usr/share/icons/hicolor/apps/64x64/mumble.png
+
+binary-common:
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs CHANGES
+ dh_installdocs
+ dh_installmenu
+ dh_installinit
+ dh_installman
+ dh_installlogrotate
+ dh_installdebconf
+ dh_gconf
+ dh_icons
+ dh_desktop
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_perl $(CURDIR)/debian/mumble-server-web/usr/lib/cgi-bin/mumble-server
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-indep: install-indep
+ $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+binary-arch: build-arch install-arch
+ $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure
Propchange: mumble/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable = *
Added: mumble/trunk/debian/watch
URL: http://svn.debian.org/wsvn/pkg-voip/mumble/trunk/debian/watch?rev=5326&op=file
==============================================================================
--- mumble/trunk/debian/watch (added)
+++ mumble/trunk/debian/watch Wed Mar 19 18:20:57 2008
@@ -1,0 +1,2 @@
+version=3
+http://sf.net/mumble/mumble-(.*)\.tar\.gz
More information about the Pkg-voip-commits
mailing list