diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-misc/minidlna | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-misc/minidlna')
-rw-r--r-- | net-misc/minidlna/Manifest | 3 | ||||
-rw-r--r-- | net-misc/minidlna/files/minidlna-1.0.18-Makefile.patch | 11 | ||||
-rw-r--r-- | net-misc/minidlna/files/minidlna-1.0.23-r1.initd | 53 | ||||
-rw-r--r-- | net-misc/minidlna/files/minidlna-1.0.23.confd | 14 | ||||
-rw-r--r-- | net-misc/minidlna/files/minidlna-1.0.25.confd | 14 | ||||
-rw-r--r-- | net-misc/minidlna/files/minidlna-1.1.0.initd | 53 | ||||
-rw-r--r-- | net-misc/minidlna/files/minidlna-1.1.0.service | 13 | ||||
-rw-r--r-- | net-misc/minidlna/files/minidlna-1.1.2.initd | 53 | ||||
-rw-r--r-- | net-misc/minidlna/files/minidlna-1.1.2.service | 11 | ||||
-rw-r--r-- | net-misc/minidlna/metadata.xml | 17 | ||||
-rw-r--r-- | net-misc/minidlna/minidlna-1.1.3.ebuild | 86 | ||||
-rw-r--r-- | net-misc/minidlna/minidlna-1.1.4.ebuild | 93 |
12 files changed, 421 insertions, 0 deletions
diff --git a/net-misc/minidlna/Manifest b/net-misc/minidlna/Manifest new file mode 100644 index 000000000000..dfe3eaabd9ba --- /dev/null +++ b/net-misc/minidlna/Manifest @@ -0,0 +1,3 @@ +DIST minidlna-1.1.3.tar.gz 481789 SHA256 ed42d5cadf9488a95a0107341918879ef8ce4c650e19337688c46cdcd484bc4e SHA512 3b3c28ed17325a1d2c461c51c7958fcc7fd02b71332a952e06f0ad8bca04f8ff58a74bb3d221ad432282c7289953bd31c213c2703008fb36037c39a743001aa9 WHIRLPOOL 4ac0a4344feb026d483562d5711f3f3ce4f70d68d9b043ec54e7d3667c7b38e2d1b7df2cbb2a5c9d05d4afc29182fe65c95389530b187000e496902734bb498e +DIST minidlna-1.1.4.tar.gz 494478 SHA256 9814c04a2c506a0dd942c4218d30c07dedf90dabffbdef2d308a3f9f23545314 SHA512 24c2d82222798278d60faa46c6d7b19e44a91868da869f7d2aa2bf3c68e343a6c2a323f67223ea69242919047b08f059ed9c7a49b0b516384244acd98b51db4e WHIRLPOOL 5f82dd2130086e90784b05d67037e9c40e20b539ddc1bfb3733910beee44578027d9c245aa1f6117ba05b3c039a2b32125ea561f71c63cf0e422664e7067007f +DIST minidlna-gentoo-artwork.patch.xz 49372 SHA256 37ae7228b07b7c81c8962c5dc88a41ed1691bdf1b019b654a9fc93ac1da0c7ce SHA512 3bdaadc2a2331e9ebf37ed80d1de7cebd6307ab068dc9cf067159b2c0754a765b2076c07e988602af4dd2d6c49c819da8a1f668258950e15592027b353f22b5e WHIRLPOOL e243b9b6a002af5e3ee1bb196239790ff86724624ebccb34c84ac072426341db6b5f44e455d13657d5284220fe2688ddf3a2ec0212a7b86525eb02a6c080af80 diff --git a/net-misc/minidlna/files/minidlna-1.0.18-Makefile.patch b/net-misc/minidlna/files/minidlna-1.0.18-Makefile.patch new file mode 100644 index 000000000000..2ce5e64cd422 --- /dev/null +++ b/net-misc/minidlna/files/minidlna-1.0.18-Makefile.patch @@ -0,0 +1,11 @@ +--- Makefile ++++ Makefile +@@ -12,7 +12,7 @@ + # + #CFLAGS = -Wall -O -D_GNU_SOURCE -g -DDEBUG + #CFLAGS = -Wall -g -Os -D_GNU_SOURCE +-CFLAGS = -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \ ++CFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 \ + -I/usr/include/ffmpeg \ + -I/usr/include/libavutil -I/usr/include/libavcodec -I/usr/include/libavformat \ + -I/usr/include/ffmpeg/libavutil -I/usr/include/ffmpeg/libavcodec -I/usr/include/ffmpeg/libavformat diff --git a/net-misc/minidlna/files/minidlna-1.0.23-r1.initd b/net-misc/minidlna/files/minidlna-1.0.23-r1.initd new file mode 100644 index 000000000000..1ba3e1b4a764 --- /dev/null +++ b/net-misc/minidlna/files/minidlna-1.0.23-r1.initd @@ -0,0 +1,53 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + ebegin "Starting MiniDLNA" + local params="" + local stop=0 + + checkpath -q -d -m 0755 -o ${M_USER:-nobody}:${M_GROUP:-nogroup} /var/run/minidlna + + params="$params -P /var/run/minidlna/minidlna.pid" + + if [[ "${RESCAN}" = "true" || "{$RESCAN}" = yes ]]; then + params="$params -R" + fi + + #set the config file and check if it exists + if [ -z "${CONFIG}" ]; then + if [ ! -f "/etc/minidlna.conf" ]; then + ewarn "You did not set the config file correctly" + stop=1 + fi + params="$params -f /etc/minidlna.conf" + else + if [ ! -f "${CONFIG}" ]; then + ewarn "The specified config file does not exist" + stop=1 + fi + params="$params -f ${CONFIG}" + fi + + + if [ $stop -eq 1 ]; then + eend 1 + else + start-stop-daemon --start \ + --user ${M_USER:-nobody} --group ${M_GROUP:-nogroup} \ + --exec /usr/sbin/minidlna -- ${params} + eend $? + fi +} + +stop() { + ebegin "Stopping MiniDLNA" + start-stop-daemon --stop --quiet --exec /usr/sbin/minidlna + eend $? +} diff --git a/net-misc/minidlna/files/minidlna-1.0.23.confd b/net-misc/minidlna/files/minidlna-1.0.23.confd new file mode 100644 index 000000000000..c98c7ab02e43 --- /dev/null +++ b/net-misc/minidlna/files/minidlna-1.0.23.confd @@ -0,0 +1,14 @@ +# /etc/conf.d/minidlna + +# Should minidlna rescan the entire collection on startup? +# Warning: This may take a long time! +RESCAN="false" + +# The location of the config file +#CONFIG="/etc/minidlna.conf" + +# Specify the user/group minidlna should run as +#M_USER="nobody" +#M_GROUP="nogroup" + +# vim: ft=gentoo-conf-d diff --git a/net-misc/minidlna/files/minidlna-1.0.25.confd b/net-misc/minidlna/files/minidlna-1.0.25.confd new file mode 100644 index 000000000000..97d15b00c391 --- /dev/null +++ b/net-misc/minidlna/files/minidlna-1.0.25.confd @@ -0,0 +1,14 @@ +# /etc/conf.d/minidlna + +# Should minidlna rescan the entire collection on startup? +# Warning: This may take a long time! +RESCAN="false" + +# The location of the config file +#CONFIG="/etc/minidlna.conf" + +# Specify the user/group minidlna should run as +#M_USER="minidlna" +#M_GROUP="minidlna" + +# vim: ft=gentoo-conf-d diff --git a/net-misc/minidlna/files/minidlna-1.1.0.initd b/net-misc/minidlna/files/minidlna-1.1.0.initd new file mode 100644 index 000000000000..9ccffe73265a --- /dev/null +++ b/net-misc/minidlna/files/minidlna-1.1.0.initd @@ -0,0 +1,53 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + ebegin "Starting MiniDLNA" + local params="" + local stop=0 + + checkpath -q -d -m 0755 -o ${M_USER:-minidlna}:${M_GROUP:-minidlna} /var/run/minidlna + + params="$params -P /var/run/minidlna/minidlna.pid" + + if [[ "${RESCAN}" = "true" || "{$RESCAN}" = yes ]]; then + params="$params -R" + fi + + #set the config file and check if it exists + if [ -z "${CONFIG}" ]; then + if [ ! -f "/etc/minidlna.conf" ]; then + ewarn "You did not set the config file correctly" + stop=1 + fi + params="$params -f /etc/minidlna.conf" + else + if [ ! -f "${CONFIG}" ]; then + ewarn "The specified config file does not exist" + stop=1 + fi + params="$params -f ${CONFIG}" + fi + + + if [ $stop -eq 1 ]; then + eend 1 + else + start-stop-daemon --start \ + --user ${M_USER:-minidlna} --group ${M_GROUP:-minidlna} \ + --exec /usr/sbin/minidlnad -- ${params} + eend $? + fi +} + +stop() { + ebegin "Stopping MiniDLNA" + start-stop-daemon --stop --quiet --exec /usr/sbin/minidlnad + eend $? +} diff --git a/net-misc/minidlna/files/minidlna-1.1.0.service b/net-misc/minidlna/files/minidlna-1.1.0.service new file mode 100644 index 000000000000..908b1d59f45d --- /dev/null +++ b/net-misc/minidlna/files/minidlna-1.1.0.service @@ -0,0 +1,13 @@ +[Unit]
+Description=MiniDLNA is a DLNA/UPnP-AV server software
+After=syslog.target local-fs.target network.target
+
+[Service]
+User=minidlna
+Group=minidlna
+Type=forking
+PIDFile=/var/run/minidlna/minidlna.pid
+ExecStart=/usr/sbin/minidlnad -f /etc/minidlna.conf -P /var/run/minidlna/minidlna.pid
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-misc/minidlna/files/minidlna-1.1.2.initd b/net-misc/minidlna/files/minidlna-1.1.2.initd new file mode 100644 index 000000000000..c7f30260ff8c --- /dev/null +++ b/net-misc/minidlna/files/minidlna-1.1.2.initd @@ -0,0 +1,53 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +start() { + ebegin "Starting MiniDLNA" + local params="" + local stop=0 + + checkpath -q -d -m 0755 -o ${M_USER:-minidlna}:${M_GROUP:-minidlna} /run/minidlna + + params="$params -P /run/minidlna/minidlna.pid" + + if [[ "${RESCAN}" = "true" || "{$RESCAN}" = yes ]]; then + params="$params -R" + fi + + #set the config file and check if it exists + if [ -z "${CONFIG}" ]; then + if [ ! -f "/etc/minidlna.conf" ]; then + ewarn "You did not set the config file correctly" + stop=1 + fi + params="$params -f /etc/minidlna.conf" + else + if [ ! -f "${CONFIG}" ]; then + ewarn "The specified config file does not exist" + stop=1 + fi + params="$params -f ${CONFIG}" + fi + + + if [ $stop -eq 1 ]; then + eend 1 + else + start-stop-daemon --start \ + --user ${M_USER:-minidlna} --group ${M_GROUP:-minidlna} \ + --exec /usr/sbin/minidlnad -- ${params} + eend $? + fi +} + +stop() { + ebegin "Stopping MiniDLNA" + start-stop-daemon --stop --quiet --exec /usr/sbin/minidlnad + eend $? +} diff --git a/net-misc/minidlna/files/minidlna-1.1.2.service b/net-misc/minidlna/files/minidlna-1.1.2.service new file mode 100644 index 000000000000..0d9571787d95 --- /dev/null +++ b/net-misc/minidlna/files/minidlna-1.1.2.service @@ -0,0 +1,11 @@ +[Unit]
+Description=MiniDLNA server
+After=network.target
+
+[Service]
+User=minidlna
+Group=minidlna
+ExecStart=/usr/sbin/minidlnad -f /etc/minidlna.conf -P /run/minidlna/minidlna.pid -S
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-misc/minidlna/metadata.xml b/net-misc/minidlna/metadata.xml new file mode 100644 index 000000000000..9f19b86fa285 --- /dev/null +++ b/net-misc/minidlna/metadata.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> +</maintainer> +<upstream> + <bugs-to>http://sourceforge.net/tracker/?group_id=243163</bugs-to> + <remote-id type="sourceforge">minidlna</remote-id> +</upstream> +<use> + <flag name="netgear">Enable netgear branding</flag> + <flag name="readynas">Enable readynas branding</flag> +</use> +</pkgmetadata> + diff --git a/net-misc/minidlna/minidlna-1.1.3.ebuild b/net-misc/minidlna/minidlna-1.1.3.ebuild new file mode 100644 index 000000000000..833a66685db8 --- /dev/null +++ b/net-misc/minidlna/minidlna-1.1.3.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="amd64 ~arm x86" +IUSE="netgear readynas" + +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}:" \ + -e "/db_dir/s:/var/cache/:/var/lib/:" \ + -i ${PN}.conf || die + + epatch_user +} + +src_configure() { + econf \ + --disable-silent-rules \ + --with-db-path=/var/lib/${PN} \ + --with-log-path=/var/log/${PN} \ + --enable-tivo \ + $(use_enable netgear) \ + $(use_enable readynas) +} + +src_install() { + default + + insinto /etc + doins ${PN}.conf + + newconfd "${FILESDIR}"/${PN}-1.0.25.confd ${PN} + newinitd "${FILESDIR}"/${PN}-1.1.2.initd ${PN} + systemd_newunit "${FILESDIR}"/${PN}-1.1.2.service ${PN}.service + echo "d /run/${PN} 0755 ${PN} ${PN} -" > "${T}"/${PN}.conf + systemd_dotmpfilesd "${T}"/${PN}.conf + + 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." +} diff --git a/net-misc/minidlna/minidlna-1.1.4.ebuild b/net-misc/minidlna/minidlna-1.1.4.ebuild new file mode 100644 index 000000000000..2af071524411 --- /dev/null +++ b/net-misc/minidlna/minidlna-1.1.4.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils linux-info 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 + http://dev.gentoo.org/~xmw/${PN}-gentoo-artwork.patch.xz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="amd64 arm x86" +IUSE="netgear readynas" + +RDEPEND="dev-db/sqlite:3 + media-libs/flac + media-libs/libexif + media-libs/libid3tag + media-libs/libogg + media-libs/libvorbis + virtual/ffmpeg + virtual/jpeg:0" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +CONFIG_CHECK="~INOTIFY_USER" + +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 + + linux-info_pkg_setup +} + +src_prepare() { + sed -e "/log_dir/s:/var/log:/var/log/${PN}:" \ + -e "/db_dir/s:/var/cache/:/var/lib/:" \ + -i ${PN}.conf || die + + epatch "${WORKDIR}"/${PN}-gentoo-artwork.patch + + epatch_user +} + +src_configure() { + econf \ + --disable-silent-rules \ + --with-db-path=/var/lib/${PN} \ + --with-log-path=/var/log/${PN} \ + --enable-tivo \ + $(use_enable netgear) \ + $(use_enable readynas) +} + +src_install() { + default + + insinto /etc + doins ${PN}.conf + + newconfd "${FILESDIR}"/${PN}-1.0.25.confd ${PN} + newinitd "${FILESDIR}"/${PN}-1.1.2.initd ${PN} + systemd_newunit "${FILESDIR}"/${PN}-1.1.2.service ${PN}.service + echo "d /run/${PN} 0755 ${PN} ${PN} -" > "${T}"/${PN}.conf + systemd_dotmpfilesd "${T}"/${PN}.conf + + 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." +} |