(address . guix-patches@gnu.org)
Presently, the strongswan defaults are too minimal to be used with most
common VPN setups. This commit enables support for a number of things
that should make strongswan much more usable in Guix. It also explicitly
disables AESNI in order to not rely on an Intel implementation.
---
gnu/packages/networking.scm | 52 +++++++++++++++++++++++++++++++++++--
1 file changed, 50 insertions(+), 2 deletions(-)
Toggle diff (71 lines)
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 8bcaa98fbb..1ce7adfde9 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -2863,14 +2863,62 @@ displays the results in real time.")
(list
;; Disable bsd-4 licensed plugins.
"--disable-des"
- "--disable-blowfish")))
+ "--disable-blowfish"
+ ;; Disable AESNI
+ "--disable-aesni"
+ ;; Disable systemd
+ "--disable-systemd"
+ ;; Don't use mysql or OpenLDAP
+ "--disable-mysql"
+ "--disable-ldap"
+ ;; Enable the rest needed for a sensible configuration
+ "--enable-attr-sql"
+ "--enable-chapoly"
+ "--enable-curl"
+ "--enable-dhcp"
+ "--enable-farp"
+ "--enable-md4"
+ "--enable-eap-aka"
+ "--enable-eap-aka-3gpp"
+ "--enable-eap-dynamic"
+ "--enable-eap-identity"
+ "--enable-eap-md5"
+ "--enable-eap-mschapv2"
+ "--enable-eap-peap"
+ "--enable-eap-radius"
+ "--enable-eap-sim"
+ "--enable-eap-sim-file"
+ "--enable-eap-simaka-pseudonym"
+ "--enable-eap-simaka-reauth"
+ "--enable-eap-simaka-sql"
+ "--enable-eap-tls"
+ "--enable-eap-tnc"
+ "--enable-eap-ttls"
+ "--enable-xauth-eap"
+ "--enable-ext-auth"
+ "--enable-led"
+ "--enable-ha"
+ "--enable-mediation"
+ "--enable-soup"
+ "--enable-sql"
+ "--enable-sqlite"
+ "--enable-openssl"
+ "--enable-xauth-eap"
+ "--enable-xauth-noauth"
+ "--enable-xauth-pam"
+ ;; Use libcap by default
+ "--with-capabilities=libcap")))
(inputs
`(("curl" ,curl)
("gmp" ,gmp)
("libgcrypt" ,libgcrypt)
- ("openssl" ,openssl)))
+ ("openssl" ,openssl)
+ ("libsoup" ,libsoup)
+ ("libcap" ,libcap)
+ ("linux-pam" ,linux-pam)))
(native-inputs
`(("coreutils" ,coreutils)
+ ("pkg-config" ,pkg-config)
("tzdata" ,tzdata-for-tests)))
(synopsis "IKEv1/v2 keying daemon")
(description "StrongSwan is an IPsec implementation originally based upon
--
2.31.1
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEE7JyU1wrLyiw5G92zcc2InUujXj0FAmCrx6UACgkQcc2InUuj
Xj0wQg/8DMHZ1SI1YNqEZYDZ4P3Sp8mhUt6XIM4Q3cT0DiXeLKojzDhtpRWf/QdK
Xua06YeRteWg+mkaMU7RoTLpBxNHNHvIQXedpy4DE5GxMX92mTbdPvqVd6mzd+Z7
/hz3qGvo111qnAAdy/YvqaIltLkB8h9gIDYUWTJJAFhnwaYwXlY5xDZcmPDDm+7b
LOB/3gPsYS2DvArW4Vf7sPUVP+v2CxevxnwzqxflPgYkYoKtSoV0rw2M8wGH6ojR
FgsmWA3ppCbSNc4urU47NjbTwHk/l+8dHOW18KYdF4dvchC0IheEYz3cMeqFKfMp
k1NtqQuSEnaB6exQsICJ3ZoE8L5DRTuoJrscbuxkjXcqt1S84b5FSYlNaqyucM37
snDpiZx8q8IQi4rkdgwWl8c3XkJhWRFmixjSie+VQ3xfoK5eMDl5eN8luoVZAQMO
d2QbahRMP19BZOjwCGk/sJ/ikpNTnKr1weg7WHMflpAl2cLLGO4YfmMk5ntyzVbU
6aBICifCNVYvyYRdsdR6g5RrKpTL6+e+TduyOtoYcs49EUWadgqsUN4SMDc9vNMv
umkBgEK5gGXQtXq0ljdDinU1yuVwdc+N6E6Xi1z7uKdDJiMPMptt62LewZD7VxHl
OHFs1/sdCSH4lrGE6abAIPq9fvZ1QWcP6NKSHgkqxcWbkeo/dsE=
=Nzae
-----END PGP SIGNATURE-----