Prepare for new requirements
- New requirements in Libreswan 3.18 (not released yet) - libsystemd-dev (Ubuntu/Debian) or systemd-devel (CentOS) - Applies only to systemd-based Linux distributions
This commit is contained in:
parent
8475a9bb99
commit
c28f9b0928
@ -124,6 +124,9 @@ wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url1" || wget -t 3 -T 30 -nv -O "$swa
|
||||
tar xzf "$swan_file" && /bin/rm -f "$swan_file"
|
||||
cd "libreswan-$swan_ver" || { echoerr "Cannot enter Libreswan source dir. Aborting."; exit 1; }
|
||||
echo "WERROR_CFLAGS =" > Makefile.inc.local
|
||||
if [ "$(packaging/utils/lswan_detect.sh init)" = "systemd" ]; then
|
||||
apt-get -yq install libsystemd-dev
|
||||
fi
|
||||
make -s programs && make -s install
|
||||
|
||||
# Verify the install and clean up
|
||||
|
@ -111,12 +111,12 @@ yum -y install nss-devel nspr-devel pkgconfig pam-devel \
|
||||
curl-devel flex bison gcc make \
|
||||
fipscheck-devel unbound-devel xmlto
|
||||
|
||||
# Installed Libevent2
|
||||
# Install libevent2 and systemd-devel (CentOS 7)
|
||||
if grep -qs "release 6" /etc/redhat-release; then
|
||||
yum -y remove libevent-devel
|
||||
yum -y install libevent2-devel
|
||||
elif grep -qs "release 7" /etc/redhat-release; then
|
||||
yum -y install libevent-devel
|
||||
yum -y install libevent-devel systemd-devel
|
||||
fi
|
||||
|
||||
# Compile and install Libreswan
|
||||
|
@ -166,6 +166,9 @@ wget -t 3 -T 30 -nv -O "$swan_file" "$swan_url1" || wget -t 3 -T 30 -nv -O "$swa
|
||||
tar xzf "$swan_file" && /bin/rm -f "$swan_file"
|
||||
cd "libreswan-$swan_ver" || { echoerr "Cannot enter Libreswan source dir. Aborting."; exit 1; }
|
||||
echo "WERROR_CFLAGS =" > Makefile.inc.local
|
||||
if [ "$(packaging/utils/lswan_detect.sh init)" = "systemd" ]; then
|
||||
apt-get -yq install libsystemd-dev
|
||||
fi
|
||||
make -s programs && make -s install
|
||||
|
||||
# Verify the install and clean up
|
||||
|
@ -147,12 +147,12 @@ yum -y install ppp xl2tpd
|
||||
# Install Fail2Ban to protect SSH
|
||||
yum -y install fail2ban
|
||||
|
||||
# Installed Libevent2
|
||||
# Install libevent2 and systemd-devel (CentOS 7)
|
||||
if grep -qs "release 6" /etc/redhat-release; then
|
||||
yum -y remove libevent-devel
|
||||
yum -y install libevent2-devel
|
||||
elif grep -qs "release 7" /etc/redhat-release; then
|
||||
yum -y install libevent-devel
|
||||
yum -y install libevent-devel systemd-devel
|
||||
fi
|
||||
|
||||
# Compile and install Libreswan
|
||||
|
Loading…
x
Reference in New Issue
Block a user