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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Dec 31 09:52:43 2012 UTC (7 years, 10 months ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Added rewritten init script so running murmurd won't be seen as crashed by openrc anymore. Removed pidfile variable from conf.d file

(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 0x981CA6FC)

1 # Copyright 1999-2012 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.4_beta1.ebuild,v 1.1 2012/11/16 00:49:08 tgurr Exp $
4
5 EAPI="4"
6
7 QT_MINIMAL="4.6"
8
9 inherit eutils qt4-r2 user
10
11 MY_P="${PN/murmur/mumble}-${PV/_/~}"
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"
16
17 LICENSE="BSD"
18 SLOT="0"
19 KEYWORDS="~amd64 ~ia64 ~x86"
20 IUSE="+dbus debug +ice pch zeroconf"
21
22 RDEPEND=">=dev-libs/openssl-1.0.0b
23 >=dev-libs/protobuf-2.2.0
24 sys-apps/lsb-release
25 >=sys-libs/libcap-2.15
26 x11-libs/qt-core:4[ssl]
27 || ( x11-libs/qt-sql:4[sqlite] x11-libs/qt-sql:4[mysql] )
28 x11-libs/qt-xmlpatterns:4
29 dbus? ( x11-libs/qt-dbus:4 )
30 ice? ( dev-libs/Ice )
31 zeroconf? ( net-dns/avahi[mdnsresponder-compat] )"
32
33 DEPEND="${RDEPEND}
34 >=dev-libs/boost-1.41.0
35 virtual/pkgconfig"
36
37 S="${WORKDIR}/${MY_P}"
38
39 pkg_setup() {
40 enewgroup murmur
41 enewuser murmur -1 -1 /var/lib/murmur murmur
42 }
43
44 src_prepare() {
45 qt4-r2_src_prepare
46
47 sed -i -e 's:mumble-server:murmur:g' \
48 "${S}"/scripts/murmur.{conf,ini.system} || die
49 }
50
51 src_configure() {
52 local conf_add
53
54 use dbus || conf_add="${conf_add} no-dbus"
55 use debug && conf_add="${conf_add} symbols debug" || conf_add="${conf_add} release"
56 use ice || conf_add="${conf_add} no-ice"
57 use pch || conf_add="${conf_add} no-pch"
58 use zeroconf || conf_add="${conf_add} no-bonjour"
59
60 eqmake4 main.pro -recursive \
61 CONFIG+="${conf_add} no-client"
62 }
63
64 src_compile() {
65 # parallel make workaround, upstream bug #3190498
66 emake -j1
67 }
68
69 src_install() {
70 dodoc README CHANGES
71
72 docinto scripts
73 dodoc scripts/*.php scripts/*.pl
74
75 local dir
76 if use debug; then
77 dir=debug
78 else
79 dir=release
80 fi
81
82 dobin "${dir}"/murmurd
83
84 insinto /etc/murmur/
85 newins scripts/murmur.ini.system murmur.ini
86
87 insinto /etc/logrotate.d/
88 newins "${FILESDIR}"/murmur.logrotate murmur
89
90 insinto /etc/dbus-1/system.d/
91 doins scripts/murmur.conf
92
93 insinto /usr/share/murmur/
94 doins src/murmur/Murmur.ice
95
96 newinitd "${FILESDIR}"/murmur.initd murmur
97 newconfd "${FILESDIR}"/murmur.confd murmur
98
99 keepdir /var/lib/murmur /var/run/murmur /var/log/murmur
100 fowners -R murmur /var/lib/murmur /var/run/murmur /var/log/murmur
101 fperms 750 /var/lib/murmur /var/run/murmur /var/log/murmur
102
103 doman man/murmurd.1
104 }
105
106 pkg_postinst() {
107 echo
108 elog "Useful scripts are located in /usr/share/doc/${PF}/scripts."
109 elog "Please execute:"
110 elog "murmurd -ini /etc/murmur/murmur.ini -supw <pw>"
111 elog "chown murmur:murmur /var/lib/murmur/murmur.sqlite"
112 elog "to set the build-in 'SuperUser' password before starting murmur."
113 elog "Please restart dbus before starting murmur, or else dbus"
114 elog "registration will fail."
115 echo
116 }

  ViewVC Help
Powered by ViewVC 1.1.20