1
0
mirror of synced 2024-11-22 04:56:03 +03:00

Add Ubuntu 24.04

- Add support for Ubuntu 24.04 LTS
  Ref: https://github.com/libreswan/libreswan/commit/46e9115
This commit is contained in:
hwdsl2 2024-04-27 11:03:58 -05:00
parent 7447f4b7da
commit b58e65eb3c
2 changed files with 6 additions and 2 deletions

View File

@ -167,11 +167,13 @@ update_apt_cache() {
} }
install_pkgs() { install_pkgs() {
p1=libcurl4-nss-dev
[ "$os_ver" = "trixiesid" ] && p1=libcurl4-gnutls-dev
( (
set -x set -x
apt-get -yqq install libnss3-dev libnspr4-dev pkg-config \ apt-get -yqq install libnss3-dev libnspr4-dev pkg-config \
libpam0g-dev libcap-ng-dev libcap-ng-utils libselinux1-dev \ libpam0g-dev libcap-ng-dev libcap-ng-utils libselinux1-dev \
libcurl4-nss-dev libnss3-tools libevent-dev libsystemd-dev \ $p1 libnss3-tools libevent-dev libsystemd-dev \
flex bison gcc make wget sed >/dev/null flex bison gcc make wget sed >/dev/null
) || exiterr2 ) || exiterr2
} }

View File

@ -254,11 +254,13 @@ detect_ip() {
install_vpn_pkgs() { install_vpn_pkgs() {
bigecho "Installing packages required for the VPN..." bigecho "Installing packages required for the VPN..."
p1=libcurl4-nss-dev
[ "$os_ver" = "trixiesid" ] && p1=libcurl4-gnutls-dev
( (
set -x set -x
apt-get -yqq install libnss3-dev libnspr4-dev pkg-config \ apt-get -yqq install libnss3-dev libnspr4-dev pkg-config \
libpam0g-dev libcap-ng-dev libcap-ng-utils libselinux1-dev \ libpam0g-dev libcap-ng-dev libcap-ng-utils libselinux1-dev \
libcurl4-nss-dev flex bison gcc make libnss3-tools \ $p1 flex bison gcc make libnss3-tools \
libevent-dev libsystemd-dev uuid-runtime ppp xl2tpd >/dev/null libevent-dev libsystemd-dev uuid-runtime ppp xl2tpd >/dev/null
) || exiterr2 ) || exiterr2
if [ "$os_type" = "debian" ] && [ "$os_ver" = 12 ]; then if [ "$os_type" = "debian" ] && [ "$os_ver" = 12 ]; then