diff options
author | randomdan <randomdan@localhost> | 2010-02-22 22:44:25 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2010-02-22 22:44:25 +0000 |
commit | d0e2e35d359006dfa7bddd7771f4f4fca8e6face (patch) | |
tree | 2f65bf3609d678b3459d81671cdb59d0ee50e767 /net-misc | |
parent | SVN mediatomb (diff) | |
download | portage-d0e2e35d359006dfa7bddd7771f4f4fca8e6face.tar.bz2 portage-d0e2e35d359006dfa7bddd7771f4f4fca8e6face.tar.xz portage-d0e2e35d359006dfa7bddd7771f4f4fca8e6face.zip |
SVN mediatomb
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/mediatomb/Manifest | 2 | ||||
-rw-r--r-- | net-misc/mediatomb/mediatomb-0.11.9999.ebuild | 140 |
2 files changed, 141 insertions, 1 deletions
diff --git a/net-misc/mediatomb/Manifest b/net-misc/mediatomb/Manifest index cc7b960..ec1b962 100644 --- a/net-misc/mediatomb/Manifest +++ b/net-misc/mediatomb/Manifest @@ -1 +1 @@ -EBUILD mediatomb-0.11.9999.ebuild 3551 RMD160 ee83a667f0090334d2aa6c80cf272d2ddba5ba3c SHA1 6bc1c4340c41fb6472237243fcf3c9f5e037515b SHA256 2114fe15599c35acf0d610217c9049ec3354cac066341751182d486566b1375c +EBUILD mediatomb-0.11.9999.ebuild 3655 RMD160 7cce513c49bdde4ad15cd50b8302afe747bc497f SHA1 f714f16d20559041f1a99c4c0915f28d8a0f74ea SHA256 3713929887cd8d96bf653c2d5438de1a67d02bc2c6569d88d0a9b2b76efdab47 diff --git a/net-misc/mediatomb/mediatomb-0.11.9999.ebuild b/net-misc/mediatomb/mediatomb-0.11.9999.ebuild new file mode 100644 index 0000000..3f08723 --- /dev/null +++ b/net-misc/mediatomb/mediatomb-0.11.9999.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvs/lportage/net-misc/mediatomb/mediatomb-0.11.9999.ebuild,v 1.1 2010-02-22 22:43:20 randomdan Exp $ + +EAPI=2 + +WANT_AUTOCONF=latest +WANT_AUTOMAKE=latest + +inherit eutils linux-mod autotools subversion + +ESVN_REPO_URI="http://svn.mediatomb.cc/svnroot/mediatomb/trunk/mediatomb" + +DESCRIPTION="MediaTomb is an open source UPnP MediaServer" +HOMEPAGE="http://www.mediatomb.cc/" +#SRC_URI="mirror://sourceforge/mediatomb/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug +exif +ffmpeg inotify +javascript lastfm +mp4 mysql +taglib thumbnail" + +DEPEND=" + mysql? ( virtual/mysql ) + !mysql? ( >=dev-db/sqlite-3 ) + javascript? ( dev-lang/spidermonkey ) + dev-libs/expat + taglib? ( media-libs/taglib ) + !taglib? ( media-libs/id3lib ) + lastfm? ( >=media-libs/lastfmlib-0.4 ) + exif? ( media-libs/libexif ) + mp4? ( media-libs/libmp4v2 ) + ffmpeg? ( media-video/ffmpeg ) + thumbnail? ( media-video/ffmpegthumbnailer[jpeg] ) + net-misc/curl + sys-apps/file + sys-libs/zlib + virtual/libiconv" + +RDEPEND="${DEPEND}" + +pkg_setup() { + if use inotify; then + ebegin "Checking for Inotify support" + linux-mod_pkg_setup + + if ! linux_chkconfig_present INOTIFY_USER; then + eerror "Please enable Inotify support in your kernel:" + eerror + eerror " File systems --->" + eerror " [*] Inotify support for userspace" + eerror + die "Inotify support not detetced!" + fi + fi + + enewgroup mediatomb + enewuser mediatomb -1 -1 /dev/null mediatomb +} + +src_unpack() { + subversion_src_unpack + cd "${S}" + eautoreconf +} + +src_configure() { + if use thumbnail; then + myconf="${myconf} --enable-ffmpegthumbnailer --enable-ffmpeg" + else + myconf="${myconf} $(use_enable thumbnail ffmpegthumbnailer) $(use_enable ffmpeg)" + fi + + econf \ + --prefix=/usr \ + $(use_enable debug tombdebug) \ + $(use_enable exif libexif) \ + $(use_enable inotify) \ + $(use_enable javascript libjs) \ + $(use_enable lastfm lastfmlib) \ + $(use_enable mp4 libmp4v2) \ + $(use_enable mysql) $(use_enable !mysql sqlite3) \ + $(use_enable taglib) $(use_enable !taglib id3lib) \ + --enable-atrailers \ + --enable-curl \ + --enable-external-transcoding \ + --enable-libmagic \ + --enable-protocolinfo-extension \ + --enable-weborama \ + --enable-youtube \ + --enable-zlib \ + ${myconf} \ + || die "Configure failed!" +} + +src_compile() { + emake || die "Make failed!" +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed!" + + dodoc AUTHORS ChangeLog NEWS README TODO + + sed -e "s:#MYSQL#:$(use mysql && ! built_with_use dev-db/mysql minimal && echo "mysql"):" \ + "${FILESDIR}/mediatomb.initd" \ + > "${T}/mediatomb.initd" + newinitd "${T}/mediatomb.initd" mediatomb + newconfd "${FILESDIR}/mediatomb.confd" mediatomb + + insinto /etc/mediatomb + newins "${FILESDIR}/${P}.config" config.xml + fperms 0600 /etc/mediatomb/config.xml + fowners mediatomb:mediatomb /etc/mediatomb/config.xml + + keepdir /var/lib/mediatomb + fowners mediatomb:mediatomb /var/lib/mediatomb +} + +pkg_postinst() { + if use mysql; then + elog "MediaTomb has been built with MySQL support and needs" + elog "to be configured before being started." + elog "For more information, please consult the MediaTomb" + elog "documentation: http://mediatomb.cc/pages/documentation" + elog + fi + + elog "To configure MediaTomb edit:" + elog "/etc/mediatomb/config.xml" + elog + elog "To start MediaTomb:" + elog "/etc/init.d/mediatomb start" + elog + elog "To start MediaTomb at boot:" + elog "rc-update add mediatomb default" + elog + elog "The MediaTomb web interface can be reached at:" + elog "http://localhost:49152/" +} |