blob: 7fb1090dc5e78ded76c91e201cb4816ac7ecb427 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/flumotion/flumotion-0.8.1.ebuild,v 1.3 2011/03/30 20:11:58 ssuominen Exp $
EAPI=3
PYTHON_DEPEND="2:2.6"
inherit eutils flag-o-matic multilib python toolchain-funcs virtualx # AC_CHECK_PROG for Xvfb
DESCRIPTION="Flumotion Streaming server"
HOMEPAGE="http://www.flumotion.net/"
SRC_URI="http://www.flumotion.net/src/${PN}/${P}.tar.bz2"
LICENSE="GPL-2" # LICENSE.Flumotion
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
RDEPEND="" # Where is this documented?
DEPEND="${RDEPEND}
sys-devel/gettext
doc? ( dev-python/epydoc )
test? ( dev-python/icalendar
dev-python/pychecker
dev-python/twisted-conch )"
src_prepare() {
rm -f py-compile
ln -s $(type -P true) py-compile
}
src_configure() {
append-cflags -fno-strict-aliasing
econf \
--localstatedir=/var \
$(use_enable doc docs)
}
src_compile() {
emake -j1 fdpass_so_LINK="$(tc-getCC) ${LDFLAGS} -shared -o fdpass.so" || die
}
src_test() {
Xemake -j1 check || die
}
src_install() {
emake -j1 DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog NEWS README RELEASE TODO
keepdir /var/log/flumotion
keepdir /var/run/flumotion
newinitd "${FILESDIR}"/flumotion-init-0.2.0 flumotion
# /usr/share/hal/fdi/policy/20thirdparty/91-flumotion-device-policy.fdi
rm -rf "${D}"/usr/share/hal
dodir /etc/flumotion
dodir /etc/flumotion/managers
dodir /etc/flumotion/managers/default
dodir /etc/flumotion/managers/default/flows
dodir /etc/flumotion/workers
pushd conf
insinto /etc/flumotion/managers/default
doins managers/default/planet.xml || die
insinto /etc/flumotion/workers
doins workers/default.xml || die
insinto /etc/flumotion
doins default.pem || die
popd
}
pkg_postinst() {
if ! enewgroup flumotion || ! enewuser flumotion -1 -1 /usr/share/flumotion flumotion,audio,video,sys; then
die "Unable to add flumotion user and flumotion group."
fi
for dir in /usr/share/flumotion /var/log/flumotion /var/run/flumotion; do
chown -R flumotion:flumotion "${dir}"
chmod -R 755 "${dir}"
done
python_mod_optimize /usr/$(get_libdir)/flumotion/python
}
pkg_postrm() {
python_mod_cleanup /usr/$(get_libdir)/flumotion/python
}
|