aboutsummaryrefslogtreecommitdiffstats
path: root/package/arptables
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-10-25 03:12:26 +0000
committerNicolas Thill <nico@openwrt.org>2005-10-25 03:12:26 +0000
commit0fede097fb076a668bf03b382f7f75b64b481eb4 (patch)
treef4998a3c04cc44081da752e8522a68baaef31a60 /package/arptables
parentae216ca6db48c0b7233b4214e5c8a39c1bfd415d (diff)
downloadmaster-187ad058-0fede097fb076a668bf03b382f7f75b64b481eb4.tar.gz
master-187ad058-0fede097fb076a668bf03b382f7f75b64b481eb4.tar.bz2
master-187ad058-0fede097fb076a668bf03b382f7f75b64b481eb4.zip
backport from whiterussian [1371]
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2301 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/arptables')
-rw-r--r--package/arptables/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/arptables/Makefile b/package/arptables/Makefile
index ceb745040b..f024e7db15 100644
--- a/package/arptables/Makefile
+++ b/package/arptables/Makefile
@@ -21,10 +21,12 @@ $(PKG_BUILD_DIR)/.configured:
$(PKG_BUILD_DIR)/.built:
$(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
- CFLAGS="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux/include -I$(PKG_BUILD_DIR)/include -DARPTABLES_VERSION=\\\"$(PKG_VERSION)\\\" "
+ COPT_FLAGS="$(TARGET_CFLAGS)" \
+ KERNEL_DIR="./include/linux"
touch $@
$(IPKG_ARPTABLES):
- mkdir -p $(IDIR_ARPTABLES)/usr/sbin
- cp $(PKG_BUILD_DIR)/arptables $(IDIR_ARPTABLES)/usr/sbin/
+ install -d -m0755 $(IDIR_ARPTABLES)/usr/sbin
+ install -m0755 $(PKG_BUILD_DIR)/arptables $(IDIR_ARPTABLES)/usr/sbin/
+ $(RSTRIP) $(IDIR_ARPTABLES)
$(IPKG_BUILD) $(IDIR_ARPTABLES) $(PACKAGE_DIR)