diff options
Diffstat (limited to 'net/openswan/DEPENDS')
-rwxr-xr-x | net/openswan/DEPENDS | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/net/openswan/DEPENDS b/net/openswan/DEPENDS index a1f1d479dc..5b0a16be34 100755 --- a/net/openswan/DEPENDS +++ b/net/openswan/DEPENDS @@ -1,10 +1,16 @@ -depends gmp && -depends iproute2 && -depends iptables && -depends ipsec-tools -# from the readme from openswan -#* For the moment, users wishing to test Openswan with 2.6 will require -# ipsec-tools' "setkey" program. Though Openswan's keying daemon, Pluto, -# directly sets IPsec policy, setkey is currently required to reset kernel SPD -# (Security Policy Database) states when Pluto restarts. We will likely add -# this basic functionality to an upcoming Openswan release. +depends gmp && +depends iproute2 && +depends iptables && + +local IPR2REV=$(installed_version iproute2 | cut -d. -f3) && + +if spell_ok iproute2 && [[ $IPR2REV -le 8 ]]; then + force_depends iproute2 +fi && + +. "$GRIMOIRE/FUNCTIONS" && +local KREV=$(get_kernel_version | cut -d. -f3) && + +if [[ $KREV -le 9 ]]; then + depends ipsec-tools +fi |