summaryrefslogtreecommitdiffstats
path: root/package/upmpdcli/upmpdcli.mk
diff options
context:
space:
mode:
authorJoerg Krause <jkrause@posteo.de>2014-07-14 22:52:47 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-16 20:31:27 +0200
commit603814465271213ecb1885232ec8e8d9cbd666f2 (patch)
tree0da6083b9c7095889161ca42b6e8d43b65322795 /package/upmpdcli/upmpdcli.mk
parent3a0229c3c381b6b1aef120c9c77d9fdbb28ea253 (diff)
downloadbuildroot-603814465271213ecb1885232ec8e8d9cbd666f2.tar.gz
buildroot-603814465271213ecb1885232ec8e8d9cbd666f2.zip
upmpdcli: new package
[Thomas: - add package to package/Config.in - add missing dependencies on thread and largefile, inherited from libupnp. Noticed by Yann E. Morin. - add installation of default configuration file. Noticed by Yann E. Morin. - fix the license, it's not GPLv2, but GPLv2+. - remove the colon in the user description, noticed by Yann E. Morin. - added a patch to fix build with uClibc. - fix the init script installation to use a full path as the target.] Signed-off-by: Joerg Krause <jkrause@posteo.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/upmpdcli/upmpdcli.mk')
-rw-r--r--package/upmpdcli/upmpdcli.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/upmpdcli/upmpdcli.mk b/package/upmpdcli/upmpdcli.mk
new file mode 100644
index 0000000000..3942d12834
--- /dev/null
+++ b/package/upmpdcli/upmpdcli.mk
@@ -0,0 +1,28 @@
+################################################################################
+#
+# upmpdcli
+#
+################################################################################
+
+UPMPDCLI_VERSION = 0.7.1
+UPMPDCLI_SITE = http://www.lesbonscomptes.com/upmpdcli/downloads
+UPMPDCLI_LICENSE = GPLv2+
+UPMPDCLI_LICENSE_FILES = COPYING
+UPMPDCLI_DEPENDENCIES = expat libupnp libmpdclient
+
+# Upmpdcli only runs if user upmpdcli exists
+define UPMPDCLI_USERS
+ upmpdcli -1 upmpdcli -1 * - - - Upmpdcli MPD UPnP Renderer Front-End
+endef
+
+define UPMPDCLI_INSTALL_INIT_SYSV
+ $(INSTALL) -D -m 0755 package/upmpdcli/S99upmpdcli $(TARGET_DIR)/etc/init.d/S99upmpdcli
+endef
+
+define UPMPDCLI_INSTALL_CONF_FILE
+ $(INSTALL) -D -m 0755 $(@D)/upmpd/upmpdcli.conf $(TARGET_DIR)/etc/upmpdcli.conf
+endef
+
+UPMPDCLI_POST_INSTALL_TARGET_HOOKS += UPMPDCLI_INSTALL_CONF_FILE
+
+$(eval $(autotools-package))
OpenPOWER on IntegriCloud