packages/ushare: add /etc/config/ushare to conffiles define
[openwrt/svn-archive/archive.git] / net / natpmp / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=natpmp
4 PKG_VERSION:=0.2.3
5 PKG_RELEASE:=2
6
7 PKG_SOURCE_URL:=http://download.savannah.nongnu.org/releases/natpmp/
8 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
9 PKG_MD5SUM:=f696565d59c488b9ad9f43625be93377
10
11 include $(INCLUDE_DIR)/package.mk
12
13 define Package/natpmp
14 SECTION:=net
15 CATEGORY:=Network
16 DEPENDS:=+ip
17 SUBMENU:=Firewall
18 TITLE:=A daemon implementing NAT-PMP
19 URL:=http://savannah.nongnu.org/projects/natpmp
20 endef
21
22 define Package/natpmp/description
23 This is a daemon implementing NAT-PMP. NAT-PMP is a protocol for
24 handling port forwarding requests from clients behind a NAT.
25 endef
26
27 define Build/Configure
28 endef
29
30 define Build/Compile
31 $(MAKE) -C $(PKG_BUILD_DIR) \
32 $(TARGET_CONFIGURE_OPTS) \
33 CC="$(TARGET_CC)" \
34 LD="$(TARGET_CC)" \
35 CFLAGS="$(strip $(TARGET_CFLAGS))" \
36 CPPFLAGS="$$$$CPPFLAGS $(TARGET_CPPFLAGS) -DIPTABLES_PATH=\\\"/usr/sbin\\\"" \
37 LDFLAGS="$(TARGET_LDFLAGS)" \
38 prefix="$(PKG_INSTALL_DIR)/usr"
39 endef
40
41 define Package/natpmp/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/natpmp $(1)/usr/sbin
44 $(INSTALL_DIR) $(1)/etc/config
45 $(INSTALL_DATA) ./files/natpmp.config $(1)/etc/config/natpmp
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) ./files/natpmp.init $(1)/etc/init.d/natpmp
48 endef
49
50 $(eval $(call BuildPackage,natpmp))