diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-12-23 12:11:50 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-12-23 12:11:50 +0000 |
commit | 0a27e05702c5b801a94145524d3dece86b61e7d3 (patch) | |
tree | 1977bb368589ce2719815096565cfd219bc03f72 /media-sound | |
parent | Stable for ppc64, wrt bug #441906 (diff) | |
download | gentoo-2-0a27e05702c5b801a94145524d3dece86b61e7d3.tar.gz gentoo-2-0a27e05702c5b801a94145524d3dece86b61e7d3.tar.bz2 gentoo-2-0a27e05702c5b801a94145524d3dece86b61e7d3.zip |
add systemd unit wrt #487940
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/umurmur/ChangeLog | 8 | ||||
-rw-r--r-- | media-sound/umurmur/files/umurmurd.service | 15 | ||||
-rw-r--r-- | media-sound/umurmur/umurmur-0.2.13-r1.ebuild | 67 |
3 files changed, 89 insertions, 1 deletions
diff --git a/media-sound/umurmur/ChangeLog b/media-sound/umurmur/ChangeLog index b6726594e495..3c2e86096f81 100644 --- a/media-sound/umurmur/ChangeLog +++ b/media-sound/umurmur/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/umurmur # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/umurmur/ChangeLog,v 1.8 2013/11/23 06:54:54 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/umurmur/ChangeLog,v 1.9 2013/12/23 12:11:50 hasufell Exp $ + +*umurmur-0.2.13-r1 (23 Dec 2013) + + 23 Dec 2013; Julian Ospald <hasufell@gentoo.org> +umurmur-0.2.13-r1.ebuild, + +files/umurmurd.service: + add systemd unit wrt #487940 23 Nov 2013; Patrick Lauer <patrick@gentoo.org> metadata.xml: Remove unneeded useflag description from metadata.xml diff --git a/media-sound/umurmur/files/umurmurd.service b/media-sound/umurmur/files/umurmurd.service new file mode 100644 index 000000000000..12ad2aec6459 --- /dev/null +++ b/media-sound/umurmur/files/umurmurd.service @@ -0,0 +1,15 @@ +[Unit] +Description=A minimalistic Mumble server +After=network.target + +[Service] +Type=simple +User=murmur +Group=murmur +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 diff --git a/media-sound/umurmur/umurmur-0.2.13-r1.ebuild b/media-sound/umurmur/umurmur-0.2.13-r1.ebuild new file mode 100644 index 000000000000..560c453cb5f2 --- /dev/null +++ b/media-sound/umurmur/umurmur-0.2.13-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/umurmur/umurmur-0.2.13-r1.ebuild,v 1.1 2013/12/23 12:11:50 hasufell Exp $ + +EAPI=5 + +inherit systemd eutils readme.gentoo user + +DESCRIPTION="Minimalistic Murmur (Mumble server)" +HOMEPAGE="http://code.google.com/p/umurmur/" +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=dev-libs/protobuf-c-0.14 + dev-libs/libconfig + dev-libs/openssl:0" + +RDEPEND="${DEPEND}" + +DOC_CONTENTS=" + A configuration file has been installed at /etc/umurmur.conf - you may + want to review it. See also\n + http://code.google.com/p/umurmur/wiki/Configuring02x +" + +pkg_setup() { + enewgroup murmur + enewuser murmur "" "" "" murmur +} + +src_configure() { + econf --with-ssl=openssl +} + +src_install() { + local confdir + + emake DESTDIR="${D}" install + + newinitd "${FILESDIR}"/umurmurd.initd umurmurd + newconfd "${FILESDIR}"/umurmurd.confd umurmurd + systemd_dounit "${FILESDIR}"/umurmurd.service + + dodoc AUTHORS ChangeLog + newdoc README.md README + + confdir="/etc/umurmur" + insinto "${confdir}" + doins "${FILESDIR}"/umurmur.conf + + # Some permissions are adjusted as the config may contain a server + # password, and /etc/umurmur will typically contain the cert and the + # key used to sign it, which are read after priveleges are dropped. + fperms 0750 "${confdir}" + fowners -R root:murmur "${confdir}" + fperms 0640 "${confdir}"/umurmur.conf + + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +} |