diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2007-04-05 10:01:23 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2007-04-05 10:01:23 +0000 |
commit | aa8f499603dfbb08b42037ca40b644aee7294e47 (patch) | |
tree | 7ddb4fd542f851b1ef07beb93142c5c9b7607d7a /media-video/feng-git/feng-git-0.1.ebuild | |
parent | Moving to git (diff) | |
download | lu_zero-aa8f499603dfbb08b42037ca40b644aee7294e47.tar.gz lu_zero-aa8f499603dfbb08b42037ca40b644aee7294e47.tar.bz2 lu_zero-aa8f499603dfbb08b42037ca40b644aee7294e47.zip |
libnemesi for you
svn path=/; revision=88
Diffstat (limited to 'media-video/feng-git/feng-git-0.1.ebuild')
-rw-r--r-- | media-video/feng-git/feng-git-0.1.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/media-video/feng-git/feng-git-0.1.ebuild b/media-video/feng-git/feng-git-0.1.ebuild new file mode 100644 index 0000000..4375b54 --- /dev/null +++ b/media-video/feng-git/feng-git-0.1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit git eutils + +EGIT_REPO_URI="git://live.polito.it/var/git/feng.git" +EGIT_BOOTSTRAP="NOCONFIGURE=1 ./autogen.sh" + +DESCRIPTION="Standard rtsp streaming server" +HOMEPAGE="http://streaming.polito.it/server" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86 ~ppc64" +IUSE="" + +RDEPEND="media-video/ffmpeg + >=dev-libs/glib-2" +DEPEND="${RDEPEND}" + +pkg_setup() { + enewgroup feng + enewuser feng -1 -1 /var/feng feng +} + +pkg_config() { + einfo "Installing default avroot to ${ROOT}/var/feng/avroot" + mkdir -p "${ROOT}"/var/feng/avroot + cp -R "${ROOT}"/usr/share/doc/${PF}/avroot/* "${ROOT}"/var/feng/avroot + chown -R feng:0 "${ROOT}"/var/feng/avroot +} + +pkg_postinst() { + if [[ -e "${ROOT}/var/feng/avroot" ]] ; then + einfo "The default avroot has not been installed into" + einfo "${ROOT}/var/feng/avroot because the directory already exists" + einfo "and we do not want to overwrite any files you have put there." + einfo + einfo "If you would like to install the latest avroot, please run" + einfo "emerge --config =${PF}" + else + einfo "Installing default avroot to ${ROOT}/var/feng/avroot" + mkdir -p "${ROOT}"/var/feng/avroot + cp -R "${ROOT}"/usr/share/doc/${PF}/avroot/* "${ROOT}"/var/feng/avroot + chown -R feng:0 "${ROOT}"/var/feng/avroot + fi +} + +src_compile() { + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --libdir=/usr/$(get_libdir) \ + --infodir=/usr/share/info \ + --datadir=/usr/share \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-fhs23 || die "econf failed" + emake || die "emake failed" +} + +src_install() { + make DESTDIR=${D} install || die "make install failed" + dodoc README + mv ${D}/var/feng/avroot ${D}/usr/share/doc/${PF}/ + dodoc ChangeLog + newinitd ${FILESDIR}/feng.rc feng + newconfd ${FILESDIR}/feng.confd feng +} |