umurmur: add service, user and cleanup a bit

This commit is contained in:
Duncaen 2016-08-06 17:17:51 +02:00
parent 6c92cf80e3
commit 0da779d8e5
3 changed files with 21 additions and 4 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
exec logger -p daemon.notice -t umurmurd

View File

@ -0,0 +1,5 @@
#!/bin/sh
exec 2>&1
[ -r ./conf ] && . ./conf
umurmurd -t -c /etc/umurmur/umurmur.conf || exit $?
exec chpst -uumurmur:umurmur umurmurd -d -c /etc/umurmur/umurmur.conf ${OPTS}

View File

@ -1,26 +1,35 @@
# Template file for 'umurmur'
pkgname=umurmur
version=0.2.16a
revision=1
revision=2
build_style=gnu-configure
configure_args="--enable-shmapi --with-ssl=openssl"
conf_files="/etc/umurmur/umurmur.conf"
hostmakedepends="automake libtool pkg-config"
hostmakedepends="automake libtool"
makedepends="libconfig-devel libressl-devel protobuf-c-devel"
short_desc="Minimalistic Mumble server"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="BSD"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="3-clause-BSD"
homepage="http://umurmur.net/"
distfiles="https://github.com/umurmur/umurmur/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=d64df8f77ceaa4951d7f2adbb2dcc173841d1e387ef4cd2082c42150a84349a5
system_accounts="umurmur"
umurmur_homedir="/var/lib/umurmur"
make_dirs="/var/lib/umurmur 0750 umurmur umurmur"
pre_configure() {
./autogen.sh
sed -i \
-e 's/# username = "";/username = "umurmur";/' \
-e 's/# groupname = "";/groupname = "umurmur";/' \
umurmur.conf.example
}
post_install() {
vdoc README.md
vlicense LICENSE
vinstall umurmur.conf.example 644 etc/umurmur umurmur.conf
vsv umurmurd
}