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

Contents of /media-sound/murmur/murmur-1.2.0_beta1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Dec 8 00:49:05 2009 UTC (9 years, 11 months ago) by tgurr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, fixing zeroconf bug #287925 thanks to Dennis Schridde. Also fixing build issue wrt bug #295602, thanks to Viktor S.
(Portage version: 2.2_rc56/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.0_beta1.ebuild,v 1.1 2009/11/13 20:31:47 tgurr Exp $
4
5 EAPI="2"
6
7 inherit eutils qt4
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="http://mumble.info/snapshot/${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
21 >=dev-libs/protobuf-2.2.0
22 >=sys-libs/libcap-2.15
23 x11-libs/qt-core:4[ssl]
24 || ( x11-libs/qt-sql:4[sqlite] x11-libs/qt-sql:4[mysql] )
25 x11-libs/qt-xmlpatterns:4
26 dbus? ( x11-libs/qt-dbus:4 )
27 ice? ( dev-cpp/Ice )
28 zeroconf? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) )"
29
30 DEPEND="${RDEPEND}
31 dev-util/pkgconfig
32 ice? ( dev-libs/boost )"
33
34 S="${WORKDIR}/${MY_P}"
35
36 pkg_setup() {
37 enewgroup murmur
38 enewuser murmur -1 -1 /var/lib/murmur murmur
39 }
40
41 src_prepare() {
42 sed -i \
43 -e 's:mumble-server:murmur:g' \
44 "${S}"/scripts/murmur.conf \
45 "${S}"/scripts/murmur.ini.system \
46 || die "sed failed."
47 }
48
49 src_configure() {
50 local conf_add
51 use dbus || conf_add="${conf_add} no-dbus"
52 use debug && conf_add="${conf_add} symbols debug" || conf_add="${conf_add} release"
53 use ice || conf_add="${conf_add} no-ice"
54 use pch || conf_add="${conf_add} no-pch"
55 use zeroconf || conf_add="${conf_add} no-bonjour"
56
57 eqmake4 main.pro -recursive \
58 CONFIG+="${conf_add} \
59 no-client" \
60 || die "eqmake4 failed."
61 }
62
63 src_install() {
64 dodoc README CHANGES || die "Installing docs failed."
65
66 docinto scripts
67 dodoc scripts/*.php scripts/*.pl || die "Installing docs failed."
68
69 local dir
70 if use debug; then
71 dir=debug
72 else
73 dir=release
74 fi
75
76 dobin "${dir}"/murmurd || die "Installing murmurd binary failed."
77
78 insinto /etc/murmur/
79 newins scripts/murmur.ini.system murmur.ini || die "Installing murmur.ini configuration file failed."
80
81 insinto /etc/logrotate.d/
82 newins "${FILESDIR}"/murmur.logrotate murmur || die "Installing murmur logrotate file failed."
83
84 insinto /etc/dbus-1/system.d/
85 doins scripts/murmur.conf || die "Installing murmur.conf dbus configuration file failed."
86
87 newinitd "${FILESDIR}"/murmur.initd murmur || die "Installing murmur init.d file failed."
88 newconfd "${FILESDIR}"/murmur.confd murmur || die "Installing murmur conf.d file failed."
89
90 keepdir /var/lib/murmur /var/run/murmur /var/log/murmur
91 fowners -R murmur /var/lib/murmur /var/run/murmur /var/log/murmur || die "fowners failed."
92 fperms 750 /var/lib/murmur /var/run/murmur /var/log/murmur || die "fperms failed."
93
94 doman man/murmurd.1 || die "Installing murmur manpage failed."
95 }
96
97 pkg_postinst() {
98 echo
99 elog "Useful scripts are located in /usr/share/doc/${PF}/scripts."
100 elog "Please execute:"
101 elog "murmurd -ini /etc/murmur/murmur.ini -supw <pw>"
102 elog "chown murmur:murmur /var/lib/murmur/murmur.sqlite"
103 elog "to set the build-in 'SuperUser' password before starting murmur."
104 elog "Please restart dbus before starting murmur, or else dbus"
105 elog "registration will fail."
106 echo
107 }

  ViewVC Help
Powered by ViewVC 1.1.20