2014-07-14 22:52:47 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# upmpdcli
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-07-01 19:36:44 +02:00
|
|
|
UPMPDCLI_VERSION = 1.2.15
|
2014-07-14 22:52:47 +02:00
|
|
|
UPMPDCLI_SITE = http://www.lesbonscomptes.com/upmpdcli/downloads
|
2017-03-30 15:43:32 +02:00
|
|
|
UPMPDCLI_LICENSE = GPL-2.0+
|
2014-07-14 22:52:47 +02:00
|
|
|
UPMPDCLI_LICENSE_FILES = COPYING
|
2016-09-15 08:40:00 +02:00
|
|
|
UPMPDCLI_DEPENDENCIES = host-pkgconf libmpdclient libupnpp libmicrohttpd jsoncpp
|
2014-07-14 22:52:47 +02:00
|
|
|
|
|
|
|
# Upmpdcli only runs if user upmpdcli exists
|
|
|
|
define UPMPDCLI_USERS
|
2017-03-24 09:47:43 +01:00
|
|
|
upmpdcli -1 upmpdcli -1 * - - audio Upmpdcli MPD UPnP Renderer Front-End
|
2014-07-14 22:52:47 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define UPMPDCLI_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 0755 package/upmpdcli/S99upmpdcli $(TARGET_DIR)/etc/init.d/S99upmpdcli
|
|
|
|
endef
|
|
|
|
|
2015-05-23 12:13:53 +02:00
|
|
|
define UPMPDCLI_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 $(@D)/systemd/upmpdcli.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/upmpdcli.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
2015-07-05 16:08:46 +02:00
|
|
|
ln -sf ../../../../usr/lib/systemd/system/upmpdcli.service \
|
2015-05-23 12:13:53 +02:00
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/upmpdcli.service
|
|
|
|
endef
|
|
|
|
|
2014-07-14 22:52:47 +02:00
|
|
|
define UPMPDCLI_INSTALL_CONF_FILE
|
2016-02-19 09:01:11 +01:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/src/upmpdcli.conf-dist $(TARGET_DIR)/etc/upmpdcli.conf
|
2014-07-14 22:52:47 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
UPMPDCLI_POST_INSTALL_TARGET_HOOKS += UPMPDCLI_INSTALL_CONF_FILE
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|