summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2013-05-08 21:30:55 +0000
committerMichael Weber <xmw@gentoo.org>2013-05-08 21:30:55 +0000
commit408ecf7a9c834c12acf2ee87b12d70da42218d96 (patch)
treeaa63419c660ead01396d1dcdbbee5b64c1d8bc6e /net-misc/minidlna
parentRestore accidentally dropped keywords. (diff)
downloadgentoo-2-408ecf7a9c834c12acf2ee87b12d70da42218d96.tar.gz
gentoo-2-408ecf7a9c834c12acf2ee87b12d70da42218d96.tar.bz2
gentoo-2-408ecf7a9c834c12acf2ee87b12d70da42218d96.zip
Version bump, remove keywords for testing
(Portage version: 2.2.0_alpha174/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Diffstat (limited to 'net-misc/minidlna')
-rw-r--r--net-misc/minidlna/ChangeLog8
-rw-r--r--net-misc/minidlna/minidlna-1.1.0.ebuild80
2 files changed, 87 insertions, 1 deletions
diff --git a/net-misc/minidlna/ChangeLog b/net-misc/minidlna/ChangeLog
index 17ca94deda9b..6c57b56209e9 100644
--- a/net-misc/minidlna/ChangeLog
+++ b/net-misc/minidlna/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/minidlna
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/ChangeLog,v 1.30 2013/05/08 20:56:01 xmw Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/ChangeLog,v 1.31 2013/05/08 21:30:55 xmw Exp $
+
+*minidlna-1.1.0 (08 May 2013)
+
+ 08 May 2013; Michael Weber <xmw@gentoo.org> +minidlna-1.1.0.ebuild,
+ minidlna-1.0.25-r1.ebuild:
+ Version bump, remove keywords for testing
*minidlna-1.0.26 (08 May 2013)
diff --git a/net-misc/minidlna/minidlna-1.1.0.ebuild b/net-misc/minidlna/minidlna-1.1.0.ebuild
new file mode 100644
index 000000000000..3c3a5c463dbf
--- /dev/null
+++ b/net-misc/minidlna/minidlna-1.1.0.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/minidlna-1.1.0.ebuild,v 1.1 2013/05/08 21:30:55 xmw Exp $
+
+EAPI=4
+
+inherit eutils systemd toolchain-funcs user
+
+DESCRIPTION="DLNA/UPnP-AV compliant media server"
+HOMEPAGE="http://minidlna.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND="dev-db/sqlite
+ media-libs/flac
+ media-libs/libexif
+ media-libs/libid3tag
+ media-libs/libogg
+ media-libs/libvorbis
+ virtual/ffmpeg
+ virtual/jpeg"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+pkg_setup() {
+ local my_is_new="yes"
+ [ -d "${EPREFIX}"/var/lib/${PN} ] && my_is_new="no"
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
+ if [ -d "${EPREFIX}"/var/lib/${PN} ] && [ "${my_is_new}" == "yes" ] ; then
+ # created by above enewuser command w/ wrong group and permissions
+ chown ${PN}:${PN} "${EPREFIX}"/var/lib/${PN} || die
+ chmod 0750 "${EPREFIX}"/var/lib/${PN} || die
+ # if user already exists, but /var/lib/minidlna is missing
+ # rely on ${D}/var/lib/minidlna created in src_install
+ fi
+}
+
+src_prepare() {
+ sed -e "/log_dir/s:/var/log:/var/log/${PN}:" \
+ -i ${PN}.conf || die
+
+ epatch_user
+}
+
+src_configure() {
+ econf \
+ --disable-silent-rules \
+ --with-db-path=/var/cache/${PN} \
+ --with-log-path=/var/log/${PN} \
+ --enable-tivo \
+ --enable-netgear \
+ --enable-readynas
+}
+
+src_install() {
+ default
+
+ newconfd "${FILESDIR}"/${PN}-1.0.25.confd ${PN}
+ newinitd "${FILESDIR}"/${PN}-1.0.25-r2.initd ${PN}
+ systemd_newunit "${FILESDIR}"/${PN}-1.0.25.service ${PN}.service
+
+ dodir /var/{lib,log}/${PN}
+ fowners ${PN}:${PN} /var/{lib,log}/${PN}
+ fperms 0750 /var/{lib,log}/${PN}
+
+ dodoc AUTHORS NEWS README TODO
+ doman ${PN}d.8 ${PN}.conf.5
+}
+
+pkg_postinst() {
+ elog "minidlna now runs as minidlna:minidlna (bug 426726),"
+ elog "logfile is moved to /var/log/minidlna/minidlna.log,"
+ elog "cache is moved to /var/lib/minidlna."
+ elog "Please edit /etc/conf.d/${PN} and file ownerships to suit your needs."
+}