diff options
author | Pacho Ramos <pacho@gentoo.org> | 2013-09-18 21:33:19 +0000 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2013-09-18 21:33:19 +0000 |
commit | 364723df18607bf26ff8cc67e1339970e34a29d5 (patch) | |
tree | 164ac0323baa6ac9171a56b632048f055c268694 /media-sound/murmur | |
parent | Version bump. (diff) | |
download | gentoo-2-364723df18607bf26ff8cc67e1339970e34a29d5.tar.gz gentoo-2-364723df18607bf26ff8cc67e1339970e34a29d5.tar.bz2 gentoo-2-364723df18607bf26ff8cc67e1339970e34a29d5.zip |
Add unit file (#484936 by Andrius Štikonas)
(Portage version: 2.2.4/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'media-sound/murmur')
-rw-r--r-- | media-sound/murmur/ChangeLog | 8 | ||||
-rw-r--r-- | media-sound/murmur/files/murmur.service | 10 | ||||
-rw-r--r-- | media-sound/murmur/murmur-1.2.4-r1.ebuild | 123 |
3 files changed, 140 insertions, 1 deletions
diff --git a/media-sound/murmur/ChangeLog b/media-sound/murmur/ChangeLog index a00c2c4867eb..b121a04de8de 100644 --- a/media-sound/murmur/ChangeLog +++ b/media-sound/murmur/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/murmur # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/murmur/ChangeLog,v 1.43 2013/07/13 06:51:30 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-sound/murmur/ChangeLog,v 1.44 2013/09/18 21:33:19 pacho Exp $ + +*murmur-1.2.4-r1 (18 Sep 2013) + + 18 Sep 2013; Pacho Ramos <pacho@gentoo.org> +files/murmur.service, + +murmur-1.2.4-r1.ebuild: + Add unit file (#484936 by Andrius Štikonas) 13 Jul 2013; Agostino Sarubbo <ago@gentoo.org> murmur-1.2.4.ebuild: Stable for x86, wrt bug #476266 diff --git a/media-sound/murmur/files/murmur.service b/media-sound/murmur/files/murmur.service new file mode 100644 index 000000000000..cd6606064028 --- /dev/null +++ b/media-sound/murmur/files/murmur.service @@ -0,0 +1,10 @@ +[Unit] +Description=Mumble Daemon +After=network.target + +[Service] +ExecStart=/usr/bin/murmurd -ini /etc/murmur/murmur.ini -fg +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/media-sound/murmur/murmur-1.2.4-r1.ebuild b/media-sound/murmur/murmur-1.2.4-r1.ebuild new file mode 100644 index 000000000000..af159e0ba6c7 --- /dev/null +++ b/media-sound/murmur/murmur-1.2.4-r1.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/murmur/murmur-1.2.4-r1.ebuild,v 1.1 2013/09/18 21:33:19 pacho Exp $ + +EAPI="5" + +QT_MINIMAL="4.6" + +inherit eutils qt4-r2 systemd user + +MY_P="${PN/murmur/mumble}-${PV/_/~}" + +DESCRIPTION="Mumble is an open source, low-latency, high quality voice chat software" +HOMEPAGE="http://mumble.sourceforge.net/" +SRC_URI="http://mumble.info/snapshot/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~x86" +IUSE="+dbus debug +ice pch zeroconf" + +RDEPEND=">=dev-libs/openssl-1.0.0b + >=dev-libs/protobuf-2.2.0 + sys-apps/lsb-release + >=sys-libs/libcap-2.15 + dev-qt/qtcore:4[ssl] + || ( dev-qt/qtsql:4[sqlite] dev-qt/qtsql:4[mysql] ) + dev-qt/qtxmlpatterns:4 + dbus? ( dev-qt/qtdbus:4 ) + ice? ( dev-libs/Ice ) + zeroconf? ( net-dns/avahi[mdnsresponder-compat] )" + +DEPEND="${RDEPEND} + >=dev-libs/boost-1.41.0 + virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.2.4-ice-3.5.0-compat.patch +) + +pkg_setup() { + enewgroup murmur + enewuser murmur -1 -1 /var/lib/murmur murmur +} + +src_prepare() { + qt4-r2_src_prepare + + sed \ + -e 's:mumble-server:murmur:g' \ + -e 's:/var/run:/run:g' \ + -i "${S}"/scripts/murmur.{conf,ini.system} || die +} + +src_configure() { + local conf_add + + use dbus || conf_add="${conf_add} no-dbus" + use debug && conf_add="${conf_add} symbols debug" || conf_add="${conf_add} release" + use ice || conf_add="${conf_add} no-ice" + use pch || conf_add="${conf_add} no-pch" + use zeroconf || conf_add="${conf_add} no-bonjour" + + eqmake4 main.pro -recursive \ + CONFIG+="${conf_add} no-client" +} + +src_compile() { + # parallel make workaround, upstream bug #3190498 + emake -j1 +} + +src_install() { + dodoc README CHANGES + + docinto scripts + dodoc scripts/*.php scripts/*.pl + + local dir + if use debug; then + dir=debug + else + dir=release + fi + + dobin "${dir}"/murmurd + + insinto /etc/murmur/ + newins scripts/murmur.ini.system murmur.ini + + insinto /etc/logrotate.d/ + newins "${FILESDIR}"/murmur.logrotate murmur + + insinto /etc/dbus-1/system.d/ + doins scripts/murmur.conf + + insinto /usr/share/murmur/ + doins src/murmur/Murmur.ice + + newinitd "${FILESDIR}"/murmur.initd-r1 murmur + newconfd "${FILESDIR}"/murmur.confd murmur + systemd_dounit "${FILESDIR}"/${PN}.service + + keepdir /var/lib/murmur /var/log/murmur + fowners -R murmur /var/lib/murmur /var/log/murmur + fperms 750 /var/lib/murmur /var/log/murmur + + doman man/murmurd.1 +} + +pkg_postinst() { + echo + elog "Useful scripts are located in /usr/share/doc/${PF}/scripts." + elog "Please execute:" + elog "murmurd -ini /etc/murmur/murmur.ini -supw <pw>" + elog "chown murmur:murmur /var/lib/murmur/murmur.sqlite" + elog "to set the build-in 'SuperUser' password before starting murmur." + elog "Please restart dbus before starting murmur, or else dbus" + elog "registration will fail." + echo +} |