mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-02 02:49:54 +01:00
Make a functional Perl a prerequisite for installation
This commit is contained in:
parent
1d1133532f
commit
6a25d6b9db
@ -166,6 +166,15 @@ if [ -n "$PREFIX" ]; then
|
|||||||
|
|
||||||
CYGWIN=
|
CYGWIN=
|
||||||
else
|
else
|
||||||
|
#
|
||||||
|
# Verify that Perl is installed
|
||||||
|
#
|
||||||
|
if ! perl -c Perl/compiler.pl; then
|
||||||
|
echo "ERROR: Shorewall $VERSION requires Perl which either is not installed or is not able to compile the Shorewall perl code" >&2
|
||||||
|
echo " Try perl -c $PWD/Perl/compiler.pl" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$CYGWIN" ]; then
|
if [ -z "$CYGWIN" ]; then
|
||||||
if [ -d /etc/apt -a -e /usr/bin/dpkg ]; then
|
if [ -d /etc/apt -a -e /usr/bin/dpkg ]; then
|
||||||
DEBIAN=yes
|
DEBIAN=yes
|
||||||
@ -238,7 +247,7 @@ chmod 755 ${PREFIX}/usr/share/shorewall/configfiles
|
|||||||
#
|
#
|
||||||
run_install $OWNERSHIP -m 0644 configfiles/shorewall.conf ${PREFIX}/usr/share/shorewall/configfiles/shorewall.conf
|
run_install $OWNERSHIP -m 0644 configfiles/shorewall.conf ${PREFIX}/usr/share/shorewall/configfiles/shorewall.conf
|
||||||
|
|
||||||
qt mywhich perl && perl -p -w -i -e 's|^CONFIG_PATH=.*|CONFIG_PATH=/usr/share/shorewall/configfiles:/usr/share/shorewall|;' ${PREFIX}/usr/share/shorewall/configfiles/shorewall.conf
|
perl -p -w -i -e 's|^CONFIG_PATH=.*|CONFIG_PATH=/usr/share/shorewall/configfiles:/usr/share/shorewall|;' ${PREFIX}/usr/share/shorewall/configfiles/shorewall.conf
|
||||||
|
|
||||||
if [ ! -f ${PREFIX}/etc/shorewall/shorewall.conf ]; then
|
if [ ! -f ${PREFIX}/etc/shorewall/shorewall.conf ]; then
|
||||||
run_install $OWNERSHIP -m 0644 configfiles/shorewall.conf ${PREFIX}/etc/shorewall/shorewall.conf
|
run_install $OWNERSHIP -m 0644 configfiles/shorewall.conf ${PREFIX}/etc/shorewall/shorewall.conf
|
||||||
@ -737,7 +746,6 @@ for f in prog.* ; do
|
|||||||
echo "Program skeleton file ${f#*.} installed as ${PREFIX}/usr/share/shorewall/$f"
|
echo "Program skeleton file ${f#*.} installed as ${PREFIX}/usr/share/shorewall/$f"
|
||||||
done
|
done
|
||||||
|
|
||||||
pwd
|
|
||||||
cd ..
|
cd ..
|
||||||
#
|
#
|
||||||
# Create the version file
|
# Create the version file
|
||||||
@ -757,7 +765,6 @@ fi
|
|||||||
# Install the Man Pages
|
# Install the Man Pages
|
||||||
#
|
#
|
||||||
|
|
||||||
pwd
|
|
||||||
cd manpages
|
cd manpages
|
||||||
|
|
||||||
for f in *.5; do
|
for f in *.5; do
|
||||||
|
Loading…
Reference in New Issue
Block a user