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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D6E70138335 for ; Sun, 25 Nov 2018 21:43:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3259EE09E6; Sun, 25 Nov 2018 21:43:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E9F39E09E6 for ; Sun, 25 Nov 2018 21:43:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 239B1335D95 for ; Sun, 25 Nov 2018 21:43:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 91FE84B9 for ; Sun, 25 Nov 2018 21:43:06 +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: <1543182175.05a4e479f950367026e4224293c62049f872765a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/minidlna/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/minidlna/minidlna-1.2.1-r1.ebuild X-VCS-Directories: net-misc/minidlna/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 05a4e479f950367026e4224293c62049f872765a X-VCS-Branch: master Date: Sun, 25 Nov 2018 21:43:06 +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-Archives-Salt: 0b17e01a-cbe6-4003-9c8f-2400f20ecc5f X-Archives-Hash: d71e0b8e3ebb7e8cc7b1553ba36b5e5c commit: 05a4e479f950367026e4224293c62049f872765a Author: Michał Górny gentoo org> AuthorDate: Sun Nov 25 21:08:37 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Nov 25 21:42:55 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05a4e479 net-misc/minidlna: Inline most uses of PN Signed-off-by: Michał Górny gentoo.org> net-misc/minidlna/minidlna-1.2.1-r1.ebuild | 50 +++++++++++++++--------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/net-misc/minidlna/minidlna-1.2.1-r1.ebuild b/net-misc/minidlna/minidlna-1.2.1-r1.ebuild index 999de5da773..5e37ec293f7 100644 --- a/net-misc/minidlna/minidlna-1.2.1-r1.ebuild +++ b/net-misc/minidlna/minidlna-1.2.1-r1.ebuild @@ -7,8 +7,8 @@ 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" +SRC_URI="mirror://sourceforge/minidlna/${PV}/${P}.tar.gz + https://dev.gentoo.org/~xmw/minidlna-gentoo-artwork.patch.xz" LICENSE="BSD GPL-2" SLOT="0" @@ -30,13 +30,13 @@ DEPEND="${RDEPEND} CONFIG_CHECK="~INOTIFY_USER" -PATCHES=( "${WORKDIR}"/${PN}-gentoo-artwork.patch +PATCHES=( "${WORKDIR}"/minidlna-gentoo-artwork.patch "${FILESDIR}"/${P}-buildsystem.patch ) src_prepare() { - sed -e "/log_dir/s:/var/log:/var/log/${PN}:" \ + sed -e "/log_dir/s:/var/log:/var/log/minidlna:" \ -e "/db_dir/s:/var/cache/:/var/lib/:" \ - -i ${PN}.conf || die + -i minidlna.conf || die default @@ -46,8 +46,8 @@ src_prepare() { src_configure() { econf \ --disable-silent-rules \ - --with-db-path=/var/lib/${PN} \ - --with-log-path=/var/log/${PN} \ + --with-db-path=/var/lib/minidlna \ + --with-log-path=/var/log/minidlna \ --enable-tivo \ $(use_enable avahi ) \ $(use_enable netgear) \ @@ -58,37 +58,37 @@ src_install() { default #bug 536532 - dosym /usr/sbin/${PN}d /usr/bin/${PN} + dosym /usr/sbin/minidlnad /usr/bin/minidlna insinto /etc - doins ${PN}.conf + doins minidlna.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 + 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 + echo "d /run/minidlna 0755 minidlna minidlna -" > "${T}"/minidlna.conf + systemd_dotmpfilesd "${T}"/minidlna.conf - keepdir /var/{lib,log}/${PN} + keepdir /var/{lib,log}/minidlna dodoc AUTHORS NEWS README TODO - doman ${PN}d.8 ${PN}.conf.5 + doman minidlnad.8 minidlna.conf.5 } pkg_preinst() { local my_is_new="yes" - [ -d "${EPREFIX}"/var/lib/${PN} ] && my_is_new="no" + [ -d "${EPREFIX}"/var/lib/minidlna ] && my_is_new="no" - enewgroup ${PN} - enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} + enewgroup minidlna + enewuser minidlna -1 -1 /var/lib/minidlna minidlna - fowners ${PN}:${PN} /var/{lib,log}/${PN} - fperms 0750 /var/{lib,log}/${PN} + fowners minidlna:minidlna /var/{lib,log}/minidlna + fperms 0750 /var/{lib,log}/minidlna - if [ -d "${EPREFIX}"/var/lib/${PN} ] && [ "${my_is_new}" == "yes" ] ; then + if [ -d "${EPREFIX}"/var/lib/minidlna ] && [ "${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 + chown minidlna:minidlna "${EPREFIX}"/var/lib/minidlna || die + chmod 0750 "${EPREFIX}"/var/lib/minidlna || die # if user already exists, but /var/lib/minidlna is missing # rely on ${D}/var/lib/minidlna created in src_install fi @@ -98,5 +98,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." + elog "Please edit /etc/conf.d/minidlna and file ownerships to suit your needs." }