diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2010-08-19 01:59:51 +0000 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2010-08-19 01:59:51 +0000 |
commit | 1f3f577893e2cb06440bfc367f35277f4bc70a76 (patch) | |
tree | 6ab80ea9eea6c61e635fa59ec93040e983c13ed3 /net-misc/mediatomb | |
parent | Version bump to 2.3.1 and 2.4.0_beta1 (diff) | |
download | gentoo-2-1f3f577893e2cb06440bfc367f35277f4bc70a76.tar.gz gentoo-2-1f3f577893e2cb06440bfc367f35277f4bc70a76.tar.bz2 gentoo-2-1f3f577893e2cb06440bfc367f35277f4bc70a76.zip |
Add helper comment to confd file for bug 274627, comment #4 by Andrew Frink. Old cruft cleanup
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/mediatomb')
-rw-r--r-- | net-misc/mediatomb/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/mediatomb/files/mediatomb-0.12.0.confd | 1 | ||||
-rw-r--r-- | net-misc/mediatomb/files/mediatomb.confd | 32 | ||||
-rw-r--r-- | net-misc/mediatomb/files/mediatomb.initd | 22 | ||||
-rw-r--r-- | net-misc/mediatomb/mediatomb-0.11.0.ebuild | 122 | ||||
-rw-r--r-- | net-misc/mediatomb/mediatomb-0.12.0-r1.ebuild | 117 |
6 files changed, 8 insertions, 294 deletions
diff --git a/net-misc/mediatomb/ChangeLog b/net-misc/mediatomb/ChangeLog index bd1341cfa539..dd7a7da6581a 100644 --- a/net-misc/mediatomb/ChangeLog +++ b/net-misc/mediatomb/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/mediatomb # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/ChangeLog,v 1.17 2010/04/18 12:29:11 maekke Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/ChangeLog,v 1.18 2010/08/19 01:59:51 darkside Exp $ + + 19 Aug 2010; Jeremy Olexa <darkside@gentoo.org> -mediatomb-0.11.0.ebuild, + -mediatomb-0.12.0-r1.ebuild, files/mediatomb-0.12.0.confd, + -files/mediatomb.confd, -files/mediatomb.initd: + Add helper comment to confd file for bug 274627, comment #4 by Andrew + Frink. Old cruft cleanup 18 Apr 2010; Markus Meier <maekke@gentoo.org> mediatomb-0.12.1.ebuild: amd64 stable, bug #284886 diff --git a/net-misc/mediatomb/files/mediatomb-0.12.0.confd b/net-misc/mediatomb/files/mediatomb-0.12.0.confd index f531ec70dc82..7f5c00830251 100644 --- a/net-misc/mediatomb/files/mediatomb-0.12.0.confd +++ b/net-misc/mediatomb/files/mediatomb-0.12.0.confd @@ -24,4 +24,5 @@ MEDIATOMB_LOGFILE="/var/log/mediatomb.log" MEDIATOMB_PIDFILE="/var/run/mediatomb.pid" # Other options you want to pass to MediaTomb. +# Add "--interface ${MEDIATOMB_INTERFACE}" to bind to a named interface. MEDIATOMB_OPTIONS="" diff --git a/net-misc/mediatomb/files/mediatomb.confd b/net-misc/mediatomb/files/mediatomb.confd deleted file mode 100644 index 22fc21bd55cb..000000000000 --- a/net-misc/mediatomb/files/mediatomb.confd +++ /dev/null @@ -1,32 +0,0 @@ -# /etc/conf.d/mediatomb: config file for /etc/init.d/mediatomb - -# See the mediatomb(1) manpage for more info. - -# MediaTomb Web UI port. -# NOTE: The minimum value allowed is 49152 -MEDIATOMB_PORT=49152 - -# Bind MediaTomb to this interface -MEDIATOMB_INTERFACE="eth0" - -# Run MediaTomb as this user. -# NOTE: It is not recommended to run MediaTomb as root for -# security reasons. -MEDIATOMB_USER="mediatomb" - -# Run MediaTomb as this group. -# NOTE: It is not recommended to run MediaTomb as root for -# security reasons. -MEDIATOMB_GROUP="mediatomb" - -# Path to MediaTomb config file. -MEDIATOMB_CONFIG="/etc/mediatomb/config.xml" - -# Path to MediaTomb log file. -MEDIATOMB_LOGFILE="/var/log/mediatomb.log" - -# Path to MediaTomb pid file. -MEDIATOMB_PIDFILE="/var/run/mediatomb/mediatomb.pid" - -# Other options you want to pass to MediaTomb. -MEDIATOMB_OPTIONS="" diff --git a/net-misc/mediatomb/files/mediatomb.initd b/net-misc/mediatomb/files/mediatomb.initd deleted file mode 100644 index 12f96a4a5669..000000000000 --- a/net-misc/mediatomb/files/mediatomb.initd +++ /dev/null @@ -1,22 +0,0 @@ -#!/sbin/runscript - -depend() { - need net #MYSQL# -} - -start() { - ebegin "Starting MediaTomb" - start-stop-daemon --start --quiet --exec /usr/bin/mediatomb \ - --pidfile ${MEDIATOMB_PIDFILE} -- --daemon \ - --pidfile ${MEDIATOMB_PIDFILE} --user ${MEDIATOMB_USER} \ - --group ${MEDIATOMB_GROUP} --logfile ${MEDIATOMB_LOGFILE} \ - --config ${MEDIATOMB_CONFIG} --port ${MEDIATOMB_PORT} \ - --interface ${MEDIATOMB_INTERFACE} ${MEDIATOMB_OPTIONS} - eend $? -} - -stop () { - ebegin "Stopping MediaTomb" - start-stop-daemon --stop --retry 10 --quiet --pidfile ${MEDIATOMB_PIDFILE} - eend $? -} diff --git a/net-misc/mediatomb/mediatomb-0.11.0.ebuild b/net-misc/mediatomb/mediatomb-0.11.0.ebuild deleted file mode 100644 index 8fce2ea0874c..000000000000 --- a/net-misc/mediatomb/mediatomb-0.11.0.ebuild +++ /dev/null @@ -1,122 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/mediatomb-0.11.0.ebuild,v 1.9 2009/12/29 17:46:14 armin76 Exp $ - -inherit eutils autotools - -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 ~arm ~ppc x86" -IUSE="curl debug exif ffmpeg javascript libextractor mysql taglib" -RDEPEND=" - mysql? ( virtual/mysql ) - !mysql? ( >=dev-db/sqlite-3 ) - javascript? ( dev-lang/spidermonkey ) - dev-libs/expat - taglib? ( media-libs/taglib ) - !taglib? ( media-libs/id3lib ) - exif? ( media-libs/libexif ) - libextractor? ( media-libs/libextractor ) - ffmpeg? ( media-video/ffmpeg ) - curl? ( net-misc/curl ) - sys-apps/file - sys-libs/zlib - virtual/libiconv" -DEPEND="${RDEPEND}" - -MEDIATOMB_HOMEDIR="/var/lib/mediatomb" -MEDIATOMB_CONFDIR="/etc/mediatomb" -MEDIATOMB_PIDDIR="/var/run/mediatomb" - -pkg_setup() { - # disable libextractor support if ffmpeg and libextractor use are enabled - if use ffmpeg && use libextractor; then - ewarn "ffmpeg and libextractor USE flags are enabled. libextractor support will be disabled." - fi - - # create the mediatomb group and user - enewgroup mediatomb - enewuser mediatomb -1 -1 /dev/null mediatomb -} - -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}/${P}-newffmpeg.patch" - epatch "${FILESDIR}/${P}+curl-7.18.patch" - epatch "${FILESDIR}/${P}+glibc-2.10.patch" - eautoreconf -} - -src_compile() { - local myconf - - # disable libextractor support if ffmpeg and libextractor use are enabled - if use ffmpeg && use libextractor; then - myconf="${myconf} --enable-ffmpeg --disable-libextractor" - else - myconf="${myconf} $(use_enable ffmpeg) $(use_enable libextractor)" - fi - - econf \ - --prefix=/usr \ - $(use_enable curl) \ - $(use_enable debug tombdebug) \ - $(use_enable exif libexif) \ - $(use_enable javascript libjs) \ - $(use_enable mysql) $(use_enable !mysql sqlite3) \ - $(use_enable taglib) $(use_enable !taglib id3lib) \ - --enable-external-transcoding \ - --enable-libmagic \ - --enable-protocolinfo-extension \ - ${myconf} \ - || die "Configure failed!" - - 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 && echo "mysql"):" \ - "${FILESDIR}/${PN}.initd" \ - > "${T}/mediatomb.initd" - newinitd "${T}/mediatomb.initd" mediatomb - newconfd "${FILESDIR}/${PN}.confd" mediatomb - - insinto "${MEDIATOMB_CONFDIR}" - newins "${FILESDIR}/${P}.config" config.xml - fperms 0600 "${MEDIATOMB_CONFDIR}/config.xml" - fowners mediatomb:mediatomb "${MEDIATOMB_CONFDIR}/config.xml" - - keepdir "${MEDIATOMB_HOMEDIR}" - fowners mediatomb:mediatomb "${MEDIATOMB_HOMEDIR}" - - keepdir "${MEDIATOMB_PIDDIR}" - fowners mediatomb:mediatomb "${MEDIATOMB_PIDDIR}" -} - -pkg_postinst() { - if use mysql; then - elog "MediaTomb has been built with MySQL support. Please" - elog "consult sections 4.2.2 and 6.1 of the MediaTomb" - elog "documentation for information on configuring MediaTomb" - elog "with MySQL. http://mediatomb.cc/pages/documentation" - elog - fi - - elog "The MediaTomb Web UI can be reached at:" - elog "http://localhost:49152/" - elog - elog "To start MediaTomb:" - elog "/etc/init.d/mediatomb start" - elog - elog "To start MediaTomb at boot:" - elog "rc-update add mediatomb default" -} diff --git a/net-misc/mediatomb/mediatomb-0.12.0-r1.ebuild b/net-misc/mediatomb/mediatomb-0.12.0-r1.ebuild deleted file mode 100644 index d9f5d044806c..000000000000 --- a/net-misc/mediatomb/mediatomb-0.12.0-r1.ebuild +++ /dev/null @@ -1,117 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/mediatomb/mediatomb-0.12.0-r1.ebuild,v 1.2 2010/04/04 04:44:20 darkside Exp $ - -EAPI=2 - -inherit eutils linux-info - -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 ~arm ~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 - if linux_config_exists; then - if ! linux_chkconfig_present INOTIFY_USER; then - ewarn "Please enable Inotify support in your kernel:" - ewarn - ewarn " File systems --->" - ewarn " [*] Inotify support for userspace" - ewarn - fi - fi - fi - enewgroup mediatomb - enewuser mediatomb -1 -1 /dev/null mediatomb -} - -src_configure() { - if use thumbnail; then - myconf="${myconf} --enable-ffmpegthumbnailer --enable-ffmpeg" - else - myconf="${myconf} $(use_enable thumbnail ffmpegthumbnailer) $(use_enable ffmpeg)" - fi - - econf \ - $(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-curl \ - --enable-external-transcoding \ - --enable-libmagic \ - --enable-protocolinfo-extension \ - --enable-youtube \ - --enable-zlib \ - ${myconf} -} - -src_install() { - emake DESTDIR="${D}" install || die "Install failed!" - - dodoc AUTHORS ChangeLog NEWS README TODO - - sed -e "s:#MYSQL#:$(use mysql && has_version dev-db/mysql[-minimal] && echo "mysql"):" \ - "${FILESDIR}/${P}.initd" > "${T}/mediatomb.initd" || die - newinitd "${T}/mediatomb.initd" mediatomb || die - newconfd "${FILESDIR}/${P}.confd" mediatomb || die - - insinto /etc/mediatomb - newins "${FILESDIR}/${P}.config" config.xml || die - 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/" -} |