From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 631A3158090 for ; Thu, 5 May 2022 13:31:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D40EE01B5; Thu, 5 May 2022 13:31:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6797FE01B5 for ; Thu, 5 May 2022 13:31:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D3EF433D3C1 for ; Thu, 5 May 2022 13:31:43 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1B6113BF for ; Thu, 5 May 2022 13:31:42 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1651757263.e9c24f29cb1ccd817d51b6dee0ab894b50b93058.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/minidlna/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/minidlna/Manifest net-misc/minidlna/minidlna-1.3.1.ebuild X-VCS-Directories: net-misc/minidlna/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e9c24f29cb1ccd817d51b6dee0ab894b50b93058 X-VCS-Branch: master Date: Thu, 5 May 2022 13:31:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 223f4f58-bcda-4d08-a264-10f1f2ad26b0 X-Archives-Hash: 57c76d64d2115e6385c37bb223c210e1 commit: e9c24f29cb1ccd817d51b6dee0ab894b50b93058 Author: Michał Górny gentoo org> AuthorDate: Thu May 5 13:27:43 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu May 5 13:27:43 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9c24f29 net-misc/minidlna: Bump to 1.3.1 Signed-off-by: Michał Górny gentoo.org> net-misc/minidlna/Manifest | 1 + net-misc/minidlna/minidlna-1.3.1.ebuild | 110 ++++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) diff --git a/net-misc/minidlna/Manifest b/net-misc/minidlna/Manifest index 444e64091e07..17670f3ba3c8 100644 --- a/net-misc/minidlna/Manifest +++ b/net-misc/minidlna/Manifest @@ -1,2 +1,3 @@ DIST minidlna-1.3.0.tar.gz 509576 BLAKE2B 3574d48ee63f8c391d1beac653587b87460522178d9f100fe4b0e49f33398b8e527ee74af02d5ea36b23338f7ac73ef3c177edae6be8eed24e94f9db5c8323b0 SHA512 92a5ec0e59244c65dad5360ca68856ecc66fd32ec2aaddb9e49c142b866d2642726c7c62898059e5fa56431d2bbb644bbe60c7ae5eb0aba4fe2255c8e69dd2d6 +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.1.ebuild b/net-misc/minidlna/minidlna-1.3.1.ebuild new file mode 100644 index 000000000000..0a1f16e4a4fa --- /dev/null +++ b/net-misc/minidlna/minidlna-1.3.1.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools systemd tmpfiles + +MY_P=${P//./_} +DESCRIPTION="DLNA/UPnP-AV compliant media server" +HOMEPAGE="https://sourceforge.net/projects/minidlna/" +# https://downloads.sourceforge.net/project/minidlna/${PN}/${PV}/${P}.tar.gz +SRC_URI=" + https://github.com/mgorny/minidlna/archive/v${PV//./_}.tar.gz + -> ${MY_P}.tar.gz + mirror://gentoo/minidlna-gentoo-artwork.patch.xz +" +S=${WORKDIR}/${MY_P} + +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 +}