2007-01-10 11:41:14 +00:00
|
|
|
#
|
2012-05-29 01:30:23 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2007-01-10 11:41:14 +00:00
|
|
|
# Copyright (C) 2006 loswillios
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=linuxigd
|
2007-06-02 10:21:15 +00:00
|
|
|
PKG_VERSION:=1.0
|
2012-05-29 01:30:23 +00:00
|
|
|
PKG_RELEASE:=3
|
2007-01-10 11:41:14 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/linux-igd
|
2007-06-02 10:21:15 +00:00
|
|
|
PKG_MD5SUM:=929f5c4878c91d534613b7c7070215d9
|
2007-01-10 11:41:14 +00:00
|
|
|
|
2007-01-22 17:33:10 +00:00
|
|
|
PKG_BUILD_DEPENDS:=iptables libupnp
|
2007-01-10 11:41:14 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/linuxigd
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=UPnP daemon
|
2011-03-12 01:14:02 +00:00
|
|
|
SUBMENU:=Firewall
|
2012-06-05 17:52:38 +00:00
|
|
|
DEPENDS:=+libip4tc +libupnp +libpthread @BROKEN
|
2007-01-10 11:41:14 +00:00
|
|
|
URL:=http://linux-igd.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/linuxigd/description
|
2010-04-11 21:07:51 +00:00
|
|
|
It implements the UPnP Internet Gateway Device specification (IGD)
|
|
|
|
and allows UPnP aware clients, such as MSN Messenger, Azureus or
|
|
|
|
Miranda to work properly from behind a NAT firewall.
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
Please edit /etc/upnpd.conf before using upnpd!
|
|
|
|
endef
|
|
|
|
|
2007-01-10 11:41:14 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2010-02-19 02:26:54 +00:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DIPTABLES_143 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib" \
|
2007-01-10 11:41:14 +00:00
|
|
|
BINDIR="/usr/sbin" \
|
|
|
|
MANDIR="/usr/man" \
|
|
|
|
HAVE_LIBIPTC=1 \
|
|
|
|
LIBIPTC_PREFIX="$(STAGING_DIR)/usr" \
|
|
|
|
LIBUPNP_PREFIX="$(STAGING_DIR)/usr" \
|
2012-02-16 18:08:21 +00:00
|
|
|
LIBS="-lpthread -lupnp -lixml -lthreadutil -lip4tc -L../lib" \
|
2007-01-10 11:41:14 +00:00
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/linuxigd/conffiles
|
|
|
|
/etc/upnpd.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/linuxigd/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/upnpd $(1)/usr/sbin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/linuxigd
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/*.gif $(1)/etc/linuxigd/
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/*.xml $(1)/etc/linuxigd/
|
2007-01-13 23:12:25 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc
|
|
|
|
$(INSTALL_DATA) ./files/upnpd.conf $(1)/etc/
|
2007-01-10 11:41:14 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/upnpd.init $(1)/etc/init.d/upnpd
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,linuxigd))
|