Browse Source

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 <bordjukov@gmail.com>
Petko Bordjukov 10 years ago
parent
commit
f769af6a69
2 changed files with 68 additions and 0 deletions
  1. 50
    0
      multimedia/upmpdcli/Makefile
  2. 18
    0
      multimedia/upmpdcli/files/upmpdcli.init

+ 50
- 0
multimedia/upmpdcli/Makefile View File

@@ -0,0 +1,50 @@
1
+#
2
+# Copyright (C) 2014 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+#
7
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=upmpdcli
11
+PKG_VERSION:=0.9.0
12
+PKG_RELEASE:=1
13
+
14
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16
+PKG_SOURCE_URL:=http://www.lesbonscomptes.com/upmpdcli/downloads
17
+PKG_MD5SUM:=0e7b86037f19ea3a08067409af6f6902
18
+PKG_MAINTAINER:=Petko Bordjukov <bordjukov@gmail.com>
19
+PKG_LICENSE:=GPL-2.0
20
+PKG_LICENSE_FILES:=COPYING
21
+
22
+PKG_INSTALL:=1
23
+
24
+include $(INCLUDE_DIR)/package.mk
25
+
26
+define Package/upmpdcli
27
+  SECTION:=multimedia
28
+  CATEGORY:=Multimedia
29
+  URL:=http://www.lesbonscomptes.com/upmpdcli
30
+  DEPENDS+= +libupnpp +libmpdclient
31
+  TITLE:=A UPnP front-end to MPD, the Music Player Daemon
32
+  USERID:=upmpdcli=89:upmpdcli=89
33
+endef
34
+
35
+define Package/upmpdcli/description
36
+upmpdcli implements an UPnP Media Renderer, using MPD to perform the real work.
37
+endef
38
+
39
+define Package/upmpdcli/install
40
+       $(INSTALL_DIR) $(1)/etc
41
+       $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/upmpdcli.conf $(1)/etc/
42
+       $(INSTALL_DIR) $(1)/usr/bin
43
+       $(CP) $(PKG_INSTALL_DIR)/usr/bin/upmpdcli $(1)/usr/bin/
44
+       $(INSTALL_DIR) $(1)/usr/share
45
+       $(CP) $(PKG_INSTALL_DIR)/usr/share/upmpdcli $(1)/usr/share/
46
+       $(INSTALL_DIR) $(1)/etc/init.d
47
+       $(INSTALL_BIN) ./files/upmpdcli.init $(1)/etc/init.d/upmpdcli
48
+endef
49
+
50
+$(eval $(call BuildPackage,upmpdcli))

+ 18
- 0
multimedia/upmpdcli/files/upmpdcli.init View File

@@ -0,0 +1,18 @@
1
+#!/bin/sh /etc/rc.common
2
+# Copyright (C) 2014 OpenWrt.org
3
+
4
+START=95
5
+
6
+create_user() {
7
+       group_exists upmpdcli || group_add upmpdcli 89
8
+       user_exists upmpdcli || user_add upmpdcli 89
9
+}
10
+
11
+start() {
12
+       create_user
13
+       service_start /usr/bin/upmpdcli -D
14
+}
15
+
16
+stop() {
17
+       service_stop /usr/bin/upmpdcli
18
+}