Accept host=debian.* in the configure scripts (Matt Darfeuille)

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2015-12-12 08:10:34 -08:00
parent f9de9c3c74
commit c6065c0370
2 changed files with 5 additions and 0 deletions

View File

@ -169,6 +169,9 @@ else
elif [ $vendor = default ]; then elif [ $vendor = default ]; then
params[HOST]=linux params[HOST]=linux
vendor=linux vendor=linux
elif [[ $vendor == debian.* ]]; then
params[HOST]=debian
vendor=debian
fi fi
fi fi

View File

@ -102,6 +102,8 @@ if ( defined $vendor ) {
die qq("ERROR: $vendor" is not a recognized host type); die qq("ERROR: $vendor" is not a recognized host type);
} elsif ( $vendor eq 'default' ) { } elsif ( $vendor eq 'default' ) {
$params{HOST} = $vendor = 'linux'; $params{HOST} = $vendor = 'linux';
} elsif ( $vendor =~ /^debian\./ ) {
$params{HOST} = $vendor = 'debian';
} }
} else { } else {
if ( -f '/etc/debian_version' ) { if ( -f '/etc/debian_version' ) {