Natpmp defaults to expecting iptables to be in /sbin; this patch points it to /usr...
authorAndy Boyett <agb@openwrt.org>
Thu, 9 Oct 2008 19:48:27 +0000 (19:48 +0000)
committerAndy Boyett <agb@openwrt.org>
Thu, 9 Oct 2008 19:48:27 +0000 (19:48 +0000)
Signed-off-by: Conrad Hirano <openwrt at hirano.fastmail.fm>
SVN-Revision: 12937

net/natpmp/Makefile

index 6f851a33f97713a8b8f1b47914e506c5f347c867..e355447f6f43dbf17c63b08572ce6440b2097fd9 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=natpmp
 PKG_VERSION:=0.2.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL:=http://download.savannah.nongnu.org/releases/natpmp/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
@@ -33,7 +33,7 @@ define Build/Compile
                CC="$(TARGET_CC)" \
                LD="$(TARGET_CC)" \
                CCFLAGS="$(strip $(TARGET_CFLAGS))" \
-               CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include" \
+               CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include" -DIPTABLES_PATH=\\\"/usr/sbin\\\"" \
                LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
                prefix="$(PKG_INSTALL_DIR)/usr"
 endef