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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Nov 13 20:31:47 2009 UTC (11 years ago) by tgurr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump, also fixing bug #293075.
(Portage version: 2.2_rc49/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_pre20090911.ebuild,v 1.1 2009/09/13 12:22:30 tgurr Exp $
4
5 EAPI="2"
6
7 inherit eutils qt4
8
9 GIT_REV="402695"
10 MY_PN="${PN/murmur}mumble"
11 MY_P="mumble-${PV/_pre20090911}~200909111826-${GIT_REV}"
12
13 DESCRIPTION="Mumble is an open source, low-latency, high quality voice chat software."
14 HOMEPAGE="http://mumble.sourceforge.net/"
15 SRC_URI="http://mumble.info/snapshot/${MY_P}.tar.gz -> ${MY_PN}-${PV}.tar.gz"
16
17 LICENSE="BSD"
18 SLOT="0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE="+dbus debug +ice pch zeroconf"
21
22 RDEPEND="dev-libs/openssl
23 >=dev-libs/protobuf-2.2.0
24 >=sys-libs/libcap-2.15
25 x11-libs/qt-core:4[ssl]
26 || ( x11-libs/qt-sql:4[sqlite] x11-libs/qt-sql:4[mysql] )
27 x11-libs/qt-xmlpatterns:4
28 dbus? ( x11-libs/qt-dbus:4 )
29 ice? ( dev-cpp/Ice dev-libs/boost )
30 zeroconf? ( || ( net-dns/avahi[mdnsresponder-compat] net-misc/mDNSResponder ) )"
31
32 DEPEND="${RDEPEND}
33 dev-util/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_install() {
65 dodoc README CHANGES || die "Installing docs failed."
66
67 docinto scripts
68 dodoc scripts/*.php scripts/*.pl || die "Installing docs failed."
69
70 local dir
71 if use debug; then
72 dir=debug
73 else
74 dir=release
75 fi
76
77 dobin "${dir}"/murmurd || die "Installing murmurd binary failed."
78
79 insinto /etc/murmur/
80 newins scripts/murmur.ini.system murmur.ini || die "Installing murmur.ini configuration file failed."
81
82 insinto /etc/logrotate.d/
83 newins "${FILESDIR}"/murmur.logrotate murmur || die "Installing murmur logrotate file failed."
84
85 insinto /etc/dbus-1/system.d/
86 doins scripts/murmur.conf || die "Installing murmur.conf dbus configuration file failed."
87
88 newinitd "${FILESDIR}"/murmur.initd murmur || die "Installing murmur init.d file failed."
89 newconfd "${FILESDIR}"/murmur.confd murmur || die "Installing murmur conf.d file failed."
90
91 keepdir /var/lib/murmur /var/run/murmur /var/log/murmur
92 fowners -R murmur /var/lib/murmur /var/run/murmur /var/log/murmur || die "fowners failed."
93 fperms 750 /var/lib/murmur /var/run/murmur /var/log/murmur || die "fperms failed."
94
95 doman man/murmurd.1 || die "Installing murmur manpage failed."
96 }
97
98 pkg_postinst() {
99 echo
100 elog "Useful scripts are located in /usr/share/doc/${PF}/scripts."
101 elog "Please execute:"
102 elog "murmurd -ini /etc/murmur/murmur.ini -supw <pw>"
103 elog "chown murmur:murmur /var/lib/murmur/murmur.sqlite"
104 elog "to set the build-in 'SuperUser' password before starting murmur."
105 elog "Please restart dbus before starting murmur, or else dbus"
106 elog "registration will fail."
107 echo
108 }

  ViewVC Help
Powered by ViewVC 1.1.20