/[gentoo-x86]/media-sound/murmur/murmur-1.2.3.ebuild
Gentoo

Contents of /media-sound/murmur/murmur-1.2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Nov 16 00:51:01 2012 UTC (8 years ago) by tgurr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Actually remove the old.

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/murmur/murmur-1.2.3.ebuild,v 1.4 2012/06/09 23:13:11 zmedico Exp $
4
5 EAPI="2"
6
7 inherit eutils qt4-r2 user
8
9 MY_P="${PN/murmur/mumble}-${PV/_/~}"
10
11 DESCRIPTION="Mumble is an open source, low-latency, high quality voice chat software"
12 HOMEPAGE="http://mumble.sourceforge.net/"
13 SRC_URI="mirror://sourceforge/mumble/${MY_P}.tar.gz"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="amd64 x86"
18 IUSE="+dbus debug +ice pch zeroconf"
19
20 RDEPEND=">=dev-libs/openssl-1.0.0b
21 >=dev-libs/protobuf-2.2.0
22 sys-apps/lsb-release
23 >=sys-libs/libcap-2.15
24 x11-libs/qt-core:4[ssl]
25 || ( x11-libs/qt-sql:4[sqlite] x11-libs/qt-sql:4[mysql] )
26 x11-libs/qt-xmlpatterns:4
27 dbus? ( x11-libs/qt-dbus:4 )
28 ice? ( dev-libs/Ice )
29 zeroconf? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) )"
30
31 DEPEND="${RDEPEND}
32 >=dev-libs/boost-1.41.0
33 virtual/pkgconfig"
34
35 S="${WORKDIR}/${MY_P}"
36
37 pkg_setup() {
38 enewgroup murmur
39 enewuser murmur -1 -1 /var/lib/murmur murmur
40 }
41
42 src_prepare() {
43 sed -i \
44 -e 's:mumble-server:murmur:g' \
45 "${S}"/scripts/murmur.conf \
46 "${S}"/scripts/murmur.ini.system \
47 || die "sed failed."
48 }
49
50 src_configure() {
51 local conf_add
52 use dbus || conf_add="${conf_add} no-dbus"
53 use debug && conf_add="${conf_add} symbols debug" || conf_add="${conf_add} release"
54 use ice || conf_add="${conf_add} no-ice"
55 use pch || conf_add="${conf_add} no-pch"
56 use zeroconf || conf_add="${conf_add} no-bonjour"
57
58 eqmake4 main.pro -recursive \
59 CONFIG+="${conf_add} \
60 no-client" \
61 || die "eqmake4 failed."
62 }
63
64 src_compile() {
65 # parallel make workaround, upstream bug #3190498
66 emake -j1 || die "emake failed."
67 }
68
69 src_install() {
70 dodoc README CHANGES || die "Installing docs failed."
71
72 docinto scripts
73 dodoc scripts/*.php scripts/*.pl || die "Installing docs failed."
74
75 local dir
76 if use debug; then
77 dir=debug
78 else
79 dir=release
80 fi
81
82 dobin "${dir}"/murmurd || die "Installing murmurd binary failed."
83
84 insinto /etc/murmur/
85 newins scripts/murmur.ini.system murmur.ini || die "Installing murmur.ini configuration file failed."
86
87 insinto /etc/logrotate.d/
88 newins "${FILESDIR}"/murmur.logrotate murmur || die "Installing murmur logrotate file failed."
89
90 insinto /etc/dbus-1/system.d/
91 doins scripts/murmur.conf || die "Installing murmur.conf dbus configuration file failed."
92
93 newinitd "${FILESDIR}"/murmur.initd murmur || die "Installing murmur init.d file failed."
94 newconfd "${FILESDIR}"/murmur.confd murmur || die "Installing murmur conf.d file failed."
95
96 keepdir /var/lib/murmur /var/run/murmur /var/log/murmur
97 fowners -R murmur /var/lib/murmur /var/run/murmur /var/log/murmur || die "fowners failed."
98 fperms 750 /var/lib/murmur /var/run/murmur /var/log/murmur || die "fperms failed."
99
100 doman man/murmurd.1 || die "Installing murmur manpage failed."
101 }
102
103 pkg_postinst() {
104 echo
105 elog "Useful scripts are located in /usr/share/doc/${PF}/scripts."
106 elog "Please execute:"
107 elog "murmurd -ini /etc/murmur/murmur.ini -supw <pw>"
108 elog "chown murmur:murmur /var/lib/murmur/murmur.sqlite"
109 elog "to set the build-in 'SuperUser' password before starting murmur."
110 elog "Please restart dbus before starting murmur, or else dbus"
111 elog "registration will fail."
112 echo
113 }

  ViewVC Help
Powered by ViewVC 1.1.20