source: packages/net/natpmp/Makefile @ 12958

Last change on this file since 12958 was 12958, checked in by nbd, 8 years ago

fix natpmp breakage introduced in r12937 and make sure that the target cflags actually get used

File size: 1.3 KB
Line 
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=natpmp
4PKG_VERSION:=0.2.3
5PKG_RELEASE:=2
6
7PKG_SOURCE_URL:=http://download.savannah.nongnu.org/releases/natpmp/
8PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
9PKG_MD5SUM:=f696565d59c488b9ad9f43625be93377
10
11include $(INCLUDE_DIR)/package.mk
12
13define Package/natpmp
14  SECTION:=net
15  CATEGORY:=Network
16  DEPENDS:=+ip
17  TITLE:=A daemon implementing NAT-PMP
18  URL:=http://savannah.nongnu.org/projects/natpmp
19endef
20
21define Package/natpmp/description
22        This is a daemon implementing NAT-PMP. NAT-PMP is a protocol for
23        handling port forwarding requests from clients behind a NAT.
24endef
25
26define Build/Configure
27endef
28
29define Build/Compile
30        rm -rf $(PKG_INSTALL_DIR)
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 -I$(STAGING_DIR)/usr/include -DIPTABLES_PATH=\\\"/usr/sbin\\\"" \
37                LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
38                prefix="$(PKG_INSTALL_DIR)/usr"
39endef
40
41define 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
48endef
49
50$(eval $(call BuildPackage,natpmp))
Note: See TracBrowser for help on using the repository browser.