Date: Tuesday, February 19, 2013 @ 06:40:27
  Author: svenstaro
Revision: 84469

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  murmur/repos/community-staging-i686/
  murmur/repos/community-staging-i686/0003-fix-long-username-query.patch
    (from rev 84468, murmur/trunk/0003-fix-long-username-query.patch)
  murmur/repos/community-staging-i686/0004-fix-username-validation.patch
    (from rev 84468, murmur/trunk/0004-fix-username-validation.patch)
  murmur/repos/community-staging-i686/ChangeLog
    (from rev 84468, murmur/trunk/ChangeLog)
  murmur/repos/community-staging-i686/PKGBUILD
    (from rev 84468, murmur/trunk/PKGBUILD)
  murmur/repos/community-staging-i686/murmur.conf
    (from rev 84468, murmur/trunk/murmur.conf)
  murmur/repos/community-staging-i686/murmur.conf.d
    (from rev 84468, murmur/trunk/murmur.conf.d)
  murmur/repos/community-staging-i686/murmur.dbus.conf
    (from rev 84468, murmur/trunk/murmur.dbus.conf)
  murmur/repos/community-staging-i686/murmur.install
    (from rev 84468, murmur/trunk/murmur.install)
  murmur/repos/community-staging-i686/murmur.logrotate.d
    (from rev 84468, murmur/trunk/murmur.logrotate.d)
  murmur/repos/community-staging-i686/murmur.rc.d
    (from rev 84468, murmur/trunk/murmur.rc.d)
  murmur/repos/community-staging-i686/murmur.service
    (from rev 84468, murmur/trunk/murmur.service)
  murmur/repos/community-staging-x86_64/
  murmur/repos/community-staging-x86_64/0003-fix-long-username-query.patch
    (from rev 84468, murmur/trunk/0003-fix-long-username-query.patch)
  murmur/repos/community-staging-x86_64/0004-fix-username-validation.patch
    (from rev 84468, murmur/trunk/0004-fix-username-validation.patch)
  murmur/repos/community-staging-x86_64/ChangeLog
    (from rev 84468, murmur/trunk/ChangeLog)
  murmur/repos/community-staging-x86_64/PKGBUILD
    (from rev 84468, murmur/trunk/PKGBUILD)
  murmur/repos/community-staging-x86_64/murmur.conf
    (from rev 84468, murmur/trunk/murmur.conf)
  murmur/repos/community-staging-x86_64/murmur.conf.d
    (from rev 84468, murmur/trunk/murmur.conf.d)
  murmur/repos/community-staging-x86_64/murmur.dbus.conf
    (from rev 84468, murmur/trunk/murmur.dbus.conf)
  murmur/repos/community-staging-x86_64/murmur.install
    (from rev 84468, murmur/trunk/murmur.install)
  murmur/repos/community-staging-x86_64/murmur.logrotate.d
    (from rev 84468, murmur/trunk/murmur.logrotate.d)
  murmur/repos/community-staging-x86_64/murmur.rc.d
    (from rev 84468, murmur/trunk/murmur.rc.d)
  murmur/repos/community-staging-x86_64/murmur.service
    (from rev 84468, murmur/trunk/murmur.service)

-------------------------------------------------------------+
 community-staging-i686/0003-fix-long-username-query.patch   |   42 ++++++
 community-staging-i686/0004-fix-username-validation.patch   |   36 +++++
 community-staging-i686/ChangeLog                            |   36 +++++
 community-staging-i686/PKGBUILD                             |   66 ++++++++++
 community-staging-i686/murmur.conf                          |    1 
 community-staging-i686/murmur.conf.d                        |    2 
 community-staging-i686/murmur.dbus.conf                     |   22 +++
 community-staging-i686/murmur.install                       |   19 ++
 community-staging-i686/murmur.logrotate.d                   |    6 
 community-staging-i686/murmur.rc.d                          |   44 ++++++
 community-staging-i686/murmur.service                       |   12 +
 community-staging-x86_64/0003-fix-long-username-query.patch |   42 ++++++
 community-staging-x86_64/0004-fix-username-validation.patch |   36 +++++
 community-staging-x86_64/ChangeLog                          |   36 +++++
 community-staging-x86_64/PKGBUILD                           |   66 ++++++++++
 community-staging-x86_64/murmur.conf                        |    1 
 community-staging-x86_64/murmur.conf.d                      |    2 
 community-staging-x86_64/murmur.dbus.conf                   |   22 +++
 community-staging-x86_64/murmur.install                     |   19 ++
 community-staging-x86_64/murmur.logrotate.d                 |    6 
 community-staging-x86_64/murmur.rc.d                        |   44 ++++++
 community-staging-x86_64/murmur.service                     |   12 +
 22 files changed, 572 insertions(+)

