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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Feb 20 19:10:16 2012 UTC (8 years, 9 months ago) by tgurr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Revbump adding patches for Qt 4.8 SSL compatibility. Fix bug #398791, thanks to Hans Nieser. Remove old.

(Portage version: 2.2.0_alpha86/cvs/Linux x86_64)

1 # Copyright 1999-2010 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.1.8.ebuild,v 1.5 2010/06/08 08:30:08 dev-zero Exp $
4
5 EAPI="2"
6
7 inherit eutils qt4
8
9 MY_PN="mumble"
10 MY_P=${MY_PN}-${PV}
11
12 DESCRIPTION="Voice chat software for gaming written in Qt4 (server)."
13 HOMEPAGE="http://mumble.sourceforge.net/"
14 SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.gz"
15
16 LICENSE="BSD"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="debug +ice pch"
20
21 RDEPEND="
22 >=sys-libs/libcap-2.15
23 x11-libs/qt-core:4[ssl]
24 x11-libs/qt-dbus:4
25 || ( x11-libs/qt-sql:4[sqlite] x11-libs/qt-sql:4[mysql] )
26 ice? ( dev-libs/Ice dev-libs/boost )
27 "
28
29 DEPEND="${RDEPEND}"
30
31 S="${WORKDIR}"/${MY_P}
32
33 pkg_setup() {
34 enewgroup murmur
35 enewuser murmur -1 -1 /var/lib/murmur murmur
36 }
37
38 src_prepare() {
39 sed -i \
40 -e 's:mumble-server:murmur:g' \
41 scripts/murmur.conf \
42 scripts/murmur.ini.system \
43 || die "sed failed."
44 }
45
46 src_configure() {
47 local conf_add
48 use debug && conf_add="${conf_add} symbols debug" || conf_add="${conf_add} release"
49 use ice || conf_add="${conf_add} no-ice"
50 use pch || conf_add="${conf_add} no-pch"
51
52 eqmake4 main.pro -recursive \
53 CONFIG+="${conf_add} no-client no-bundled-speex" \
54 || die "eqmake4 failed."
55 }
56
57 src_install() {
58 dodoc README CHANGES || die "Installing docs failed."
59
60 docinto scripts
61 dodoc scripts/*.php scripts/*.pl || die "Installing docs failed."
62
63 local dir
64 if use debug; then
65 dir=debug
66 else
67 dir=release
68 fi
69
70 dobin "${dir}"/murmurd || die "Installing murmurd binary failed."
71
72 insinto /etc/murmur/
73 newins scripts/murmur.ini.system murmur.ini || die "Installing murmur.ini configuration file failed."
74
75 insinto /etc/logrotate.d/
76 newins "${FILESDIR}"/murmur.logrotate murmur || die "Installing murmur logrotate file failed."
77
78 insinto /etc/dbus-1/system.d/
79 doins scripts/murmur.conf || die "Installing murmur.conf dbus configuration file failed."
80
81 newinitd "${FILESDIR}"/murmur.initd murmur || die "Installing murmur init.d file failed."
82 newconfd "${FILESDIR}"/murmur.confd murmur || die "Installing murmur conf.d file failed."
83
84 keepdir /var/lib/murmur /var/run/murmur /var/log/murmur
85 fowners -R murmur /var/lib/murmur /var/run/murmur /var/log/murmur || die "fowners failed."
86 fperms 750 /var/lib/murmur /var/run/murmur /var/log/murmur || die "fperms failed."
87
88 doman man/murmurd.1 || die "Installing murmur manpage failed."
89 }
90
91 pkg_postinst() {
92 echo
93 elog "Useful scripts are located in /usr/share/doc/${PF}/scripts."
94 elog "Please execute:"
95 elog "murmurd -ini /etc/murmur/murmur.ini -supw <pw>"
96 elog "chown murmur:murmur /var/lib/murmur/murmur.sqlite"
97 elog "to set the build-in 'SuperUser' password before starting murmur."
98 elog "Please restart dbus before starting murmur, or else dbus"
99 elog "registration will fail."
100 echo
101 }

  ViewVC Help
Powered by ViewVC 1.1.20