media-sound/upmpdcli: Bump to 1.4.0
authorErik Mackdanz <stasibear@gentoo.org>
Sat, 9 Feb 2019 15:52:39 +0000 (09:52 -0600)
committerErik Mackdanz <stasibear@gentoo.org>
Sat, 9 Feb 2019 15:52:39 +0000 (09:52 -0600)
Closes: https://bugs.gentoo.org/670130
Closes: https://bugs.gentoo.org/673552
Signed-off-by: Erik Mackdanz <stasibear@gentoo.org>
Package-Manager: Portage-2.3.59, Repoman-2.3.12

media-sound/upmpdcli/Manifest
media-sound/upmpdcli/files/upmpdcli.initd [new file with mode: 0644]
media-sound/upmpdcli/upmpdcli-1.4.0.ebuild [new file with mode: 0644]

index c578441a665dcd125fc8b2e9a2e333d0ee8d56f6..c879d05a9cf7f982c815284fed28c294349cc180 100644 (file)
@@ -1 +1,2 @@
 DIST upmpdcli-1.3.6.tar.gz 515712 BLAKE2B 6de6a3af2e474a3f8d12865e3cdd420f31955e88a0eb1c8ffd019809666c4c613631d642b34bb5fa473fceb7207613d90584fdf856b6a49899f9c2aa31b2b471 SHA512 280b02116786c86fd5f1e472fa9070b3a6d846acd670e36d476b150d4a3e91e5a6d1546b7053b1f35a2e0de553c8517640934af010d371d3cbed248592be502d
+DIST upmpdcli-1.4.0.tar.gz 469357 BLAKE2B edd46e86f367ff2f88346cfb4cb249dae4463095553bb220fbd9a4078315044ec7591f58c30a0f20840a9f217230e46bc3b3569989a0ae2c05a44aa140c234c4 SHA512 1ed1f0a89a02610d70fb9e380dcbdbd8d636bc4a0964a16d27bd7c04126674f7f14e50e5fe521a430a06ea04ecef1275c7ad5f1c276daae1c285b73cceba9dec
diff --git a/media-sound/upmpdcli/files/upmpdcli.initd b/media-sound/upmpdcli/files/upmpdcli.initd
new file mode 100644 (file)
index 0000000..de11d27
--- /dev/null
@@ -0,0 +1,14 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+description="UPnP Media Renderer front-end for MPD, the Music Player Daemon"
+pidfile=/var/run/upmpdcli.pid
+command=/usr/bin/upmpdcli
+config="${config:-/etc/upmpdcli.conf}"
+command_args="-c ${config}"
+command_args_background="-D"
+
+depend() {
+    need localmount
+}
diff --git a/media-sound/upmpdcli/upmpdcli-1.4.0.ebuild b/media-sound/upmpdcli/upmpdcli-1.4.0.ebuild
new file mode 100644 (file)
index 0000000..f1851fb
--- /dev/null
@@ -0,0 +1,51 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd user
+
+DESCRIPTION="UPnP Media Renderer front-end for MPD, the Music Player Daemon"
+HOMEPAGE="https://www.lesbonscomptes.com/upmpdcli/index.html"
+LICENSE="GPL-2"
+
+SRC_URI="https://www.lesbonscomptes.com/upmpdcli/downloads/${P}.tar.gz"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="thirdparty"
+
+DEPEND="
+       dev-libs/jsoncpp
+       media-libs/libmpdclient
+       net-libs/libmicrohttpd
+       >=net-libs/libupnpp-0.17.0
+"
+RDEPEND="
+       ${DEPEND}
+       thirdparty? ( dev-python/requests )
+"
+
+pkg_setup() {
+       enewuser "${PN}"
+       enewgroup "${PN}"
+}
+
+src_install() {
+       default
+       newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+       newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+       systemd_dounit systemd/upmpdcli.service
+}
+
+pkg_postinst() {
+       einfo
+       einfo "This package no longer assumes that upmpdcli is driving an"
+       einfo "mpdinstance on the same host (https://bugs.gentoo.org/670130)."
+       einfo "Probably it is though, so be sure your mpd is built with"
+       einfo "USE=curl."
+       einfo
+       einfo "Consider installing media-sound/sc2mpd.  If upmpdcli"
+       einfo "detects sc2mpd at run-time, capabilities are added"
+       einfo "including internet radio support.  See upstream docs"
+       einfo "for more information."
+}