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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Mar 25 06:03:03 2009 UTC (11 years, 8 months ago) by tgurr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, also fixing bug #258181. Remove old.
(Portage version: 2.2_rc27/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.1.7.ebuild,v 1.2 2009/01/30 01:23:09 tgurr 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 logrotate pch"
20
21 RDEPEND="
22 x11-libs/qt-core:4[ssl]
23 x11-libs/qt-dbus:4
24 || ( x11-libs/qt-sql:4[sqlite] x11-libs/qt-sql:4[mysql] )
25 ice? ( dev-cpp/Ice dev-libs/boost )
26 logrotate? ( app-admin/logrotate )
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 if use logrotate; then
76 insinto /etc/logrotate.d/
77 newins "${FILESDIR}"/murmur.logrotate murmur || die "Installing murmur logrotate file failed."
78 fi
79
80 insinto /etc/dbus-1/system.d/
81 doins scripts/murmur.conf || die "Installing murmur.conf dbus configuration file failed."
82
83 newinitd "${FILESDIR}"/murmur.initd murmur || die "Installing murmur init.d file failed."
84 newconfd "${FILESDIR}"/murmur.confd murmur || die "Installing murmur conf.d file failed."
85
86 keepdir /var/lib/murmur /var/run/murmur /var/log/murmur
87 fowners -R murmur /var/lib/murmur /var/run/murmur /var/log/murmur || die "fowners failed."
88 fperms 750 /var/lib/murmur /var/run/murmur /var/log/murmur || die "fperms failed."
89
90 doman man/murmurd.1 || die "Installing murmur manpage failed."
91 }
92
93 pkg_postinst() {
94 echo
95 elog "Useful scripts are located in /usr/share/doc/${PF}/scripts."
96 elog "Please execute:"
97 elog "murmurd -ini /etc/murmur/murmur.ini -supw <pw>"
98 elog "chown murmur:murmur /var/lib/murmur/murmur.sqlite"
99 elog "to set the inbuild 'SuperUser' password before starting murmur."
100 elog "Please restart dbus before starting murmur,"
101 elog "or dbus registration will fail."
102 echo
103 }

  ViewVC Help
Powered by ViewVC 1.1.20