|
@ -1,5 +1,5 @@ |
|
|
#
|
|
|
#
|
|
|
# Copyright (C) 2013-2015 OpenWrt.org
|
|
|
|
|
|
|
|
|
# Copyright (C) 2013-2016 OpenWrt.org
|
|
|
#
|
|
|
#
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
# See /LICENSE for more information.
|
|
|
# See /LICENSE for more information.
|
|
@ -8,15 +8,19 @@ |
|
|
include $(TOPDIR)/rules.mk |
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
|
PKG_NAME:=xupnpd |
|
|
PKG_NAME:=xupnpd |
|
|
PKG_REV:=404 |
|
|
|
|
|
PKG_VERSION:=$(PKG_REV) |
|
|
|
|
|
|
|
|
PKG_REV:=fdeeb919264c1dde4a2ead5045eefbe54011b2dc |
|
|
|
|
|
PKG_VERSION:=2016-05-11 |
|
|
PKG_RELEASE:=1 |
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=svn |
|
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git |
|
|
PKG_SOURCE_VERSION:=$(PKG_REV) |
|
|
PKG_SOURCE_VERSION:=$(PKG_REV) |
|
|
PKG_SOURCE_SUBDIR:=xupnpd-$(PKG_VERSION) |
|
|
|
|
|
PKG_SOURCE_URL:=http://tsdemuxer.googlecode.com/svn/trunk/xupnpd/src/ |
|
|
|
|
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) |
|
|
|
|
|
PKG_SOURCE_URL:=https://github.com/clark15b/xupnpd.git |
|
|
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz |
|
|
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz |
|
|
|
|
|
|
|
|
|
|
|
PKG_LICENSE:=GPLv2 |
|
|
|
|
|
PKG_LICENSE_FILES:=LICENSE |
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com> |
|
|
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com> |
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
include $(INCLUDE_DIR)/package.mk |
|
@ -24,7 +28,7 @@ include $(INCLUDE_DIR)/package.mk |
|
|
LUA_FLAGS:=-llua |
|
|
LUA_FLAGS:=-llua |
|
|
|
|
|
|
|
|
define Build/Compile |
|
|
define Build/Compile |
|
|
(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) |
|
|
|
|
|
|
|
|
(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) |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
define Package/xupnpd |
|
|
define Package/xupnpd |
|
@ -50,18 +54,18 @@ endef |
|
|
|
|
|
|
|
|
define Package/xupnpd/install |
|
|
define Package/xupnpd/install |
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/xupnpd $(1)/usr/bin |
|
|
|
|
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/xupnpd $(1)/usr/bin |
|
|
$(INSTALL_DIR) $(1)/etc/init.d |
|
|
$(INSTALL_DIR) $(1)/etc/init.d |
|
|
$(INSTALL_BIN) ./files/xupnpd.init $(1)/etc/init.d/xupnpd |
|
|
$(INSTALL_BIN) ./files/xupnpd.init $(1)/etc/init.d/xupnpd |
|
|
$(INSTALL_DIR) $(1)/usr/share/xupnpd |
|
|
$(INSTALL_DIR) $(1)/usr/share/xupnpd |
|
|
$(CP) $(PKG_BUILD_DIR)/*.lua $(1)/usr/share/xupnpd |
|
|
|
|
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/*.lua $(1)/usr/share/xupnpd |
|
|
$(INSTALL_DIR) $(1)/usr/share/xupnpd/ui |
|
|
$(INSTALL_DIR) $(1)/usr/share/xupnpd/ui |
|
|
$(CP) $(PKG_BUILD_DIR)/ui/* $(1)/usr/share/xupnpd/ui |
|
|
|
|
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/ui/* $(1)/usr/share/xupnpd/ui |
|
|
$(INSTALL_DIR) $(1)/usr/share/xupnpd/www |
|
|
$(INSTALL_DIR) $(1)/usr/share/xupnpd/www |
|
|
$(CP) $(PKG_BUILD_DIR)/www/* $(1)/usr/share/xupnpd/www |
|
|
|
|
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/www/* $(1)/usr/share/xupnpd/www |
|
|
$(INSTALL_DIR) $(1)/usr/share/xupnpd/playlists |
|
|
$(INSTALL_DIR) $(1)/usr/share/xupnpd/playlists |
|
|
$(INSTALL_DIR) $(1)/usr/share/xupnpd/plugins |
|
|
$(INSTALL_DIR) $(1)/usr/share/xupnpd/plugins |
|
|
$(CP) $(PKG_BUILD_DIR)/plugins/* $(1)/usr/share/xupnpd/plugins |
|
|
|
|
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/plugins/* $(1)/usr/share/xupnpd/plugins |
|
|
$(INSTALL_DIR) $(1)/usr/share/xupnpd/config |
|
|
$(INSTALL_DIR) $(1)/usr/share/xupnpd/config |
|
|
$(INSTALL_DIR) $(1)/etc/xupnpd |
|
|
$(INSTALL_DIR) $(1)/etc/xupnpd |
|
|
(cd $(1)/etc/xupnpd; ln -s ../../usr/share/xupnpd/config ./; ln -s ../../usr/share/xupnpd/xupnpd.lua ./) |
|
|
(cd $(1)/etc/xupnpd; ln -s ../../usr/share/xupnpd/config ./; ln -s ../../usr/share/xupnpd/xupnpd.lua ./) |
|
|