Ticket #10207: xupnpd.patch

File xupnpd.patch, 3.4 KB (added by Igor Drach <laigor@…>, 6 years ago)

svn 302

  • multimedia/xupnpd/files/xupnpd.init

     
     1#!/bin/sh /etc/rc.common 
     2# Sample init script reading its 
     3# configuration from /etc/config/package 
     4START=99 
     5STOP=99 
     6 
     7start() { 
     8        XUPNPDROOTDIR=/usr/share/xupnpd /usr/bin/xupnpd 
     9} 
     10 
     11stop () { 
     12        killall xupnpd 
     13} 
  • multimedia/xupnpd/Makefile

    Property changes on: multimedia/xupnpd/files/xupnpd.init
    ___________________________________________________________________
    Added: svn:executable
       + *
    
     
     1# 
     2# Copyright (C) 2011 OpenWrt.org 
     3# 
     4# This is free software, licensed under the GNU General Public License v2. 
     5# See /LICENSE for more information. 
     6# 
     7 
     8include $(TOPDIR)/rules.mk 
     9 
     10PKG_NAME:=xupnpd 
     11PKG_REV:=302 
     12PKG_VERSION:=$(PKG_REV) 
     13PKG_RELEASE:=5 
     14 
     15PKG_SOURCE_PROTO:=svn 
     16PKG_SOURCE_VERSION:=$(PKG_REV) 
     17PKG_SOURCE_SUBDIR:=xupnpd-$(PKG_VERSION) 
     18PKG_SOURCE_URL:=http://tsdemuxer.googlecode.com/svn/trunk/xupnpd/src/ 
     19PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz 
     20 
     21 
     22include $(INCLUDE_DIR)/package.mk 
     23 
     24#LUA_FLAGS:=-I$(STAGING_DIR)/usr/include/luajit-2.0 -lluajit 
     25LUA_FLAGS:=-llua 
     26 
     27define Build/Compile 
     28        (cd $(PKG_BUILD_DIR); $(TARGET_CC) -v $(LUA_FLAGS) $(TARGET_CFLAGS) -fno-exceptions -fno-rtti -DWITH_URANDOM $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) -lm -ldl -lcrypt -o xupnpd *.c *.cpp) 
     29endef 
     30 
     31define Package/xupnpd 
     32  SECTION:=multimedia 
     33  CATEGORY:=Multimedia 
     34  DEPENDS:=+liblua 
     35  TITLE:=eXtensible UPnP agent 
     36  URL:=http://xupnpd.org/ 
     37endef 
     38 
     39define Package/xupnpd/conffiles 
     40/usr/share/xupnpd/xupnpd.lua 
     41/usr/share/xupnpd/config 
     42/usr/share/xupnpd/playlists 
     43endef 
     44 
     45define Package/xupnpd/description 
     46xupnpd - eXtensible UPnP agent 
     47This program is a light DLNA Media Server which provides ContentDirectory:1 service for sharing IPTV unicast streams over local area network (with udpxy for multicast to HTTP unicast conversion). 
     48The program shares UTF8-encoded M3U playlists with links over local area network as content of the directory. 
     49You can watch HDTV broadcasts (multicast or unicast) and listen Internet Radio in IP network without transcoding and PC. 
     50endef 
     51 
     52define Package/xupnpd/install 
     53        $(INSTALL_DIR) $(1)/usr/bin 
     54        $(INSTALL_BIN) $(PKG_BUILD_DIR)/xupnpd $(1)/usr/bin 
     55        $(INSTALL_DIR) $(1)/etc/init.d 
     56        $(INSTALL_BIN) ./files/xupnpd.init $(1)/etc/init.d/xupnpd 
     57        $(INSTALL_DIR) $(1)/usr/share/xupnpd 
     58        $(CP) $(PKG_BUILD_DIR)/*.lua $(1)/usr/share/xupnpd 
     59        $(INSTALL_DIR) $(1)/usr/share/xupnpd/ui 
     60        $(CP) $(PKG_BUILD_DIR)/ui/* $(1)/usr/share/xupnpd/ui 
     61        $(INSTALL_DIR) $(1)/usr/share/xupnpd/www 
     62        $(CP) $(PKG_BUILD_DIR)/www/* $(1)/usr/share/xupnpd/www 
     63        $(INSTALL_DIR) $(1)/usr/share/xupnpd/playlists 
     64#       $(CP) $(PKG_BUILD_DIR)/playlists/* $(1)/usr/share/xupnpd/playlists 
     65        $(INSTALL_DIR) $(1)/usr/share/xupnpd/plugins 
     66        $(CP) $(PKG_BUILD_DIR)/plugins/* $(1)/usr/share/xupnpd/plugins 
     67        $(INSTALL_DIR) $(1)/usr/share/xupnpd/config 
     68        $(INSTALL_DIR) $(1)/etc/xupnpd 
     69        (cd $(1)/etc/xupnpd; ln -s ../../usr/share/xupnpd/config ./; ln -s ../../usr/share/xupnpd/xupnpd.lua ./) 
     70        $(INSTALL_DIR) $(1)/usr/share/xupnpd/localmedia 
     71endef 
     72 
     73$(eval $(call BuildPackage,xupnpd))