mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 01:37:59 +02:00
Tighten up dependency handling -- Phase II
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6750 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
a066fba60f
commit
01e32dee56
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# Shorewall 3.4 -- /usr/share/shorewall/lib.base
|
# Shorewall 4.0 -- /usr/share/shorewall/lib.base
|
||||||
#
|
#
|
||||||
# This program is under GPL [http://www.gnu.org/copyleft/gpl.htm]
|
# This program is under GPL [http://www.gnu.org/copyleft/gpl.htm]
|
||||||
#
|
#
|
||||||
|
@ -122,30 +122,18 @@ sub generate_script_1() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
emitj ( 'initialize()',
|
emitj ( 'initialize()',
|
||||||
'{'
|
'{',
|
||||||
|
' #',
|
||||||
|
' # These variables are required by the library functions called in this script',
|
||||||
|
' #'
|
||||||
);
|
);
|
||||||
|
|
||||||
push_indent;
|
push_indent;
|
||||||
|
|
||||||
if ( $export ) {
|
if ( $export ) {
|
||||||
emitj ( '#',
|
emit ( 'CONFIG_PATH="/etc/shorewall-lite:/usr/share/shorewall-lite"' );
|
||||||
'# These variables are required by the library functions called in this script',
|
|
||||||
'#',
|
|
||||||
'CONFIG_PATH="/etc/shorewall-lite:/usr/share/shorewall-lite"' );
|
|
||||||
} else {
|
} else {
|
||||||
emitj ( 'if [ ! -f ${SHAREDIR}/version ]; then',
|
emit ( qq(CONFIG_PATH="$config{CONFIG_PATH}") );
|
||||||
' fatal_error "This script requires Shorewall which do not appear to be installed on this system (did you forget \"-e\" when you compiled?)"',
|
|
||||||
'fi',
|
|
||||||
'',
|
|
||||||
'local version=$(cat ${SHAREDIR}/version)',
|
|
||||||
'',
|
|
||||||
'if [ ${SHOREWALL_LIBVERSION:-0} -lt 30403 ]; then',
|
|
||||||
' fatal_error "This script requires Shorewall version 3.4.3 or later; current version is $version"',
|
|
||||||
'fi',
|
|
||||||
'#',
|
|
||||||
'# These variables are required by the library functions called in this script',
|
|
||||||
'#',
|
|
||||||
qq(CONFIG_PATH="$config{CONFIG_PATH}") );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
propagateconfig;
|
propagateconfig;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user