Copied: murmur/repos/community-staging-i686/0003-fix-long-username-query.patch 
(from rev 84468, murmur/trunk/0003-fix-long-username-query.patch)
===================================================================
--- community-staging-i686/0003-fix-long-username-query.patch                   
        (rev 0)
+++ community-staging-i686/0003-fix-long-username-query.patch   2013-02-19 
05:40:27 UTC (rev 84469)
@@ -0,0 +1,42 @@
+commit 6b33dda344f89e5a039b7d79eb43925040654242
+Author: Benjamin Jemlich <[email protected]>
+Date:   Tue Jun 29 14:49:14 2010 +0200
+
+    Don't crash on long usernames
+
+diff --git a/src/murmur/Messages.cpp b/src/murmur/Messages.cpp
+index f12867a..de307ea 100644
+--- a/src/murmur/Messages.cpp
++++ b/src/murmur/Messages.cpp
+@@ -1231,6 +1231,9 @@ void Server::msgQueryUsers(ServerUser *uSource, 
MumbleProto::QueryUsers &msg) {
+ 
+       for (int i=0;i<msg.names_size();++i) {
+               QString name = u8(msg.names(i));
++              if (!validateUserName(name)) {
++                      continue;
++              }
+               int id = getUserID(name);
+               if (id >= 0) {
+                       name = getUserName(id);
+diff --git a/src/murmur/ServerDB.cpp b/src/murmur/ServerDB.cpp
+index 11b6906..7e15def 100644
+--- a/src/murmur/ServerDB.cpp
++++ b/src/murmur/ServerDB.cpp
+@@ -810,7 +810,7 @@ int Server::authenticate(QString &name, const QString &pw, 
const QStringList &em
+       TransactionHolder th;
+       QSqlQuery &query = *th.qsqQuery;
+ 
+-      SQLPREP("SELECT `user_id`,`name`,`pw` FROM `%1users` WHERE `server_id` 
= ? AND `name` like ?");
++      SQLPREP("SELECT `user_id`,`name`,`pw` FROM `%1users` WHERE `server_id` 
= ? AND LOWER(`name`) = LOWER(?)");
+       query.addBindValue(iServerNum);
+       query.addBindValue(name);
+       SQLEXEC();
+@@ -1051,7 +1051,7 @@ int Server::getUserID(const QString &name) {
+       TransactionHolder th;
+ 
+       QSqlQuery &query = *th.qsqQuery;
+-      SQLPREP("SELECT `user_id` FROM `%1users` WHERE `server_id` = ? AND 
`name` like ?");
++      SQLPREP("SELECT `user_id` FROM `%1users` WHERE `server_id` = ? AND 
LOWER(`name`) = LOWER(?)");
+       query.addBindValue(iServerNum);
+       query.addBindValue(name);
+       SQLEXEC();

Copied: murmur/repos/community-staging-i686/0004-fix-username-validation.patch 
(from rev 84468, murmur/trunk/0004-fix-username-validation.patch)
===================================================================
--- community-staging-i686/0004-fix-username-validation.patch                   
        (rev 0)
+++ community-staging-i686/0004-fix-username-validation.patch   2013-02-19 
05:40:27 UTC (rev 84469)
@@ -0,0 +1,36 @@
+commit 5c40cfeb4b5f8911df926c19f2dd628703840f64
+Author: Stefan Hacker <[email protected]>
+Date:   Tue Jun 29 23:39:16 2010 +0200
+
+    Don't validate the name before we are sure it wasn't already validated by 
an authenticator
+
+diff --git a/src/murmur/Messages.cpp b/src/murmur/Messages.cpp
+index de307ea..f12867a 100644
+--- a/src/murmur/Messages.cpp
++++ b/src/murmur/Messages.cpp
+@@ -1231,9 +1231,6 @@ void Server::msgQueryUsers(ServerUser *uSource, 
MumbleProto::QueryUsers &msg) {
+ 
+       for (int i=0;i<msg.names_size();++i) {
+               QString name = u8(msg.names(i));
+-              if (!validateUserName(name)) {
+-                      continue;
+-              }
+               int id = getUserID(name);
+               if (id >= 0) {
+                       name = getUserName(id);
+diff --git a/src/murmur/ServerDB.cpp b/src/murmur/ServerDB.cpp
+index 7e15def..70b4ca4 100644
+--- a/src/murmur/ServerDB.cpp
++++ b/src/murmur/ServerDB.cpp
+@@ -1048,6 +1048,11 @@ int Server::getUserID(const QString &name) {
+               qhUserNameCache.insert(id, name);
+               return id;
+       }
++
++      if (!validateUserName(name)) {
++          return id;
++      }
++
+       TransactionHolder th;
+ 
+       QSqlQuery &query = *th.qsqQuery;

Copied: murmur/repos/community-staging-i686/ChangeLog (from rev 84468, 
murmur/trunk/ChangeLog)
===================================================================
--- community-staging-i686/ChangeLog                            (rev 0)
+++ community-staging-i686/ChangeLog    2013-02-19 05:40:27 UTC (rev 84469)
@@ -0,0 +1,36 @@
+2010-02-11 Otto Allmendinger <[email protected]>
+       * 1.2.2-1:
+       bump to version 1.2.2
+
+2010-01-09 Otto Allmendinger <[email protected]>
+       * 1.2.1-1:
+       bump to version 1.2.1
+
+2009-12-18 Otto Allmendinger <[email protected]>
+       * 1.2.0-8:
+       included dbus configuration file, changed default dbus settings
+
+       * 1.2.0-7:
+       included manfile
+       renamed binary "murmur" to "murmurd" to be consistent with manfile
+       changed murmur user shell to /bin/false (shell access not required 
anymore)
+
+2009-12-17 Malte Rabenseifner <[email protected]>
+       * 1.2.0-6:
+       included manfile
+       using mumbles included privilige dropping
+       added some files to backup array
+       added logrotate configuration file
+
+2009-12-15 Otto Allmendinger <[email protected]>
+       * 1.2.0-5 :
+       simplified dependencies
+       increased visibility of install messages
+
+       * 1.2.0-4 :
+       added boost to makedepends
+
+       * 1.2.0-3 :
+       added ChangeLog
+       added post_upgrade() function
+       added x86_64 to arch

Copied: murmur/repos/community-staging-i686/PKGBUILD (from rev 84468, 
murmur/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD                             (rev 0)
+++ community-staging-i686/PKGBUILD     2013-02-19 05:40:27 UTC (rev 84469)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Contributor: Otto Allmendinger <[email protected]>
+# Contributor: Malte Rabenseifner <[email protected]> 
+
+pkgname=murmur
+pkgver=1.2.3
+pkgrel=10
+pkgdesc="The voice chat application server for Mumble"
+arch=('i686' 'x86_64')
+url="http://mumble.sourceforge.net";
+license=('GPL')
+depends=('avahi' 'lsb-release' 'protobuf' 'qt4' 'icu')
+makedepends=('boost')
+backup=("etc/murmur.ini"
+        "etc/logrotate.d/murmur"
+        "etc/conf.d/murmur" )
+install="murmur.install"
+source=("http://downloads.sourceforge.net/mumble/mumble-$pkgver.tar.gz";
+        "murmur.rc.d"
+        "murmur.conf.d"
+        "murmur.dbus.conf"
+        "murmur.logrotate.d"
+        "murmur.service"
+        "murmur.conf")
+md5sums=('55804e3dfe98b16eeb40abca6c254625'
+         'a4f6fc515f258eb4db437a226e16de5d'
+         '11c1cc875e8021739ec2087252cf0533'
+         'eddea4cdbd0bde4b960a67e16b5d5478'
+         'c56726cb267ead68f37f35c28e36e6fa'
+         '5ad8798aea4f8b70f47f16df64f755b3'
+         'e00d0d2610b77efebce5b3556609251f')
+
+build() {
+  cd ${srcdir}/mumble-$pkgver
+
+  qmake main.pro CONFIG+="no-client no-ice"
+  make release
+}
+
+package() {
+  cd ${srcdir}/mumble-$pkgver
+
+  sed -e "1i# vi:ft=cfg" \
+    -e "s|database=|database=/var/lib/murmur/murmur.sqlite|" \
+    -e "s|dbus=session|#dbus=system|" \
+    -e "s|#logfile=murmur.log|logfile=/var/log/murmur/murmur.log|" \
+    -e "s|#pidfile=|pidfile=/var/run/murmur/murmur.pid|" \
+    -e "s|#uname=|uname=murmur|" \
+    -i scripts/murmur.ini
+
+  install -dm755 ${pkgdir}/var/lib/murmur
+  install -dm755 ${pkgdir}/var/log/murmur
+  install -Dm755 release/murmurd ${pkgdir}/usr/sbin/murmurd
+  install -Dm644 scripts/murmur.ini ${pkgdir}/etc/murmur.ini
+  install -Dm755 ${srcdir}/murmur.rc.d ${pkgdir}/etc/rc.d/murmur
+  install -Dm644 ${srcdir}/murmur.conf.d ${pkgdir}/etc/conf.d/murmur
+  install -Dm644 ${srcdir}/murmur.dbus.conf 
${pkgdir}/etc/dbus-1/system.d/murmur.conf
+  install -Dm644 ${srcdir}/murmur.logrotate.d ${pkgdir}/etc/logrotate.d/murmur
+  install -Dm644 README ${pkgdir}/usr/share/doc/murmur/README
+  install -Dm644 man/murmurd.1 ${pkgdir}/usr/share/man/man1/murmurd.1
+  install -Dm644 ${srcdir}/murmur.conf ${pkgdir}/usr/lib/tmpfiles.d/murmur.conf
+  install -Dm644 ${srcdir}/murmur.service 
${pkgdir}/usr/lib/systemd/system/murmur.service
+}
+
+# vim: sw=2:ts=2 et:

Copied: murmur/repos/community-staging-i686/murmur.conf (from rev 84468, 
murmur/trunk/murmur.conf)
===================================================================
--- community-staging-i686/murmur.conf                          (rev 0)
+++ community-staging-i686/murmur.conf  2013-02-19 05:40:27 UTC (rev 84469)
@@ -0,0 +1 @@
+d /run/murmur 0775 murmur murmur -

Copied: murmur/repos/community-staging-i686/murmur.conf.d (from rev 84468, 
murmur/trunk/murmur.conf.d)
===================================================================
--- community-staging-i686/murmur.conf.d                                (rev 0)
+++ community-staging-i686/murmur.conf.d        2013-02-19 05:40:27 UTC (rev 
84469)
@@ -0,0 +1,2 @@
+# Use /etc/murmur.ini as configuration file
+PARAMS="-ini /etc/murmur.ini"

Copied: murmur/repos/community-staging-i686/murmur.dbus.conf (from rev 84468, 
murmur/trunk/murmur.dbus.conf)
===================================================================
--- community-staging-i686/murmur.dbus.conf                             (rev 0)
+++ community-staging-i686/murmur.dbus.conf     2013-02-19 05:40:27 UTC (rev 
84469)
@@ -0,0 +1,22 @@
+<!-- vi: set ft=xml: -->
+<!-- 
+    As described in http://mumble.sourceforge.net/DBus, 
+    but with different username
+-->
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd";>
+<busconfig>
+
+  <policy user="murmur">
+    <allow own="net.sourceforge.mumble.murmur"/>
+  </policy>
+  <policy user="root">
+    <allow own="net.sourceforge.mumble.murmur"/>
+  </policy>
+
+  <policy context="default">
+    <allow send_destination="net.sourceforge.mumble.murmur"/>
+    <allow receive_sender="net.sourceforge.mumble.murmur"/>
+  </policy>
+</busconfig>

Copied: murmur/repos/community-staging-i686/murmur.install (from rev 84468, 
murmur/trunk/murmur.install)
===================================================================
--- community-staging-i686/murmur.install                               (rev 0)
+++ community-staging-i686/murmur.install       2013-02-19 05:40:27 UTC (rev 
84469)
@@ -0,0 +1,19 @@
+post_install() {
+    systemd-tmpfiles --create usr/lib/tmpfiles.d/murmur.conf
+
+       getent group murmur > /dev/null || groupadd -r -g 86 murmur 1>/dev/null
+       getent passwd murmur > /dev/null || useradd -r -u 86 -d /var/lib/murmur 
-g murmur -s /bin/false murmur 1>/dev/null
+
+       chown -R murmur:murmur /var/lib/murmur 
+       chown -R murmur:murmur /var/log/murmur
+
+       echo "You might have to reload dbus before launching murmur:"
+    echo "    systemctl reload bus"
+       echo "Don't forget to set the superuser password:"
+       echo "    murmurd -ini /etc/murmur.ini -supw <your-password>"
+}
+
+post_remove() {
+       getent passwd murmur > /dev/null && userdel murmur 1>/dev/null
+       getent group murmur > /dev/null && groupdel murmur 1>/dev/null
+}

Copied: murmur/repos/community-staging-i686/murmur.logrotate.d (from rev 84468, 
murmur/trunk/murmur.logrotate.d)
===================================================================
--- community-staging-i686/murmur.logrotate.d                           (rev 0)
+++ community-staging-i686/murmur.logrotate.d   2013-02-19 05:40:27 UTC (rev 
84469)
@@ -0,0 +1,6 @@
+/var/log/murmur/murmur.log {
+       missingok
+       postrotate
+        /bin/kill -HUP `cat /var/run/murmur/murmur.pid 2>/dev/null` 2> 
/dev/null || true
+       endscript
+}

Copied: murmur/repos/community-staging-i686/murmur.rc.d (from rev 84468, 
murmur/trunk/murmur.rc.d)
===================================================================
--- community-staging-i686/murmur.rc.d                          (rev 0)
+++ community-staging-i686/murmur.rc.d  2013-02-19 05:40:27 UTC (rev 84469)
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+CONF=/etc/conf.d/murmur
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+[ -f $CONF ] && . $CONF
+
+PID=$(pidof -o %PPID /usr/sbin/murmurd)
+case "$1" in
+  start)
+    stat_busy "Starting murmur"
+
+    [ -d /var/run/murmur ] || mkdir -p /var/run/murmur
+    chown murmur:murmur /var/run/murmur
+
+    [ -z "$PID" ] && /usr/sbin/murmurd $PARAMS
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon murmur
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping murmur"
+    [ ! -z "$PID" ]  && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon murmur
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"
+esac
+exit 0

Copied: murmur/repos/community-staging-i686/murmur.service (from rev 84468, 
murmur/trunk/murmur.service)
===================================================================
--- community-staging-i686/murmur.service                               (rev 0)
+++ community-staging-i686/murmur.service       2013-02-19 05:40:27 UTC (rev 
84469)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Mumble Daemon
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/murmur/murmur.pid
+ExecStart=/usr/sbin/murmurd -ini /etc/murmur.ini
+Restart=always
+
+[Install]
+WantedBy=multi-user.target

Copied: 
murmur/repos/community-staging-x86_64/0003-fix-long-username-query.patch (from 
rev 84468, murmur/trunk/0003-fix-long-username-query.patch)
===================================================================
--- community-staging-x86_64/0003-fix-long-username-query.patch                 
        (rev 0)
+++ community-staging-x86_64/0003-fix-long-username-query.patch 2013-02-19 
05:40:27 UTC (rev 84469)
@@ -0,0 +1,42 @@
+commit 6b33dda344f89e5a039b7d79eb43925040654242
+Author: Benjamin Jemlich <[email protected]>
+Date:   Tue Jun 29 14:49:14 2010 +0200
+
+    Don't crash on long usernames
+
+diff --git a/src/murmur/Messages.cpp b/src/murmur/Messages.cpp
+index f12867a..de307ea 100644
+--- a/src/murmur/Messages.cpp
++++ b/src/murmur/Messages.cpp
+@@ -1231,6 +1231,9 @@ void Server::msgQueryUsers(ServerUser *uSource, 
MumbleProto::QueryUsers &msg) {
+ 
+       for (int i=0;i<msg.names_size();++i) {
+               QString name = u8(msg.names(i));
++              if (!validateUserName(name)) {
++                      continue;
++              }
+               int id = getUserID(name);
+               if (id >= 0) {
+                       name = getUserName(id);
+diff --git a/src/murmur/ServerDB.cpp b/src/murmur/ServerDB.cpp
+index 11b6906..7e15def 100644
+--- a/src/murmur/ServerDB.cpp
++++ b/src/murmur/ServerDB.cpp
+@@ -810,7 +810,7 @@ int Server::authenticate(QString &name, const QString &pw, 
const QStringList &em
+       TransactionHolder th;
+       QSqlQuery &query = *th.qsqQuery;
+ 
+-      SQLPREP("SELECT `user_id`,`name`,`pw` FROM `%1users` WHERE `server_id` 
= ? AND `name` like ?");
++      SQLPREP("SELECT `user_id`,`name`,`pw` FROM `%1users` WHERE `server_id` 
= ? AND LOWER(`name`) = LOWER(?)");
+       query.addBindValue(iServerNum);
+       query.addBindValue(name);
+       SQLEXEC();
+@@ -1051,7 +1051,7 @@ int Server::getUserID(const QString &name) {
+       TransactionHolder th;
+ 
+       QSqlQuery &query = *th.qsqQuery;
+-      SQLPREP("SELECT `user_id` FROM `%1users` WHERE `server_id` = ? AND 
`name` like ?");
++      SQLPREP("SELECT `user_id` FROM `%1users` WHERE `server_id` = ? AND 
LOWER(`name`) = LOWER(?)");
+       query.addBindValue(iServerNum);
+       query.addBindValue(name);
+       SQLEXEC();

Copied: 
murmur/repos/community-staging-x86_64/0004-fix-username-validation.patch (from 
rev 84468, murmur/trunk/0004-fix-username-validation.patch)
===================================================================
--- community-staging-x86_64/0004-fix-username-validation.patch                 
        (rev 0)
+++ community-staging-x86_64/0004-fix-username-validation.patch 2013-02-19 
05:40:27 UTC (rev 84469)
@@ -0,0 +1,36 @@
+commit 5c40cfeb4b5f8911df926c19f2dd628703840f64
+Author: Stefan Hacker <[email protected]>
+Date:   Tue Jun 29 23:39:16 2010 +0200
+
+    Don't validate the name before we are sure it wasn't already validated by 
an authenticator
+
+diff --git a/src/murmur/Messages.cpp b/src/murmur/Messages.cpp
+index de307ea..f12867a 100644
+--- a/src/murmur/Messages.cpp
++++ b/src/murmur/Messages.cpp
+@@ -1231,9 +1231,6 @@ void Server::msgQueryUsers(ServerUser *uSource, 
MumbleProto::QueryUsers &msg) {
+ 
+       for (int i=0;i<msg.names_size();++i) {
+               QString name = u8(msg.names(i));
+-              if (!validateUserName(name)) {
+-                      continue;
+-              }
+               int id = getUserID(name);
+               if (id >= 0) {
+                       name = getUserName(id);
+diff --git a/src/murmur/ServerDB.cpp b/src/murmur/ServerDB.cpp
+index 7e15def..70b4ca4 100644
+--- a/src/murmur/ServerDB.cpp
++++ b/src/murmur/ServerDB.cpp
+@@ -1048,6 +1048,11 @@ int Server::getUserID(const QString &name) {
+               qhUserNameCache.insert(id, name);
+               return id;
+       }
++
++      if (!validateUserName(name)) {
++          return id;
++      }
++
+       TransactionHolder th;
+ 
+       QSqlQuery &query = *th.qsqQuery;

Copied: murmur/repos/community-staging-x86_64/ChangeLog (from rev 84468, 
murmur/trunk/ChangeLog)
===================================================================
--- community-staging-x86_64/ChangeLog                          (rev 0)
+++ community-staging-x86_64/ChangeLog  2013-02-19 05:40:27 UTC (rev 84469)
@@ -0,0 +1,36 @@
+2010-02-11 Otto Allmendinger <[email protected]>
+       * 1.2.2-1:
+       bump to version 1.2.2
+
+2010-01-09 Otto Allmendinger <[email protected]>
+       * 1.2.1-1:
+       bump to version 1.2.1
+
+2009-12-18 Otto Allmendinger <[email protected]>
+       * 1.2.0-8:
+       included dbus configuration file, changed default dbus settings
+
+       * 1.2.0-7:
+       included manfile
+       renamed binary "murmur" to "murmurd" to be consistent with manfile
+       changed murmur user shell to /bin/false (shell access not required 
anymore)
+
+2009-12-17 Malte Rabenseifner <[email protected]>
+       * 1.2.0-6:
+       included manfile
+       using mumbles included privilige dropping
+       added some files to backup array
+       added logrotate configuration file
+
+2009-12-15 Otto Allmendinger <[email protected]>
+       * 1.2.0-5 :
+       simplified dependencies
+       increased visibility of install messages
+
+       * 1.2.0-4 :
+       added boost to makedepends
+
+       * 1.2.0-3 :
+       added ChangeLog
+       added post_upgrade() function
+       added x86_64 to arch

Copied: murmur/repos/community-staging-x86_64/PKGBUILD (from rev 84468, 
murmur/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2013-02-19 05:40:27 UTC (rev 84469)
@@ -0,0 +1,66 @@
+# $Id$
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Contributor: Otto Allmendinger <[email protected]>
+# Contributor: Malte Rabenseifner <[email protected]> 
+
+pkgname=murmur
+pkgver=1.2.3
+pkgrel=10
+pkgdesc="The voice chat application server for Mumble"
+arch=('i686' 'x86_64')
+url="http://mumble.sourceforge.net";
+license=('GPL')
+depends=('avahi' 'lsb-release' 'protobuf' 'qt4' 'icu')
+makedepends=('boost')
+backup=("etc/murmur.ini"
+        "etc/logrotate.d/murmur"
+        "etc/conf.d/murmur" )
+install="murmur.install"
+source=("http://downloads.sourceforge.net/mumble/mumble-$pkgver.tar.gz";
+        "murmur.rc.d"
+        "murmur.conf.d"
+        "murmur.dbus.conf"
+        "murmur.logrotate.d"
+        "murmur.service"
+        "murmur.conf")
+md5sums=('55804e3dfe98b16eeb40abca6c254625'
+         'a4f6fc515f258eb4db437a226e16de5d'
+         '11c1cc875e8021739ec2087252cf0533'
+         'eddea4cdbd0bde4b960a67e16b5d5478'
+         'c56726cb267ead68f37f35c28e36e6fa'
+         '5ad8798aea4f8b70f47f16df64f755b3'
+         'e00d0d2610b77efebce5b3556609251f')
+
+build() {
+  cd ${srcdir}/mumble-$pkgver
+
+  qmake main.pro CONFIG+="no-client no-ice"
+  make release
+}
+
+package() {
+  cd ${srcdir}/mumble-$pkgver
+
+  sed -e "1i# vi:ft=cfg" \
+    -e "s|database=|database=/var/lib/murmur/murmur.sqlite|" \
+    -e "s|dbus=session|#dbus=system|" \
+    -e "s|#logfile=murmur.log|logfile=/var/log/murmur/murmur.log|" \
+    -e "s|#pidfile=|pidfile=/var/run/murmur/murmur.pid|" \
+    -e "s|#uname=|uname=murmur|" \
+    -i scripts/murmur.ini
+
+  install -dm755 ${pkgdir}/var/lib/murmur
+  install -dm755 ${pkgdir}/var/log/murmur
+  install -Dm755 release/murmurd ${pkgdir}/usr/sbin/murmurd
+  install -Dm644 scripts/murmur.ini ${pkgdir}/etc/murmur.ini
+  install -Dm755 ${srcdir}/murmur.rc.d ${pkgdir}/etc/rc.d/murmur
+  install -Dm644 ${srcdir}/murmur.conf.d ${pkgdir}/etc/conf.d/murmur
+  install -Dm644 ${srcdir}/murmur.dbus.conf 
${pkgdir}/etc/dbus-1/system.d/murmur.conf
+  install -Dm644 ${srcdir}/murmur.logrotate.d ${pkgdir}/etc/logrotate.d/murmur
+  install -Dm644 README ${pkgdir}/usr/share/doc/murmur/README
+  install -Dm644 man/murmurd.1 ${pkgdir}/usr/share/man/man1/murmurd.1
+  install -Dm644 ${srcdir}/murmur.conf ${pkgdir}/usr/lib/tmpfiles.d/murmur.conf
+  install -Dm644 ${srcdir}/murmur.service 
${pkgdir}/usr/lib/systemd/system/murmur.service
+}
+
+# vim: sw=2:ts=2 et:

Copied: murmur/repos/community-staging-x86_64/murmur.conf (from rev 84468, 
murmur/trunk/murmur.conf)
===================================================================
--- community-staging-x86_64/murmur.conf                                (rev 0)
+++ community-staging-x86_64/murmur.conf        2013-02-19 05:40:27 UTC (rev 
84469)
@@ -0,0 +1 @@
+d /run/murmur 0775 murmur murmur -

Copied: murmur/repos/community-staging-x86_64/murmur.conf.d (from rev 84468, 
murmur/trunk/murmur.conf.d)
===================================================================
--- community-staging-x86_64/murmur.conf.d                              (rev 0)
+++ community-staging-x86_64/murmur.conf.d      2013-02-19 05:40:27 UTC (rev 
84469)
@@ -0,0 +1,2 @@
+# Use /etc/murmur.ini as configuration file
+PARAMS="-ini /etc/murmur.ini"

Copied: murmur/repos/community-staging-x86_64/murmur.dbus.conf (from rev 84468, 
murmur/trunk/murmur.dbus.conf)
===================================================================
--- community-staging-x86_64/murmur.dbus.conf                           (rev 0)
+++ community-staging-x86_64/murmur.dbus.conf   2013-02-19 05:40:27 UTC (rev 
84469)
@@ -0,0 +1,22 @@
+<!-- vi: set ft=xml: -->
+<!-- 
+    As described in http://mumble.sourceforge.net/DBus, 
+    but with different username
+-->
+<!DOCTYPE busconfig PUBLIC
+ "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd";>
+<busconfig>
+
+  <policy user="murmur">
+    <allow own="net.sourceforge.mumble.murmur"/>
+  </policy>
+  <policy user="root">
+    <allow own="net.sourceforge.mumble.murmur"/>
+  </policy>
+
+  <policy context="default">
+    <allow send_destination="net.sourceforge.mumble.murmur"/>
+    <allow receive_sender="net.sourceforge.mumble.murmur"/>
+  </policy>
+</busconfig>

Copied: murmur/repos/community-staging-x86_64/murmur.install (from rev 84468, 
murmur/trunk/murmur.install)
===================================================================
--- community-staging-x86_64/murmur.install                             (rev 0)
+++ community-staging-x86_64/murmur.install     2013-02-19 05:40:27 UTC (rev 
84469)
@@ -0,0 +1,19 @@
+post_install() {
+    systemd-tmpfiles --create usr/lib/tmpfiles.d/murmur.conf
+
+       getent group murmur > /dev/null || groupadd -r -g 86 murmur 1>/dev/null
+       getent passwd murmur > /dev/null || useradd -r -u 86 -d /var/lib/murmur 
-g murmur -s /bin/false murmur 1>/dev/null
+
+       chown -R murmur:murmur /var/lib/murmur 
+       chown -R murmur:murmur /var/log/murmur
+
+       echo "You might have to reload dbus before launching murmur:"
+    echo "    systemctl reload bus"
+       echo "Don't forget to set the superuser password:"
+       echo "    murmurd -ini /etc/murmur.ini -supw <your-password>"
+}
+
+post_remove() {
+       getent passwd murmur > /dev/null && userdel murmur 1>/dev/null
+       getent group murmur > /dev/null && groupdel murmur 1>/dev/null
+}

Copied: murmur/repos/community-staging-x86_64/murmur.logrotate.d (from rev 
84468, murmur/trunk/murmur.logrotate.d)
===================================================================
--- community-staging-x86_64/murmur.logrotate.d                         (rev 0)
+++ community-staging-x86_64/murmur.logrotate.d 2013-02-19 05:40:27 UTC (rev 
84469)
@@ -0,0 +1,6 @@
+/var/log/murmur/murmur.log {
+       missingok
+       postrotate
+        /bin/kill -HUP `cat /var/run/murmur/murmur.pid 2>/dev/null` 2> 
/dev/null || true
+       endscript
+}

Copied: murmur/repos/community-staging-x86_64/murmur.rc.d (from rev 84468, 
murmur/trunk/murmur.rc.d)
===================================================================
--- community-staging-x86_64/murmur.rc.d                                (rev 0)
+++ community-staging-x86_64/murmur.rc.d        2013-02-19 05:40:27 UTC (rev 
84469)
@@ -0,0 +1,44 @@
+#!/bin/bash
+
+CONF=/etc/conf.d/murmur
+
+. /etc/rc.conf
+. /etc/rc.d/functions
+
+[ -f $CONF ] && . $CONF
+
+PID=$(pidof -o %PPID /usr/sbin/murmurd)
+case "$1" in
+  start)
+    stat_busy "Starting murmur"
+
+    [ -d /var/run/murmur ] || mkdir -p /var/run/murmur
+    chown murmur:murmur /var/run/murmur
+
+    [ -z "$PID" ] && /usr/sbin/murmurd $PARAMS
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      add_daemon murmur
+      stat_done
+    fi
+    ;;
+  stop)
+    stat_busy "Stopping murmur"
+    [ ! -z "$PID" ]  && kill $PID &> /dev/null
+    if [ $? -gt 0 ]; then
+      stat_fail
+    else
+      rm_daemon murmur
+      stat_done
+    fi
+    ;;
+  restart)
+    $0 stop
+    sleep 1
+    $0 start
+    ;;
+  *)
+    echo "usage: $0 {start|stop|restart}"
+esac
+exit 0

Copied: murmur/repos/community-staging-x86_64/murmur.service (from rev 84468, 
murmur/trunk/murmur.service)
===================================================================
--- community-staging-x86_64/murmur.service                             (rev 0)
+++ community-staging-x86_64/murmur.service     2013-02-19 05:40:27 UTC (rev 
84469)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Mumble Daemon
+After=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/murmur/murmur.pid
+ExecStart=/usr/sbin/murmurd -ini /etc/murmur.ini
+Restart=always
+
+[Install]
+WantedBy=multi-user.target

Reply via email to