mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-18 18:56:37 +00:00
iptables: don't use /bin/bash in autogen.sh, breaks FreeBSD. Also move autogen.sh invocation to Build/Configure
SVN-Revision: 23369
This commit is contained in:
parent
2cf31be857
commit
356ec178f0
@ -305,9 +305,9 @@ MAKE_FLAGS := \
|
|||||||
KERNEL_DIR="$(LINUX_DIR)" PREFIX=/usr \
|
KERNEL_DIR="$(LINUX_DIR)" PREFIX=/usr \
|
||||||
KBUILD_OUTPUT="$(LINUX_DIR)" \
|
KBUILD_OUTPUT="$(LINUX_DIR)" \
|
||||||
|
|
||||||
define Build/Prepare
|
define Build/Configure
|
||||||
$(call Build/Prepare/Default)
|
|
||||||
(cd $(PKG_BUILD_DIR); ./autogen.sh)
|
(cd $(PKG_BUILD_DIR); ./autogen.sh)
|
||||||
|
$(call Build/Configure/Default)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
|
16
package/iptables/patches/100-bash-location.patch
Normal file
16
package/iptables/patches/100-bash-location.patch
Normal file
@ -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
|
||||||
|
#
|
Loading…
Reference in New Issue
Block a user