Bring updated from branches/3.4

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5804 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-04-01 23:46:27 +00:00
parent d2f362e0b1
commit 037c9f824c
3 changed files with 54 additions and 56 deletions

View File

@ -22,7 +22,7 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA
# #
VERSION=3.4.1 VERSION=3.4.2
usage() # $1 = exit status usage() # $1 = exit status
{ {
@ -332,10 +332,10 @@ echo "Modules file installed as ${PREFIX}/usr/share/shorewall-lite/modules"
# Install the Man Pages # Install the Man Pages
# #
rm -f *.gz
cd manpages cd manpages
rm -f *.gz
for f in *.5; do for f in *.5; do
gzip $f gzip $f
run_install -D -m 444 $f.gz ${PREFIX}/usr/share/man/man5/$f.gz run_install -D -m 444 $f.gz ${PREFIX}/usr/share/man/man5/$f.gz

View File

@ -677,10 +677,10 @@ fi
# Install the Man Pages # Install the Man Pages
# #
rm -f *.gz
cd manpages cd manpages
rm -f *.gz
for f in *.5; do for f in *.5; do
gzip $f gzip $f
run_install -D -m 0444 $f.gz ${PREFIX}/usr/share/man/man5/$f.gz run_install -D -m 0444 $f.gz ${PREFIX}/usr/share/man/man5/$f.gz

View File

@ -1767,19 +1767,6 @@ do_initialize() {
VERSION_FILE= VERSION_FILE=
LOGRULENUMBERS= LOGRULENUMBERS=
ORIGINAL_POLICY_MATCH= ORIGINAL_POLICY_MATCH=
TMP_DIR=$(mktempdir)
[ -n "$TMP_DIR" ] && chmod 700 $TMP_DIR || \
startup_error "Can't create a temporary directory"
case $PROGRAM in
compiler)
trap "[ -n "$OUTPUT" ] && rm -f $OUTPUT;rm -rf $TMP_DIR; exit 2" 1 2 3 4 5 6 9
;;
firewall)
trap "[ -n "$RESTOREBASE" ] && rm -f $RESTOREBASE;rm -rf $TMP_DIR; my_mutex_off; exit 2" 1 2 3 4 5 6 9
;;
esac
ensure_config_path ensure_config_path
@ -1791,7 +1778,7 @@ do_initialize() {
run_user_exit params run_user_exit params
[ -d /usr/share/shorewall-perl ] && set +a set +a
config=$(find_file shorewall.conf) config=$(find_file shorewall.conf)
@ -1818,13 +1805,31 @@ do_initialize() {
PKTTYPE=$(added_param_value_no PKTTYPE $PKTTYPE) PKTTYPE=$(added_param_value_no PKTTYPE $PKTTYPE)
case "${SHOREWALL_COMPILER:=shell}" in case "${SHOREWALL_COMPILER:=shell}" in
shell|perl) perl)
export CONFIG_PATH;
return;
;;
shell)
;; ;;
*) *)
startup_error "Invalid value ($SHOREWALL_COMPILER) for SHOREWALL_COMPILER" startup_error "Invalid value ($SHOREWALL_COMPILER) for SHOREWALL_COMPILER"
;; ;;
esac esac
TMP_DIR=$(mktempdir)
[ -n "$TMP_DIR" ] && chmod 700 $TMP_DIR || \
startup_error "Can't create a temporary directory"
case $PROGRAM in
compiler)
trap "[ -n "$OUTPUT" ] && rm -f $OUTPUT;rm -rf $TMP_DIR; exit 2" 1 2 3 4 5 6 9
;;
firewall)
trap "[ -n "$RESTOREBASE" ] && rm -f $RESTOREBASE;rm -rf $TMP_DIR; my_mutex_off; exit 2" 1 2 3 4 5 6 9
;;
esac
[ -n "${MODULE_SUFFIX:=o gz ko o.gz ko.gz}" ] [ -n "${MODULE_SUFFIX:=o gz ko o.gz ko.gz}" ]
if [ -z "$EXPORT" -a $(id -u) -eq 0 ]; then if [ -z "$EXPORT" -a $(id -u) -eq 0 ]; then
@ -1841,7 +1846,7 @@ do_initialize() {
f=$(find_file capabilities) f=$(find_file capabilities)
[ -f $f ] && . $f || determine_capabilities [ -f $f ] && . $f || determine_capabilities
elif [ $PROGRAM != compiler -o $SHOREWALL_COMPILER = shell ] ; then else
f=$(find_file capabilities) f=$(find_file capabilities)
[ -f $f ] && . $f || startup_error "The -e flag requires a capabilities file" [ -f $f ] && . $f || startup_error "The -e flag requires a capabilities file"
fi fi
@ -2080,7 +2085,7 @@ do_initialize() {
;; ;;
esac esac
if [ $PROGRAM != compiler -o $SHOREWALL_COMPILER = shell ]; then if [ $PROGRAM != compiler ]; then
strip_file zones strip_file zones
strip_file routestopped strip_file routestopped
strip_file interfaces strip_file interfaces
@ -2088,41 +2093,34 @@ do_initialize() {
fi fi
if [ $PROGRAM = compiler ]; then if [ $PROGRAM = compiler ]; then
if [ $SHOREWALL_COMPILER = 'shell' ]; then strip_file_and_lib_load accounting accounting
strip_file_and_lib_load accounting accounting
if [ -n "$USE_ACTIONS" ]; then if [ -n "$USE_ACTIONS" ]; then
strip_file actions strip_file actions
strip_file actions.std ${SHAREDIR}/actions.std strip_file actions.std ${SHAREDIR}/actions.std
fi
strip_file blacklist
strip_file ecn
strip_file maclist
strip_file_and_lib_load masq nat
strip_file_and_lib_load nat nat
strip_file_and_lib_load netmap nat
strip_file policy
strip_file_and_lib_load providers providers && strip_file route_rules
strip_file_and_lib_load proxyarp proxyarp
strip_file rfc1918
strip_file routestopped
strip_file rules
if [ "$TC_ENABLED" = Internal ]; then
strip_file_and_lib_load tcdevices tc
strip_file_and_lib_load tcclasses tc
fi
strip_file_and_lib_load tcrules tcrules
strip_file tos
strip_file_and_lib_load tunnels tunnels
FW=
else
rm -rf $TMP_DIR
export CONFIG_PATH
export VERSION
export FW
fi fi
strip_file blacklist
strip_file ecn
strip_file maclist
strip_file_and_lib_load masq nat
strip_file_and_lib_load nat nat
strip_file_and_lib_load netmap nat
strip_file policy
strip_file_and_lib_load providers providers && strip_file route_rules
strip_file_and_lib_load proxyarp proxyarp
strip_file rfc1918
strip_file routestopped
strip_file rules
if [ "$TC_ENABLED" = Internal ]; then
strip_file_and_lib_load tcdevices tc
strip_file_and_lib_load tcclasses tc
fi
strip_file_and_lib_load tcrules tcrules
strip_file tos
strip_file_and_lib_load tunnels tunnels
FW=
fi fi
} }