[packages] linuxigd: patch for iptables 1.4.3.2 compatibility
[openwrt/svn-archive/archive.git] / net / linuxigd / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 # Copyright (C) 2006 loswillios
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=linuxigd
12 PKG_VERSION:=1.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/linux-igd
17 PKG_MD5SUM:=929f5c4878c91d534613b7c7070215d9
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 PKG_BUILD_DEPENDS:=iptables libupnp
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/linuxigd
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=UPnP daemon
29 DEPENDS:=+libiptc +libupnp +libpthread
30 URL:=http://linux-igd.sourceforge.net/
31 endef
32
33 define Package/linuxigd/description
34 It implements the UPnP Internet Gateway Device specification (IGD)
35 and allows UPnP aware clients, such as MSN Messenger, Azureus or
36 Miranda to work properly from behind a NAT firewall.
37
38 Please edit /etc/upnpd.conf before using upnpd!
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 $(TARGET_CONFIGURE_OPTS) \
44 CFLAGS="$(TARGET_CFLAGS)" \
45 BINDIR="/usr/sbin" \
46 MANDIR="/usr/man" \
47 HAVE_LIBIPTC=1 \
48 LIBIPTC_PREFIX="$(STAGING_DIR)/usr" \
49 LIBUPNP_PREFIX="$(STAGING_DIR)/usr" \
50 all
51 endef
52
53 define Package/linuxigd/conffiles
54 /etc/upnpd.conf
55 endef
56
57 define Package/linuxigd/install
58 $(INSTALL_DIR) $(1)/usr/sbin
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnpd $(1)/usr/sbin/
60 $(INSTALL_DIR) $(1)/etc/linuxigd
61 $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/*.gif $(1)/etc/linuxigd/
62 $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/*.xml $(1)/etc/linuxigd/
63 $(INSTALL_DIR) $(1)/etc
64 $(INSTALL_DATA) ./files/upnpd.conf $(1)/etc/
65 $(INSTALL_DIR) $(1)/etc/init.d
66 $(INSTALL_BIN) ./files/upnpd.init $(1)/etc/init.d/upnpd
67 endef
68
69 $(eval $(call BuildPackage,linuxigd))