summaryrefslogtreecommitdiff
path: root/community/umurmur
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
commit65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch)
treefbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/umurmur
parentd53c44f055929b18d7d1b25f8367ee5836c435fc (diff)
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/umurmur')
-rw-r--r--community/umurmur/PKGBUILD34
-rw-r--r--community/umurmur/umurmur.install13
-rw-r--r--community/umurmur/umurmur.service15
3 files changed, 62 insertions, 0 deletions
diff --git a/community/umurmur/PKGBUILD b/community/umurmur/PKGBUILD
new file mode 100644
index 000000000..6af6b8cb3
--- /dev/null
+++ b/community/umurmur/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 101363 2013-11-23 15:13:00Z bpiotrowski $
+# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+# Contributor: Robert Knauer <robert@privatdemail.net>
+# Contributor: xav <xav at ethertricks dot net>
+
+pkgname=umurmur
+pkgver=0.2.13
+pkgrel=1
+pkgdesc='Minimalistic Mumble server'
+arch=('i686' 'x86_64')
+url='http://code.google.com/p/umurmur/'
+license=('custom')
+depends=('openssl' 'libconfig' 'protobuf-c')
+install=$pkgname.install
+backup=('etc/umurmur/umurmur.conf')
+source=(http://umurmur.googlecode.com/files/umurmur-$pkgver.tar.gz
+ umurmur.service)
+md5sums=('04d0ea7a90b7858c16df26317b318bf4'
+ 'd9d556e4ffa77e193fb40ce508804720')
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man --with-ssl=openssl
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ install -Dm644 umurmur.conf.example "$pkgdir"/etc/umurmur/umurmur.conf
+ install -Dm644 ../umurmur.service "$pkgdir"/usr/lib/systemd/system/umurmur.service
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
diff --git a/community/umurmur/umurmur.install b/community/umurmur/umurmur.install
new file mode 100644
index 000000000..41332e9ba
--- /dev/null
+++ b/community/umurmur/umurmur.install
@@ -0,0 +1,13 @@
+post_install() {
+ getent group umurmur > /dev/null || groupadd -r umurmur 1>/dev/null
+ getent passwd umurmur > /dev/null || useradd -r -M -g umurmur -s /bin/false umurmur 1>/dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ getent passwd umurmur > /dev/null && userdel umurmur 1>/dev/null
+ getent group umurmur > /dev/null && groupdel umurmur 1>/dev/null
+}
diff --git a/community/umurmur/umurmur.service b/community/umurmur/umurmur.service
new file mode 100644
index 000000000..329f16803
--- /dev/null
+++ b/community/umurmur/umurmur.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=A minimalistic Mumble server
+After=network.target
+
+[Service]
+Type=simple
+User=umurmur
+Group=umurmur
+PIDFile=/run/umurmurd.pid
+ExecStartPre=/usr/bin/umurmurd -t -c /etc/umurmur/umurmur.conf
+ExecStart=/usr/bin/umurmurd -d -r -p /run/umurmurd.pid -c /etc/umurmur/umurmur.conf
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target