2 # Copyright (C) 2006-2011 OpenWrt.org
3 # Copyright (C) 2006 loswillios
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/linux-igd
17 PKG_MD5SUM
:=929f5c4878c91d534613b7c7070215d9
19 PKG_BUILD_DEPENDS
:=iptables libupnp
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/linuxigd
28 DEPENDS
:=+libiptc
+libupnp
+libpthread
29 URL
:=http
://linux-igd.sourceforge.net
/
32 define Package
/linuxigd
/description
33 It implements the UPnP Internet Gateway Device specification
(IGD
)
34 and allows UPnP aware clients
, such
as MSN Messenger
, Azureus or
35 Miranda to work properly from behind a NAT firewall.
37 Please edit
/etc
/upnpd.conf before using upnpd
!
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
42 $(TARGET_CONFIGURE_OPTS
) \
43 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DIPTABLES_143 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib" \
47 LIBIPTC_PREFIX
="$(STAGING_DIR)/usr" \
48 LIBUPNP_PREFIX
="$(STAGING_DIR)/usr" \
52 define Package
/linuxigd
/conffiles
56 define Package
/linuxigd
/install
57 $(INSTALL_DIR
) $(1)/usr
/sbin
58 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/upnpd
$(1)/usr
/sbin
/
59 $(INSTALL_DIR
) $(1)/etc
/linuxigd
60 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/etc
/*.gif
$(1)/etc
/linuxigd
/
61 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/etc
/*.xml
$(1)/etc
/linuxigd
/
62 $(INSTALL_DIR
) $(1)/etc
63 $(INSTALL_DATA
) .
/files
/upnpd.conf
$(1)/etc
/
64 $(INSTALL_DIR
) $(1)/etc
/init.d
65 $(INSTALL_BIN
) .
/files
/upnpd.init
$(1)/etc
/init.d
/upnpd
68 $(eval
$(call BuildPackage
,linuxigd
))