# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-video/flumotion/flumotion-0.2.1.ebuild,v 1.1 2006/05/03 18:30:59 zaheerm Exp $ inherit eutils gnome2 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 ~amd64" IUSE="v4l speex jpeg dv gstreamer08" SLOT="0" RDEPEND=">=x11-libs/gtk+-2.4 >=dev-libs/glib-2.4 >=gnome-base/libglade-2 gstreamer08? ( =media-libs/gstreamer-0.8* =media-libs/gst-plugins-0.8* =media-plugins/gst-plugins-gnomevfs-0.8* =media-plugins/gst-plugins-ogg-0.8* =media-plugins/gst-plugins-theora-0.8* =media-plugins/gst-plugins-vorbis-0.8* =media-plugins/gst-plugins-libpng-0.8* =dev-python/gst-python-0.8* v4l? ( =media-plugins/gst-plugins-v4l-0.8* ) speex? ( =media-plugins/gst-plugins-speex-0.8* ) dv? ( =media-plugins/gst-plugins-dv-0.8* ) ) !gstreamer08? ( >=media-libs/gstreamer-0.10.1 =media-libs/gst-plugins-base-0.10* =media-libs/gst-plugins-good-0.10* =media-plugins/gst-plugins-gnomevfs-0.10* =media-plugins/gst-plugins-ogg-0.10* =media-plugins/gst-plugins-theora-0.10* =media-plugins/gst-plugins-vorbis-0.10* =media-plugins/gst-plugins-libpng-0.10* =dev-python/gst-python-0.10* v4l? ( =media-plugins/gst-plugins-v4l-0.10* ) speex? ( =media-plugins/gst-plugins-speex-0.10* ) dv? ( =media-plugins/gst-plugins-dv-0.10* =media-plugins/gst-plugins-raw1394-0.10* ) ) >=dev-python/pygtk-2.6.3 || ( ( >=dev-python/twisted-2.0 >=dev-python/twisted-web-0.5.0-r1 >=dev-python/twisted-names-0.2.0 ) =dev-python/twisted-1.3* ) dev-python/imaging " DEPEND="${RDEPEND} dev-util/pkgconfig " DOCS="AUTHORS COPYING ChangeLog INSTALL \ LICENCE.Flumotion LICENCE.GPL \ NEWS README TODO" src_compile() { mkdir -p "${T}/home" export HOME="${T}/home" export GST_REGISTRY=${T}/home/registry.cache.xml addpredict /root/.gconfd addpredict /root/.gconf addpredict /var/lib/cache/gstreamer-0.8 econf --disable-install-schemas --localstatedir=/var || die emake || die # fix ${exec_prefix} not being expanded cd ${S}/bin cp flumotion-manager flumotion-manager.orig sed -e 's:${exec_prefix}:/usr':g flumotion-manager.orig \ > flumotion-manager cp flumotion-worker flumotion-worker.orig sed -e 's:${exec_prefix}:/usr':g flumotion-worker.orig \ > flumotion-worker cp flumotion-admin flumotion-admin.orig sed -e 's:${exec_prefix}:/usr':g flumotion-admin.orig \ > flumotion-admin } 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 cd ${S}/conf 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-0.2.0 flumotion keepdir /var/run/flumotion keepdir /var/log/flumotion } 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 }