2014-06-10 22:33:55 +00:00
#
2017-12-31 18:40:43 +00:00
# Copyright (C) 2013-2017 OpenWrt.org
2014-06-10 22:33:55 +00:00
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := xupnpd
2018-11-26 02:46:04 +00:00
PKG_REV := e4e542d9b6d0043d470fda283e2cd325bbb91950
PKG_VERSION := 2018-11-20
2023-05-17 12:41:47 +00:00
PKG_RELEASE := 2
2014-06-10 22:33:55 +00:00
2018-10-11 11:48:40 +00:00
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/clark15b/xupnpd/tar.gz/$( PKG_REV) ?
2018-11-26 02:46:04 +00:00
PKG_HASH := 9177b7d5615172fe64f1b6120e5239c0b818ba4bff1f26916fe39fb69eefee4f
2018-10-11 11:48:40 +00:00
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( PKG_REV)
2016-05-29 06:43:39 +00:00
PKG_LICENSE := GPLv2
PKG_LICENSE_FILES := LICENSE
2014-06-10 22:33:55 +00:00
PKG_MAINTAINER := Álvaro Fernández Rojas <noltari@gmail.com>
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
2017-12-31 18:40:43 +00:00
LUA_FLAGS := -llua -lssl -lcrypto
2014-06-10 22:33:55 +00:00
2023-05-17 12:41:47 +00:00
i f n e q ( $( CONFIG_USE_MUSL ) , )
TARGET_CFLAGS += -D_LARGEFILE64_SOURCE
e n d i f
2014-06-10 22:33:55 +00:00
d e f i n e B u i l d / C o m p i l e
2016-05-29 06:43:39 +00:00
( cd $( PKG_BUILD_DIR) /src; $( TARGET_CC) -v $( LUA_FLAGS) $( TARGET_CFLAGS) -fno-exceptions -fno-rtti -DWITH_URANDOM $( TARGET_CPPFLAGS) $( TARGET_LDFLAGS) -lm -ldl -lcrypt -o xupnpd *.c *.cpp)
2014-06-10 22:33:55 +00:00
e n d e f
d e f i n e P a c k a g e / x u p n p d
SECTION:= multimedia
CATEGORY:= Multimedia
2017-12-31 18:40:43 +00:00
DEPENDS:= +liblua +libopenssl
2014-06-10 22:33:55 +00:00
TITLE:= eXtensible UPnP agent
URL:= http://xupnpd.org/
e n d e f
d e f i n e P a c k a g e / x u p n p d / c o n f f i l e s
/ u s r / s h a r e / x u p n p d / x u p n p d . l u a
/ u s r / s h a r e / x u p n p d / c o n f i g
/ u s r / s h a r e / x u p n p d / p l a y l i s t s
e n d e f
d e f i n e P a c k a g e / x u p n p d / d e s c r i p t i o n
x u p n p d - e X t e n s i b l e U P n P a g e n t
This 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 ).
T h e p r o g r a m s h a r e s U T F 8 - e n c o d e d M 3 U p l a y l i s t s w i t h l i n k s o v e r l o c a l a r e a n e t w o r k a s c o n t e n t o f t h e d i r e c t o r y .
Y o u c a n w a t c h H D T V b r o a d c a s t s ( m u l t i c a s t o r u n i c a s t ) a n d l i s t e n I n t e r n e t R a d i o i n I P n e t w o r k w i t h o u t t r a n s c o d i n g a n d P C .
e n d e f
d e f i n e P a c k a g e / x u p n p d / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
2016-05-29 06:43:39 +00:00
$( INSTALL_BIN) $( PKG_BUILD_DIR) /src/xupnpd $( 1) /usr/bin
2014-06-10 22:33:55 +00:00
$( INSTALL_DIR) $( 1) /etc/init.d
$( INSTALL_BIN) ./files/xupnpd.init $( 1) /etc/init.d/xupnpd
$( INSTALL_DIR) $( 1) /usr/share/xupnpd
2016-05-29 06:43:39 +00:00
$( CP) $( PKG_BUILD_DIR) /src/*.lua $( 1) /usr/share/xupnpd
2014-06-10 22:33:55 +00:00
$( INSTALL_DIR) $( 1) /usr/share/xupnpd/ui
2016-05-29 06:43:39 +00:00
$( CP) $( PKG_BUILD_DIR) /src/ui/* $( 1) /usr/share/xupnpd/ui
2014-06-10 22:33:55 +00:00
$( INSTALL_DIR) $( 1) /usr/share/xupnpd/www
2016-05-29 06:43:39 +00:00
$( CP) $( PKG_BUILD_DIR) /src/www/* $( 1) /usr/share/xupnpd/www
2014-06-10 22:33:55 +00:00
$( INSTALL_DIR) $( 1) /usr/share/xupnpd/playlists
$( INSTALL_DIR) $( 1) /usr/share/xupnpd/plugins
2016-05-29 06:43:39 +00:00
$( CP) $( PKG_BUILD_DIR) /src/plugins/* $( 1) /usr/share/xupnpd/plugins
2014-06-10 22:33:55 +00:00
$( INSTALL_DIR) $( 1) /usr/share/xupnpd/config
$( INSTALL_DIR) $( 1) /etc/xupnpd
( cd $( 1) /etc/xupnpd; ln -s ../../usr/share/xupnpd/config ./; ln -s ../../usr/share/xupnpd/xupnpd.lua ./)
$( INSTALL_DIR) $( 1) /usr/share/xupnpd/localmedia
e n d e f
$( eval $ ( call BuildPackage ,xupnpd ) )