diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-09-02 18:29:30 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-09-02 19:37:40 +0200 |
commit | 09e4e75a62be39215ed311cae32d5ff5c22a7fb6 (patch) | |
tree | 9fd2a43d30cfa89c20d67c9787fecbdb942f3ef1 /net-misc/minidlna | |
parent | dev-python/bpython: Bump to 0.23 (diff) | |
download | gentoo-09e4e75a62be39215ed311cae32d5ff5c22a7fb6.tar.gz gentoo-09e4e75a62be39215ed311cae32d5ff5c22a7fb6.tar.bz2 gentoo-09e4e75a62be39215ed311cae32d5ff5c22a7fb6.zip |
net-misc/minidlna: Bump to 1.3.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-misc/minidlna')
-rw-r--r-- | net-misc/minidlna/Manifest | 1 | ||||
-rw-r--r-- | net-misc/minidlna/minidlna-1.3.2.ebuild | 106 |
2 files changed, 107 insertions, 0 deletions
diff --git a/net-misc/minidlna/Manifest b/net-misc/minidlna/Manifest index 24bdf5cb0ea0..8d3a3a232a79 100644 --- a/net-misc/minidlna/Manifest +++ b/net-misc/minidlna/Manifest @@ -1,2 +1,3 @@ +DIST minidlna-1.3.2.tar.gz 736820 BLAKE2B e35266be94e4585f399c80a6909318ce973d443506f6becdacdb00802ed0ce060ebf8401ff1b5dfef0b451f609d98f805c80b9a0c87e23d14084338047418620 SHA512 1dca810aeb59f19f530b5fd589beb04085b65ece94a55a54f2f7a0b771e7c5487493f13e6d9120e0b9aced08b0f98de58640dec26def214333dae1fea951f589 DIST minidlna-1_3_1.tar.gz 299749 BLAKE2B 0c4e5b5dc8b4fb14609cc71eafb008dfab0ef81350ac5c7f1a83e65f54b1d87296b3f0a063dbda3bd642fc777c36a0f839d5426c03ae852b07827a2b7d38c765 SHA512 6e94f33070db04660b83285a13942173537866ab53f9375e3162131fd86948349991a6c60cb2800c46546d73e58222a008d4cee1914c826f3a2f450f1c95a0e5 DIST minidlna-gentoo-artwork.patch.xz 49372 BLAKE2B 37a5691ec0a6558ecfb0748b0d25a513e7339beaf4816f8e0265f3954db07c3e87eb436855cde5f3daa95b1c3af550c0cf544efaf0a81fa91563507f35414416 SHA512 3bdaadc2a2331e9ebf37ed80d1de7cebd6307ab068dc9cf067159b2c0754a765b2076c07e988602af4dd2d6c49c819da8a1f668258950e15592027b353f22b5e diff --git a/net-misc/minidlna/minidlna-1.3.2.ebuild b/net-misc/minidlna/minidlna-1.3.2.ebuild new file mode 100644 index 000000000000..5ad9b2a6bf4a --- /dev/null +++ b/net-misc/minidlna/minidlna-1.3.2.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools systemd tmpfiles + +DESCRIPTION="DLNA/UPnP-AV compliant media server" +HOMEPAGE="https://sourceforge.net/projects/minidlna/" +SRC_URI=" + https://downloads.sourceforge.net/project/minidlna/${PN}/${PV}/${P}.tar.gz + mirror://gentoo/minidlna-gentoo-artwork.patch.xz +" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="netgear readynas zeroconf" + +DEPEND=" + dev-db/sqlite:3 + media-libs/flac + media-libs/libexif + media-libs/libid3tag:= + media-libs/libjpeg-turbo:0= + media-libs/libogg + media-libs/libvorbis + media-video/ffmpeg:0= + elibc_musl? ( sys-libs/queue-standalone ) + zeroconf? ( net-dns/avahi ) +" +RDEPEND=" + ${DEPEND} + acct-group/minidlna + acct-user/minidlna +" +BDEPEND=" + virtual/pkgconfig +" + +CONFIG_CHECK="~INOTIFY_USER" + +PATCHES=( + "${WORKDIR}"/minidlna-gentoo-artwork.patch +) + +src_prepare() { + sed -e "/log_dir/s:/var/log:/var/log/minidlna:" \ + -e "/db_dir/s:/var/cache/:/var/lib/:" \ + -i minidlna.conf || die + + default + eautoreconf +} + +src_configure() { + local myconf=( + --with-db-path=/var/lib/minidlna + --with-log-path=/var/log/minidlna + --enable-tivo + $(use_enable netgear) + $(use_enable readynas) + ) + use zeroconf || myconf+=( + ac_cv_lib_avahi_client_avahi_threaded_poll_new=no + ) + + econf "${myconf[@]}" +} + +src_test() { + : +} + +src_install() { + default + + #bug 536532 + dosym ../sbin/minidlnad /usr/bin/minidlna + + insinto /etc + doins minidlna.conf + + newconfd "${FILESDIR}"/minidlna-1.0.25.confd minidlna + newinitd "${FILESDIR}"/minidlna-1.1.5.initd minidlna + systemd_newunit "${FILESDIR}"/minidlna-1.1.2.service minidlna.service + newtmpfiles - minidlna.conf <<-EOF + d /run/minidlna 0755 minidlna minidlna - + EOF + + keepdir /var/{lib,log}/minidlna + + doman minidlnad.8 minidlna.conf.5 +} + +pkg_preinst() { + local my_is_new=yes + [[ -d ${EROOT}/var/lib/minidlna ]] && my_is_new=no + + fowners minidlna:minidlna /var/{lib,log}/minidlna + fperms 0750 /var/{lib,log}/minidlna +} + +pkg_postinst() { + tmpfiles_process minidlna.conf +} |