summaryrefslogtreecommitdiff
blob: 3f869134690c492176891abf5c50a357f187af72 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/flumotion/flumotion-0.1.6.ebuild,v 1.2 2005/05/10 15:25:28 zaheerm Exp $

inherit eutils

DESCRIPTION="Flumotion Streaming server"
HOMEPAGE="http://www.fluendo.com"
SRC_URI="http://www.flumotion.net/src/flumotion/${P}.tar.bz2"
LICENSE="GPL-2"

KEYWORDS="~x86 ~ppc ~amd64"
IUSE="v4l speex jpeg dv"
SLOT="0"

RDEPEND=">=x11-libs/gtk+-2.4
	>=dev-libs/glib-2.4
	>=gnome-base/libglade-2
	>=media-libs/gstreamer-0.8.9-r2
	>=media-libs/gst-plugins-0.8.8
	>=media-plugins/gst-plugins-gnomevfs-0.8.8
	v4l? ( >=media-plugins/gst-plugins-v4l-0.8.8 )
	>=media-plugins/gst-plugins-ogg-0.8.8
	>=media-plugins/gst-plugins-theora-0.8.8
	>=media-plugins/gst-plugins-vorbis-0.8.8
	>=media-plugins/gst-plugins-libpng-0.8.8
	speex? ( >=media-plugins/gst-plugins-speex-0.8.8 )
	dv? ( >=media-plugins/gst-plugins-dv-0.8.8
	      >=media-plugins/gst-plugins-raw1394-0.8.8 )
	>=dev-python/pygtk-2.4.0
	>=dev-python/gst-python-0.8.1
	>=dev-python/twisted-1.3.0
	dev-python/imaging
	"

DEPEND="${RDEPEND}
	dev-util/pkgconfig
	"

DOCS="AUTHORS COPYING ChangeLog INSTALL \
	  LICENCE.Flumotion LICENCE.GPL \
	  NEWS README TODO"

src_compile() {
	econf --localstatedir=/var || die

	emake || die

}

src_install() {
	einstall

	dodir /etc/flumotion
	dodir /etc/flumotion/managers
	dodir /etc/flumotion/managers/default
	dodir /etc/flumotion/managers/default/flows
	dodir /etc/flumotion/workers

	insinto /etc/flumotion/managers/default/flows
	cd ${S}/conf
	doins managers/default/flows/ogg-test-theora.xml
	insinto /etc/flumotion/managers/default
	doins managers/default/planet.xml
	insinto /etc/flumotion/workers
	doins workers/default.xml

	insinto /etc/flumotion
	doins default.pem
	exeinto /etc/init.d
	newexe ${FILESDIR}/flumotion-init flumotion

	keepdir /var/run/flumotion
	keepdir /var/log/flumotion
}

pkg_postinst() {
	if ! enewgroup flumotion || ! enewuser flumotion -1 /bin/false /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
}