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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Fri Jan 30 01:16:39 2009 UTC (11 years, 10 months ago) by tgurr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump, removing old.
(Portage version: 2.2_rc23/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20