forked from extern/shorewall_code
Add --digest to configure scripts.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
9197cdc9bd
commit
2bf16016c1
3
Shorewall-core/configure
vendored
3
Shorewall-core/configure
vendored
@ -180,7 +180,8 @@ for on in \
|
||||
SYSCONFDIR \
|
||||
SPARSE \
|
||||
ANNOTATED \
|
||||
VARDIR
|
||||
VARDIR \
|
||||
DIGEST
|
||||
do
|
||||
echo "$on=${options[${on}]}"
|
||||
echo "$on=${options[${on}]}" >> shorewallrc
|
||||
|
@ -141,7 +141,8 @@ for ( qw/ HOST
|
||||
SYSCONFDIR
|
||||
SPARSE
|
||||
ANNOTATED
|
||||
VARDIR / ) {
|
||||
VARDIR
|
||||
DIGEST / ) {
|
||||
|
||||
my $val = $options{$_} || '';
|
||||
|
||||
|
@ -250,9 +250,13 @@ OWNERSHIP="-o $OWNER -g $GROUP"
|
||||
|
||||
if [ $PRODUCT = shorewall -a "$BUILD" = "$HOST" ]; then
|
||||
#
|
||||
# Fix up 'use Digest::' if SHA is installed
|
||||
# Fix up 'use Digest::' if SHA1 is installed
|
||||
#
|
||||
if ! perl -e 'use Digest::SHA;' 2> /dev/null ; then
|
||||
if [ -n "$DIGEST" ]; then
|
||||
if [ "$DIGEST" != SHA ]; then
|
||||
eval sed -i \'s/Digest::SHA/Digest::$DIGEST/\' Perl/Shorewall/Chains.pm
|
||||
fi
|
||||
elif ! perl -e 'use Digest::SHA;' 2> /dev/null ; then
|
||||
if perl -e 'use Digest::SHA1;' 2> /dev/null ; then
|
||||
sed -i 's/Digest::SHA/Digest::SHA1/' Perl/Shorewall/Chains.pm
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user