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