Apply Libreswan fix
- Fix detection for sysvinit initsystem:
cfe4dabab4
This commit is contained in:
parent
1dee0d4262
commit
5a13026701
@ -217,6 +217,7 @@ if [ "$SWAN_VER" = "3.31" ]; then
|
|||||||
sed -i '1033s/if (/if (LIN(POLICY_IKE_FRAG_ALLOW, sk->ike->sa.st_connection->policy) \&\& sk->ike->sa.st_seen_fragvid \&\& /' \
|
sed -i '1033s/if (/if (LIN(POLICY_IKE_FRAG_ALLOW, sk->ike->sa.st_connection->policy) \&\& sk->ike->sa.st_seen_fragvid \&\& /' \
|
||||||
programs/pluto/ikev2_message.c
|
programs/pluto/ikev2_message.c
|
||||||
fi
|
fi
|
||||||
|
[ "$SWAN_VER" = "4.1" ] && sed -i 's/ sysv )/ sysvinit )/' programs/setup/setup.in
|
||||||
cat > Makefile.inc.local <<'EOF'
|
cat > Makefile.inc.local <<'EOF'
|
||||||
WERROR_CFLAGS=-w
|
WERROR_CFLAGS=-w
|
||||||
USE_DNSSEC=false
|
USE_DNSSEC=false
|
||||||
|
@ -224,6 +224,7 @@ if [ "$SWAN_VER" = "3.31" ]; then
|
|||||||
sed -i '1033s/if (/if (LIN(POLICY_IKE_FRAG_ALLOW, sk->ike->sa.st_connection->policy) \&\& sk->ike->sa.st_seen_fragvid \&\& /' \
|
sed -i '1033s/if (/if (LIN(POLICY_IKE_FRAG_ALLOW, sk->ike->sa.st_connection->policy) \&\& sk->ike->sa.st_seen_fragvid \&\& /' \
|
||||||
programs/pluto/ikev2_message.c
|
programs/pluto/ikev2_message.c
|
||||||
fi
|
fi
|
||||||
|
[ "$SWAN_VER" = "4.1" ] && sed -i 's/ sysv )/ sysvinit )/' programs/setup/setup.in
|
||||||
cat > Makefile.inc.local <<'EOF'
|
cat > Makefile.inc.local <<'EOF'
|
||||||
WERROR_CFLAGS=-w
|
WERROR_CFLAGS=-w
|
||||||
USE_DNSSEC=false
|
USE_DNSSEC=false
|
||||||
|
@ -192,6 +192,7 @@ fi
|
|||||||
/bin/rm -rf "/opt/src/libreswan-$SWAN_VER"
|
/bin/rm -rf "/opt/src/libreswan-$SWAN_VER"
|
||||||
tar xzf "$swan_file" && /bin/rm -f "$swan_file"
|
tar xzf "$swan_file" && /bin/rm -f "$swan_file"
|
||||||
cd "libreswan-$SWAN_VER" || exit 1
|
cd "libreswan-$SWAN_VER" || exit 1
|
||||||
|
sed -i 's/ sysv )/ sysvinit )/' programs/setup/setup.in
|
||||||
cat > Makefile.inc.local <<'EOF'
|
cat > Makefile.inc.local <<'EOF'
|
||||||
WERROR_CFLAGS=-w
|
WERROR_CFLAGS=-w
|
||||||
USE_DNSSEC=false
|
USE_DNSSEC=false
|
||||||
|
@ -195,6 +195,7 @@ fi
|
|||||||
/bin/rm -rf "/opt/src/libreswan-$SWAN_VER"
|
/bin/rm -rf "/opt/src/libreswan-$SWAN_VER"
|
||||||
tar xzf "$swan_file" && /bin/rm -f "$swan_file"
|
tar xzf "$swan_file" && /bin/rm -f "$swan_file"
|
||||||
cd "libreswan-$SWAN_VER" || exit 1
|
cd "libreswan-$SWAN_VER" || exit 1
|
||||||
|
sed -i 's/ sysv )/ sysvinit )/' programs/setup/setup.in
|
||||||
cat > Makefile.inc.local <<'EOF'
|
cat > Makefile.inc.local <<'EOF'
|
||||||
WERROR_CFLAGS=-w
|
WERROR_CFLAGS=-w
|
||||||
USE_DNSSEC=false
|
USE_DNSSEC=false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user