summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-09 17:47:55 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-10-09 17:47:55 +0000
commitbc5689e8e70c3f6b94562430eba3601007488f58 (patch)
treec86679b618329c656e0205540efc7ee322dd36ae /package
parentdbb2b22daae8b7750f75c8e4a36d92d895427980 (diff)
[package] iptables: don't use /bin/bash in autogen.sh, breaks FreeBSD. Also move autogen.sh invocation to Build/Configure
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23369 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/iptables/Makefile4
-rw-r--r--package/iptables/patches/100-bash-location.patch16
2 files changed, 18 insertions, 2 deletions
diff --git a/package/iptables/Makefile b/package/iptables/Makefile
index 8609b6d7c..e63777187 100644
--- a/package/iptables/Makefile
+++ b/package/iptables/Makefile
@@ -305,9 +305,9 @@ MAKE_FLAGS := \
KERNEL_DIR="$(LINUX_DIR)" PREFIX=/usr \
KBUILD_OUTPUT="$(LINUX_DIR)" \
-define Build/Prepare
-$(call Build/Prepare/Default)
+define Build/Configure
(cd $(PKG_BUILD_DIR); ./autogen.sh)
+$(call Build/Configure/Default)
endef
define Build/InstallDev
diff --git a/package/iptables/patches/100-bash-location.patch b/package/iptables/patches/100-bash-location.patch
new file mode 100644
index 000000000..818246e76
--- /dev/null
+++ b/package/iptables/patches/100-bash-location.patch
@@ -0,0 +1,16 @@
+--- a/autogen.sh
++++ b/autogen.sh
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/usr/bin/env bash
+
+ autoreconf -fi;
+ rm -Rf autom4te*.cache;
+--- a/iptables-apply
++++ b/iptables-apply
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!/usr/bin/env bash
+ #
+ # iptables-apply -- a safer way to update iptables remotely
+ #