summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-11-25 22:11:30 +0100
committerMichał Górny <mgorny@gentoo.org>2018-11-25 22:42:56 +0100
commit45b1f3ffe82ed220e269d7d587dfc6ade1e01244 (patch)
tree98d5c04007fa0a37ec3e2fbe03a169aed7d7ff9d /net-misc
parentnet-misc/minidlna: Use stdin form of systemd_newtmpfilesd (diff)
downloadgentoo-45b1f3ffe82ed220e269d7d587dfc6ade1e01244.tar.gz
gentoo-45b1f3ffe82ed220e269d7d587dfc6ade1e01244.tar.bz2
gentoo-45b1f3ffe82ed220e269d7d587dfc6ade1e01244.zip
net-misc/minidlna: Switch to tmpfiles.eclass
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/minidlna/minidlna-1.2.1-r1.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/net-misc/minidlna/minidlna-1.2.1-r1.ebuild b/net-misc/minidlna/minidlna-1.2.1-r1.ebuild
index 585a86c1acc4..a41c01c156b3 100644
--- a/net-misc/minidlna/minidlna-1.2.1-r1.ebuild
+++ b/net-misc/minidlna/minidlna-1.2.1-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-inherit autotools eutils linux-info systemd toolchain-funcs user
+inherit autotools eutils linux-info systemd tmpfiles toolchain-funcs user
DESCRIPTION="DLNA/UPnP-AV compliant media server"
HOMEPAGE="https://sourceforge.net/projects/minidlna/"
@@ -66,7 +66,7 @@ src_install() {
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
- systemd_newtmpfilesd - minidlna.conf <<-EOF
+ newtmpfiles - minidlna.conf <<-EOF
d /run/minidlna 0755 minidlna minidlna -
EOF
@@ -100,4 +100,6 @@ pkg_postinst() {
elog "logfile is moved to /var/log/minidlna/minidlna.log,"
elog "cache is moved to /var/lib/minidlna."
elog "Please edit /etc/conf.d/minidlna and file ownerships to suit your needs."
+
+ tmpfiles_process minidlna.conf
}