2 # Copyright (C) 2006 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.
10 include $(TOPDIR
)/rules.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=@SF
/linux-igd
18 PKG_MD5SUM
:=929f5c4878c91d534613b7c7070215d9
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_BUILD_DEPENDS
:=iptables libupnp
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/linuxigd
30 DEPENDS
:=+libupnp
+libpthread
31 URL
:=http
://linux-igd.sourceforge.net
/
34 define Package
/linuxigd
/description
35 It implements the UPnP Internet Gateway Device specification
(IGD
)
36 and allows UPnP aware clients
, such
as MSN Messenger
, Azureus or
37 Miranda to work properly from behind a NAT firewall.
39 Please edit
/etc
/upnpd.conf before using upnpd
!
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
44 $(TARGET_CONFIGURE_OPTS
) \
45 CFLAGS
="$(TARGET_CFLAGS)" \
49 LIBIPTC_PREFIX
="$(STAGING_DIR)/usr" \
50 LIBUPNP_PREFIX
="$(STAGING_DIR)/usr" \
54 define Package
/linuxigd
/conffiles
58 define Package
/linuxigd
/install
59 $(INSTALL_DIR
) $(1)/usr
/sbin
60 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/upnpd
$(1)/usr
/sbin
/
61 $(INSTALL_DIR
) $(1)/etc
/linuxigd
62 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/etc
/*.gif
$(1)/etc
/linuxigd
/
63 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/etc
/*.xml
$(1)/etc
/linuxigd
/
64 $(INSTALL_DIR
) $(1)/etc
65 $(INSTALL_DATA
) .
/files
/upnpd.conf
$(1)/etc
/
66 $(INSTALL_DIR
) $(1)/etc
/init.d
67 $(INSTALL_BIN
) .
/files
/upnpd.init
$(1)/etc
/init.d
/upnpd
70 $(eval
$(call BuildPackage
,linuxigd
))