From f769af6a69ab16b6c69b16f3ca201725e51999e3 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Wed, 10 Dec 2014 01:36:01 +0200 Subject: [PATCH] upmpdcli: Add upmpdcli-0.9.0 to the packages repository upmpdcli is a DLNA renderer that forwards the commands it receives to an MPD server. Signed-off-by: Petko Bordjukov --- multimedia/upmpdcli/Makefile | 50 +++++++++++++++++++++++++ multimedia/upmpdcli/files/upmpdcli.init | 18 +++++++++ 2 files changed, 68 insertions(+) create mode 100644 multimedia/upmpdcli/Makefile create mode 100644 multimedia/upmpdcli/files/upmpdcli.init diff --git a/multimedia/upmpdcli/Makefile b/multimedia/upmpdcli/Makefile new file mode 100644 index 000000000..3985f5784 --- /dev/null +++ b/multimedia/upmpdcli/Makefile @@ -0,0 +1,50 @@ +# +# Copyright (C) 2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=upmpdcli +PKG_VERSION:=0.9.0 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.lesbonscomptes.com/upmpdcli/downloads +PKG_MD5SUM:=0e7b86037f19ea3a08067409af6f6902 +PKG_MAINTAINER:=Petko Bordjukov +PKG_LICENSE:=GPL-2.0 +PKG_LICENSE_FILES:=COPYING + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/upmpdcli + SECTION:=multimedia + CATEGORY:=Multimedia + URL:=http://www.lesbonscomptes.com/upmpdcli + DEPENDS+= +libupnpp +libmpdclient + TITLE:=A UPnP front-end to MPD, the Music Player Daemon + USERID:=upmpdcli=89:upmpdcli=89 +endef + +define Package/upmpdcli/description +upmpdcli implements an UPnP Media Renderer, using MPD to perform the real work. +endef + +define Package/upmpdcli/install + $(INSTALL_DIR) $(1)/etc + $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/upmpdcli.conf $(1)/etc/ + $(INSTALL_DIR) $(1)/usr/bin + $(CP) $(PKG_INSTALL_DIR)/usr/bin/upmpdcli $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/usr/share + $(CP) $(PKG_INSTALL_DIR)/usr/share/upmpdcli $(1)/usr/share/ + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/upmpdcli.init $(1)/etc/init.d/upmpdcli +endef + +$(eval $(call BuildPackage,upmpdcli)) diff --git a/multimedia/upmpdcli/files/upmpdcli.init b/multimedia/upmpdcli/files/upmpdcli.init new file mode 100644 index 000000000..b91e6f925 --- /dev/null +++ b/multimedia/upmpdcli/files/upmpdcli.init @@ -0,0 +1,18 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2014 OpenWrt.org + +START=95 + +create_user() { + group_exists upmpdcli || group_add upmpdcli 89 + user_exists upmpdcli || user_add upmpdcli 89 +} + +start() { + create_user + service_start /usr/bin/upmpdcli -D +} + +stop() { + service_stop /usr/bin/upmpdcli +}