diff options
author | Stuart Shelton <stuart@shelton.me> | 2014-07-15 16:32:23 +0100 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2014-07-15 16:32:23 +0100 |
commit | 632fac10cd99fea95774b5d835f6fb5b34f52ec9 (patch) | |
tree | 702c569ee6e0e090b477815538899fd5e6762231 /net-misc/minidlna | |
parent | Add sys-apps/kmod-18, sys-apps/kmod-18-r1 (diff) | |
download | srcshelton-632fac10cd99fea95774b5d835f6fb5b34f52ec9.tar.gz srcshelton-632fac10cd99fea95774b5d835f6fb5b34f52ec9.tar.bz2 srcshelton-632fac10cd99fea95774b5d835f6fb5b34f52ec9.zip |
Add net-misc/minidlna-1.1.3
Diffstat (limited to 'net-misc/minidlna')
-rw-r--r-- | net-misc/minidlna/Manifest | 2 | ||||
-rw-r--r-- | net-misc/minidlna/minidlna-1.1.3.ebuild | 89 |
2 files changed, 91 insertions, 0 deletions
diff --git a/net-misc/minidlna/Manifest b/net-misc/minidlna/Manifest index ec729963..f71bc31b 100644 --- a/net-misc/minidlna/Manifest +++ b/net-misc/minidlna/Manifest @@ -5,5 +5,7 @@ AUX minidlna-1.1.2.initd 1234 SHA256 11c8e98776a6b13198c868f78b52814ea0d6a1be02f AUX minidlna-1.1.2.service 291 SHA256 ae2bef5cb3a888ce6530136551d2b9f53ceecae3b227cbd02579974ef9ce710c SHA512 12bda630d52b6793067548e97f51e9a9d7722ec78f86f8e06d3968b702f22d7032875bd5265ed49639b58653300a729172d38a74cf1d59ef2ba085a1eb9274b1 WHIRLPOOL fac2513cb219a79fffa52fc37fda88af01bad96a456fb96fb69720058e8243e0de0845148a7fdd189d9bc81e1849661e35649d68273622ec75e555b3432fb7f1 DIST minidlna-1.1.0.tar.gz 423555 SHA256 c2ef2ebe4311d08a60a87ec0c86fbe5e7f4fd25b947841f1d71b0508c60a90e2 SHA512 9240d857fc3927c06183c04c4d657c1b2b0596f63dbc549f331b52032698349e82244870f2ebf6f8bc8bf0ff5f2ff88df69b53d280f5e5f9b618a5de58ac6f57 WHIRLPOOL 6c59fa9f4e05fcd0ca2a7fb23058edb5f86d32a93fbae6791f9224e18bba742997fe140082fadcd95b993041db3ef8c597e820d6fd21b3c873b6ac9db6f8688e DIST minidlna-1.1.2.tar.gz 671295 SHA256 97e2e9141c1190d76ad97f0da083874bccf9f9590841be9eb7668bcf695b7204 SHA512 bfaf99dc5a59635c4cd10bcd9d2668736318b7840d97761fce96cfe78e00bb8e06ab23945126ba8d06d43fb99855ece7d2cd4f96c2c25a5b4f4a2c3697339e26 WHIRLPOOL c5b03d20992439e38b87eb160197f1ba5eff74bc133a280c01597ce06bd574dab6571daf5605b65b971dedd1a4d6af98423f6986b9b54d7168ad3a467e4fb58c +DIST minidlna-1.1.3.tar.gz 481789 SHA256 ed42d5cadf9488a95a0107341918879ef8ce4c650e19337688c46cdcd484bc4e SHA512 3b3c28ed17325a1d2c461c51c7958fcc7fd02b71332a952e06f0ad8bca04f8ff58a74bb3d221ad432282c7289953bd31c213c2703008fb36037c39a743001aa9 WHIRLPOOL 4ac0a4344feb026d483562d5711f3f3ce4f70d68d9b043ec54e7d3667c7b38e2d1b7df2cbb2a5c9d05d4afc29182fe65c95389530b187000e496902734bb498e EBUILD minidlna-1.1.0-r3.ebuild 2345 SHA256 b740e8c0da7b5a6ddd782fe7df4bd4fd53ac2d4546d079c8fc015c4c7ca93259 SHA512 726d89090d09293257d9e88995ea7a8f1eaae87dd7341f3ac32cd2e04358472c425dc717f4e4cddc51ee35d625830f132357b535055f0774a067180b20aae7f6 WHIRLPOOL 026de15e5a300ae7ecb10b75ffda26d6578c0bc09575493cce19927bd041baa5da91a96fb4d1048769585d480d860591926844efcdcd0adbedcd1ef70d4acfad EBUILD minidlna-1.1.2.ebuild 2347 SHA256 3d323d1b4d785a6ed0b92a7f9b6dd85b1e65f2ede4d09d21bf6ebfaea3f4f362 SHA512 6ea012f60bca76e960cbd42e9f5b2340f3cebf2946b611359d561b2abdba1ab54be25d33c66b6d7fbc54ba1eb2e4b0a1cd1623d77c342ba88d3ad3e58799cec1 WHIRLPOOL d39eb31a91f7179a7d270f9b062d6e6f64eba3b42f39faf7d69071f1600c82821426b8930f4883055d972484ea15c00b009539a15b2352a84293c7c28dbd8c7c +EBUILD minidlna-1.1.3.ebuild 2355 SHA256 953f345114c95d23699510c3a9f9c2781061a586f1f25e0eba3d5a29868bb199 SHA512 4798fca151c32a5c3d75e13a61025a8babf34556d72c33946e5676914edc9329b2fdbfd154ef7c3d6617a809870d4e8b8f4be2fb0ffff3d9566b81665c6eaa9b WHIRLPOOL d354a6372cef1b1daf0cf4e6c08ddc783fddeb7e30008b546b96b02d4ae151b44cb47bb9ee7cf4a75d670c5d05f8130bff321eb4ca999af5003db02118b9717b diff --git a/net-misc/minidlna/minidlna-1.1.3.ebuild b/net-misc/minidlna/minidlna-1.1.3.ebuild new file mode 100644 index 00000000..a9310dd6 --- /dev/null +++ b/net-misc/minidlna/minidlna-1.1.3.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/minidlna-1.1.3.ebuild,v 1.1 2014/07/13 14:58:17 xmw Exp $ + +EAPI=4 + +inherit eutils systemd toolchain-funcs user + +DESCRIPTION="DLNA/UPnP-AV compliant media server" +HOMEPAGE="http://minidlna.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}.tar.gz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="netgear readynas systemd" + +RDEPEND="dev-db/sqlite + media-libs/flac + media-libs/libexif + media-libs/libid3tag + media-libs/libogg + media-libs/libvorbis + virtual/ffmpeg + virtual/jpeg" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +pkg_setup() { + local my_is_new="yes" + [ -d "${EPREFIX}"/var/lib/${PN} ] && my_is_new="no" + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} + if [ -d "${EPREFIX}"/var/lib/${PN} ] && [ "${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 + # if user already exists, but /var/lib/minidlna is missing + # rely on ${D}/var/lib/minidlna created in src_install + fi +} + +src_prepare() { + sed -e "/log_dir/s:/var/log:/var/log/${PN}:" \ + -e "/db_dir/s:/var/cache/:/var/lib/:" \ + -i ${PN}.conf || die + + epatch_user +} + +src_configure() { + econf \ + --disable-silent-rules \ + --with-db-path=/var/lib/${PN} \ + --with-log-path=/var/log/${PN} \ + --enable-tivo \ + $(use_enable netgear) \ + $(use_enable readynas) +} + +src_install() { + default + + insinto /etc + doins ${PN}.conf + + newconfd "${FILESDIR}"/${PN}-1.0.25.confd ${PN} + newinitd "${FILESDIR}"/${PN}-1.1.2.initd ${PN} + + if use systemd; then + systemd_newunit "${FILESDIR}"/${PN}-1.1.2.service ${PN}.service + echo "d /var/run/${PN} 0755 ${PN} ${PN} -" > "${T}"/${PN}.conf + systemd_dotmpfilesd "${T}"/${PN}.conf + fi + + dodir /var/{lib,log}/${PN} + fowners ${PN}:${PN} /var/{lib,log}/${PN} + fperms 0750 /var/{lib,log}/${PN} + + dodoc AUTHORS NEWS README TODO + doman ${PN}d.8 ${PN}.conf.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." +} |