Gentoo Archives: gentoo-commits

From: Michael Weber <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/minidlna/
Date: Sat, 03 Oct 2015 16:51:13
Message-Id: 1443891048.00f2c289ce818d358f428ba37a87b77918fe9925.xmw@gentoo
1 commit: 00f2c289ce818d358f428ba37a87b77918fe9925
2 Author: Michael Weber <xmw <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 3 16:49:23 2015 +0000
4 Commit: Michael Weber <xmw <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 3 16:50:48 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00f2c289
7
8 net-misc/minidlna: Version bump (bug 560866, thanks mrue), add symlink /usr/bin/minidlna for digikam (bug 536532, thanks Stephan Karacson).
9
10 Package-Manager: portage-2.2.21
11
12 net-misc/minidlna/Manifest | 1 +
13 net-misc/minidlna/minidlna-1.1.5.ebuild | 96 +++++++++++++++++++++++++++++++++
14 2 files changed, 97 insertions(+)
15
16 diff --git a/net-misc/minidlna/Manifest b/net-misc/minidlna/Manifest
17 index dfe3eaa..7a5cd8d 100644
18 --- a/net-misc/minidlna/Manifest
19 +++ b/net-misc/minidlna/Manifest
20 @@ -1,3 +1,4 @@
21 DIST minidlna-1.1.3.tar.gz 481789 SHA256 ed42d5cadf9488a95a0107341918879ef8ce4c650e19337688c46cdcd484bc4e SHA512 3b3c28ed17325a1d2c461c51c7958fcc7fd02b71332a952e06f0ad8bca04f8ff58a74bb3d221ad432282c7289953bd31c213c2703008fb36037c39a743001aa9 WHIRLPOOL 4ac0a4344feb026d483562d5711f3f3ce4f70d68d9b043ec54e7d3667c7b38e2d1b7df2cbb2a5c9d05d4afc29182fe65c95389530b187000e496902734bb498e
22 DIST minidlna-1.1.4.tar.gz 494478 SHA256 9814c04a2c506a0dd942c4218d30c07dedf90dabffbdef2d308a3f9f23545314 SHA512 24c2d82222798278d60faa46c6d7b19e44a91868da869f7d2aa2bf3c68e343a6c2a323f67223ea69242919047b08f059ed9c7a49b0b516384244acd98b51db4e WHIRLPOOL 5f82dd2130086e90784b05d67037e9c40e20b539ddc1bfb3733910beee44578027d9c245aa1f6117ba05b3c039a2b32125ea561f71c63cf0e422664e7067007f
23 +DIST minidlna-1.1.5.tar.gz 488191 SHA256 8477ad0416bb2af5cd8da6dde6c07ffe1a413492b7fe40a362bc8587be15ab9b SHA512 2a8eaa42fcda6f98648f1726af5cdba6d2358c386440dd0de933364cfbd1ced2fee5f883033e1a5a692b760749beb2c12798020a3591ddcea22663102d4f3dfa WHIRLPOOL 8ed8fd62fb063b042a234c8647fa05c65e4f1e331a66efae8f361002f5cedcd2706d777348332075e3263e0d8bbde7794dd84fc400dfe3a656e5d70952427669
24 DIST minidlna-gentoo-artwork.patch.xz 49372 SHA256 37ae7228b07b7c81c8962c5dc88a41ed1691bdf1b019b654a9fc93ac1da0c7ce SHA512 3bdaadc2a2331e9ebf37ed80d1de7cebd6307ab068dc9cf067159b2c0754a765b2076c07e988602af4dd2d6c49c819da8a1f668258950e15592027b353f22b5e WHIRLPOOL e243b9b6a002af5e3ee1bb196239790ff86724624ebccb34c84ac072426341db6b5f44e455d13657d5284220fe2688ddf3a2ec0212a7b86525eb02a6c080af80
25
26 diff --git a/net-misc/minidlna/minidlna-1.1.5.ebuild b/net-misc/minidlna/minidlna-1.1.5.ebuild
27 new file mode 100644
28 index 0000000..ef55959
29 --- /dev/null
30 +++ b/net-misc/minidlna/minidlna-1.1.5.ebuild
31 @@ -0,0 +1,96 @@
32 +# Copyright 1999-2015 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=5
37 +
38 +inherit eutils linux-info systemd toolchain-funcs user
39 +
40 +DESCRIPTION="DLNA/UPnP-AV compliant media server"
41 +HOMEPAGE="http://minidlna.sourceforge.net/"
42 +SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.gz
43 + https://dev.gentoo.org/~xmw/${PN}-gentoo-artwork.patch.xz"
44 +
45 +LICENSE="BSD GPL-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~x86"
48 +IUSE="netgear readynas"
49 +
50 +RDEPEND="dev-db/sqlite:3
51 + media-libs/flac
52 + media-libs/libexif
53 + media-libs/libid3tag
54 + media-libs/libogg
55 + media-libs/libvorbis
56 + virtual/ffmpeg
57 + virtual/jpeg:0"
58 +DEPEND="${RDEPEND}
59 + virtual/pkgconfig"
60 +
61 +CONFIG_CHECK="~INOTIFY_USER"
62 +
63 +pkg_setup() {
64 + local my_is_new="yes"
65 + [ -d "${EPREFIX}"/var/lib/${PN} ] && my_is_new="no"
66 + enewgroup ${PN}
67 + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
68 + if [ -d "${EPREFIX}"/var/lib/${PN} ] && [ "${my_is_new}" == "yes" ] ; then
69 + # created by above enewuser command w/ wrong group and permissions
70 + chown ${PN}:${PN} "${EPREFIX}"/var/lib/${PN} || die
71 + chmod 0750 "${EPREFIX}"/var/lib/${PN} || die
72 + # if user already exists, but /var/lib/minidlna is missing
73 + # rely on ${D}/var/lib/minidlna created in src_install
74 + fi
75 +
76 + linux-info_pkg_setup
77 +}
78 +
79 +src_prepare() {
80 + sed -e "/log_dir/s:/var/log:/var/log/${PN}:" \
81 + -e "/db_dir/s:/var/cache/:/var/lib/:" \
82 + -i ${PN}.conf || die
83 +
84 + epatch "${WORKDIR}"/${PN}-gentoo-artwork.patch
85 +
86 + epatch_user
87 +}
88 +
89 +src_configure() {
90 + econf \
91 + --disable-silent-rules \
92 + --with-db-path=/var/lib/${PN} \
93 + --with-log-path=/var/log/${PN} \
94 + --enable-tivo \
95 + $(use_enable netgear) \
96 + $(use_enable readynas)
97 +}
98 +
99 +src_install() {
100 + default
101 +
102 + #bug 536532
103 + dosym /usr/sbin/${PN}d /usr/bin/${PN}
104 +
105 + insinto /etc
106 + doins ${PN}.conf
107 +
108 + newconfd "${FILESDIR}"/${PN}-1.0.25.confd ${PN}
109 + newinitd "${FILESDIR}"/${PN}-1.1.2.initd ${PN}
110 + systemd_newunit "${FILESDIR}"/${PN}-1.1.2.service ${PN}.service
111 + echo "d /run/${PN} 0755 ${PN} ${PN} -" > "${T}"/${PN}.conf
112 + systemd_dotmpfilesd "${T}"/${PN}.conf
113 +
114 + dodir /var/{lib,log}/${PN}
115 + fowners ${PN}:${PN} /var/{lib,log}/${PN}
116 + fperms 0750 /var/{lib,log}/${PN}
117 +
118 + dodoc AUTHORS NEWS README TODO
119 + doman ${PN}d.8 ${PN}.conf.5
120 +}
121 +
122 +pkg_postinst() {
123 + elog "minidlna now runs as minidlna:minidlna (bug 426726),"
124 + elog "logfile is moved to /var/log/minidlna/minidlna.log,"
125 + elog "cache is moved to /var/lib/minidlna."
126 + elog "Please edit /etc/conf.d/${PN} and file ownerships to suit your needs."
127 +}