Gentoo Archives: gentoo-commits

From: "Michael Weber (xmw)" <xmw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/minidlna: minidlna-1.1.4.ebuild ChangeLog minidlna-1.1.0-r3.ebuild minidlna-1.1.0-r2.ebuild minidlna-1.1.1.ebuild minidlna-1.1.2.ebuild
Date: Fri, 27 Feb 2015 11:50:39
Message-Id: 20150227115034.C61D112A93@oystercatcher.gentoo.org
1 xmw 15/02/27 11:50:34
2
3 Modified: ChangeLog
4 Added: minidlna-1.1.4.ebuild
5 Removed: minidlna-1.1.0-r3.ebuild minidlna-1.1.0-r2.ebuild
6 minidlna-1.1.1.ebuild minidlna-1.1.2.ebuild
7 Log:
8 Version bump with gentoo logo (bug 522112, thanks BT, Steve Dibb, Perfect Gentleman and baru reddy).
9
10 (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
11
12 Revision Changes Path
13 1.44 net-misc/minidlna/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/ChangeLog?rev=1.44&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/ChangeLog?rev=1.44&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/ChangeLog?r1=1.43&r2=1.44
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/net-misc/minidlna/ChangeLog,v
22 retrieving revision 1.43
23 retrieving revision 1.44
24 diff -u -r1.43 -r1.44
25 --- ChangeLog 30 Oct 2014 10:01:45 -0000 1.43
26 +++ ChangeLog 27 Feb 2015 11:50:34 -0000 1.44
27 @@ -1,6 +1,14 @@
28 # ChangeLog for net-misc/minidlna
29 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/ChangeLog,v 1.43 2014/10/30 10:01:45 ago Exp $
31 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
32 +# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/ChangeLog,v 1.44 2015/02/27 11:50:34 xmw Exp $
33 +
34 +*minidlna-1.1.4 (27 Feb 2015)
35 +
36 + 27 Feb 2015; Michael Weber <xmw@g.o> +minidlna-1.1.4.ebuild,
37 + -minidlna-1.1.0-r2.ebuild, -minidlna-1.1.0-r3.ebuild, -minidlna-1.1.1.ebuild,
38 + -minidlna-1.1.2.ebuild:
39 + Version bump with gentoo logo (bug 522112, thanks BT, Steve Dibb, Perfect
40 + Gentleman and baru reddy).
41
42 30 Oct 2014; Agostino Sarubbo <ago@g.o> minidlna-1.1.3.ebuild:
43 Stable for x86, wrt bug #524644
44
45
46
47 1.1 net-misc/minidlna/minidlna-1.1.4.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/minidlna-1.1.4.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/minidlna-1.1.4.ebuild?rev=1.1&content-type=text/plain
51
52 Index: minidlna-1.1.4.ebuild
53 ===================================================================
54 # Copyright 1999-2015 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/minidlna-1.1.4.ebuild,v 1.1 2015/02/27 11:50:34 xmw Exp $
57
58 EAPI=5
59
60 inherit eutils linux-info systemd toolchain-funcs user
61
62 DESCRIPTION="DLNA/UPnP-AV compliant media server"
63 HOMEPAGE="http://minidlna.sourceforge.net/"
64 SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.gz
65 http://dev.gentoo.org/~xmw/${PN}-gentoo-artwork.patch.xz"
66
67 LICENSE="BSD GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~arm ~x86"
70 IUSE="netgear readynas"
71
72 RDEPEND="dev-db/sqlite:3
73 media-libs/flac
74 media-libs/libexif
75 media-libs/libid3tag
76 media-libs/libogg
77 media-libs/libvorbis
78 virtual/ffmpeg
79 virtual/jpeg:0"
80 DEPEND="${RDEPEND}
81 virtual/pkgconfig"
82
83 CONFIG_CHECK="~INOTIFY_USER"
84
85 pkg_setup() {
86 local my_is_new="yes"
87 [ -d "${EPREFIX}"/var/lib/${PN} ] && my_is_new="no"
88 enewgroup ${PN}
89 enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
90 if [ -d "${EPREFIX}"/var/lib/${PN} ] && [ "${my_is_new}" == "yes" ] ; then
91 # created by above enewuser command w/ wrong group and permissions
92 chown ${PN}:${PN} "${EPREFIX}"/var/lib/${PN} || die
93 chmod 0750 "${EPREFIX}"/var/lib/${PN} || die
94 # if user already exists, but /var/lib/minidlna is missing
95 # rely on ${D}/var/lib/minidlna created in src_install
96 fi
97
98 linux-info_pkg_setup
99 }
100
101 src_prepare() {
102 sed -e "/log_dir/s:/var/log:/var/log/${PN}:" \
103 -e "/db_dir/s:/var/cache/:/var/lib/:" \
104 -i ${PN}.conf || die
105
106 epatch "${WORKDIR}"/${PN}-gentoo-artwork.patch
107
108 epatch_user
109 }
110
111 src_configure() {
112 econf \
113 --disable-silent-rules \
114 --with-db-path=/var/lib/${PN} \
115 --with-log-path=/var/log/${PN} \
116 --enable-tivo \
117 $(use_enable netgear) \
118 $(use_enable readynas)
119 }
120
121 src_install() {
122 default
123
124 insinto /etc
125 doins ${PN}.conf
126
127 newconfd "${FILESDIR}"/${PN}-1.0.25.confd ${PN}
128 newinitd "${FILESDIR}"/${PN}-1.1.2.initd ${PN}
129 systemd_newunit "${FILESDIR}"/${PN}-1.1.2.service ${PN}.service
130 echo "d /run/${PN} 0755 ${PN} ${PN} -" > "${T}"/${PN}.conf
131 systemd_dotmpfilesd "${T}"/${PN}.conf
132
133 dodir /var/{lib,log}/${PN}
134 fowners ${PN}:${PN} /var/{lib,log}/${PN}
135 fperms 0750 /var/{lib,log}/${PN}
136
137 dodoc AUTHORS NEWS README TODO
138 doman ${PN}d.8 ${PN}.conf.5
139 }
140
141 pkg_postinst() {
142 elog "minidlna now runs as minidlna:minidlna (bug 426726),"
143 elog "logfile is moved to /var/log/minidlna/minidlna.log,"
144 elog "cache is moved to /var/lib/minidlna."
145 elog "Please edit /etc/conf.d/${PN} and file ownerships to suit your needs."
146 }