From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/minidlna/
Date: Sun, 25 Nov 2018 21:43:06 +0000 (UTC) [thread overview]
Message-ID: <1543182173.38ece9f3bc79edbf7b881de073d302312630ef58.mgorny@gentoo> (raw)
commit: 38ece9f3bc79edbf7b881de073d302312630ef58
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 25 19:45:28 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov 25 21:42:53 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38ece9f3
net-misc/minidlna: Fix incorrect dep on virtual/ffmpeg
The package is clearly linking to ffmpeg/libav libraries, so we need
USE=libav and proper slot-deps. Note: I haven't tested whether it works
with libav, presumed the virtual/ implies it did.
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
net-misc/minidlna/minidlna-1.2.1-r1.ebuild | 101 +++++++++++++++++++++++++++++
1 file changed, 101 insertions(+)
diff --git a/net-misc/minidlna/minidlna-1.2.1-r1.ebuild b/net-misc/minidlna/minidlna-1.2.1-r1.ebuild
new file mode 100644
index 00000000000..90d184a6b11
--- /dev/null
+++ b/net-misc/minidlna/minidlna-1.2.1-r1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils linux-info systemd toolchain-funcs user
+
+DESCRIPTION="DLNA/UPnP-AV compliant media server"
+HOMEPAGE="https://sourceforge.net/projects/minidlna/"
+SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.gz
+ https://dev.gentoo.org/~xmw/${PN}-gentoo-artwork.patch.xz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="avahi libav netgear readynas"
+
+RDEPEND="dev-db/sqlite:3
+ media-libs/flac
+ media-libs/libexif
+ media-libs/libid3tag
+ media-libs/libogg
+ media-libs/libvorbis
+ virtual/jpeg:0
+ avahi? ( net-dns/avahi )
+ libav? ( media-video/libav:0= )
+ !libav? ( media-video/ffmpeg:0= )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+CONFIG_CHECK="~INOTIFY_USER"
+
+PATCHES=( "${WORKDIR}"/${PN}-gentoo-artwork.patch
+ "${FILESDIR}"/${P}-buildsystem.patch )
+
+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
+
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --disable-silent-rules \
+ --with-db-path=/var/lib/${PN} \
+ --with-log-path=/var/log/${PN} \
+ --enable-tivo \
+ $(use_enable avahi ) \
+ $(use_enable netgear) \
+ $(use_enable readynas)
+}
+
+src_install() {
+ default
+
+ #bug 536532
+ dosym /usr/sbin/${PN}d /usr/bin/${PN}
+
+ insinto /etc
+ doins ${PN}.conf
+
+ newconfd "${FILESDIR}"/${PN}-1.0.25.confd ${PN}
+ newinitd "${FILESDIR}"/${PN}-1.1.5.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."
+}
next reply other threads:[~2018-11-25 21:43 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-25 21:43 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-06-06 18:46 [gentoo-commits] repo/gentoo:master commit in: net-misc/minidlna/ Michał Górny
2023-06-06 16:55 Arthur Zamarin
2023-06-06 10:06 Sam James
2023-06-06 10:06 Sam James
2023-06-01 4:07 Michał Górny
2023-01-21 19:15 Michał Górny
2023-01-21 18:53 Arthur Zamarin
2022-12-31 13:01 Sam James
2022-12-31 13:01 Sam James
2022-11-28 23:50 James Le Cuirot
2022-09-02 17:37 Michał Górny
2022-05-06 11:25 Jakov Smolić
2022-05-06 8:10 Agostino Sarubbo
2022-05-05 18:39 Arthur Zamarin
2022-05-05 13:31 Michał Górny
2022-01-03 23:26 David Seifert
2021-08-16 21:28 Sam James
2020-12-03 6:52 Sam James
2020-11-29 8:16 Agostino Sarubbo
2020-11-28 13:34 Thomas Deutschmann
2020-04-26 12:26 David Seifert
2020-01-03 20:40 Michał Górny
2019-03-19 2:03 Thomas Deutschmann
2019-03-16 14:17 Mikle Kolyada
2019-03-15 8:15 Mikle Kolyada
2018-11-26 4:22 Michał Górny
2018-11-25 21:43 Michał Górny
2018-11-25 21:43 Michał Górny
2018-11-25 21:43 Michał Górny
2018-11-25 21:43 Michał Górny
2018-11-25 21:43 Michał Górny
2018-11-25 21:43 Michał Górny
2018-11-25 21:43 Michał Górny
2018-11-25 21:43 Michał Górny
2018-11-25 21:43 Michał Górny
2018-11-25 21:43 Michał Górny
2018-11-25 21:43 Michał Górny
2018-11-25 21:43 Michał Górny
2018-11-25 10:11 Michał Górny
2018-08-11 9:06 Andreas Sturmlechner
2017-03-17 10:15 Agostino Sarubbo
2017-03-15 13:00 Michael Weber
2016-02-23 20:36 Michael Weber
2015-10-03 16:51 Michael Weber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1543182173.38ece9f3bc79edbf7b881de073d302312630ef58.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox