From 0da779d8e57e27d89c43301114211b76d20a775a Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sat, 6 Aug 2016 17:17:51 +0200 Subject: [PATCH] umurmur: add service, user and cleanup a bit --- srcpkgs/umurmur/files/umurmurd/log/run | 3 +++ srcpkgs/umurmur/files/umurmurd/run | 5 +++++ srcpkgs/umurmur/template | 17 +++++++++++++---- 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/umurmur/files/umurmurd/log/run create mode 100644 srcpkgs/umurmur/files/umurmurd/run diff --git a/srcpkgs/umurmur/files/umurmurd/log/run b/srcpkgs/umurmur/files/umurmurd/log/run new file mode 100644 index 00000000000..4935a89f175 --- /dev/null +++ b/srcpkgs/umurmur/files/umurmurd/log/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec logger -p daemon.notice -t umurmurd diff --git a/srcpkgs/umurmur/files/umurmurd/run b/srcpkgs/umurmur/files/umurmurd/run new file mode 100644 index 00000000000..147c1c6f15c --- /dev/null +++ b/srcpkgs/umurmur/files/umurmurd/run @@ -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} diff --git a/srcpkgs/umurmur/template b/srcpkgs/umurmur/template index fc0baace5bb..5106063cfe7 100644 --- a/srcpkgs/umurmur/template +++ b/srcpkgs/umurmur/template @@ -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 " -license="BSD" +maintainer="Duncaen " +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 }