* [Buildroot] [PATCH] strongswan: new package
@ 2013-02-08 17:43 Jérôme Pouiller
2013-02-08 18:02 ` Thomas Petazzoni
0 siblings, 1 reply; 14+ messages in thread
From: Jérôme Pouiller @ 2013-02-08 17:43 UTC (permalink / raw)
To: buildroot
strongSwan is an OpenSource IPsec implementation for the
Linux operating system. It is based on the discontinued
FreeS/WAN project and the X.509 patch.
The focus is on:
- simplicity of configuration
- strong encryption and authentication methods
- powerful IPsec policies supporting large and complex VPN networks
http://www.strongswan.org/
Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
---
package/Config.in | 1 +
package/strongswan/Config.in | 318 +++++++++++++++++++
package/strongswan/strongswan.mk | 633 ++++++++++++++++++++++++++++++++++++++
3 files changed, 952 insertions(+)
create mode 100644 package/strongswan/Config.in
create mode 100644 package/strongswan/strongswan.mk
diff --git a/package/Config.in b/package/Config.in
index 8e4235b..383a0e0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -700,6 +700,7 @@ source "package/spawn-fcgi/Config.in"
source "package/spice-protocol/Config.in"
source "package/spice/Config.in"
source "package/squid/Config.in"
+source "package/strongswan/Config.in"
source "package/stunnel/Config.in"
source "package/tcpdump/Config.in"
source "package/tcpreplay/Config.in"
diff --git a/package/strongswan/Config.in b/package/strongswan/Config.in
new file mode 100644
index 0000000..b206bb8
--- /dev/null
+++ b/package/strongswan/Config.in
@@ -0,0 +1,318 @@
+menuconfig BR2_PACKAGE_STRONGSWAN
+ bool "strongswan"
+ help
+ strongSwan is an OpenSource IPsec implementation for the
+ Linux operating system. It is based on the discontinued
+ FreeS/WAN project and the X.509 patch.
+
+ The focus is on:
+ - simplicity of configuration
+ - strong encryption and authentication methods
+ - powerful IPsec policies supporting large and complex VPN networks
+
+ http://www.strongswan.org/
+
+if BR2_PACKAGE_STRONGSWAN
+config BR2_PACKAGE_STRONGSWAN_CURL
+ bool "enable CURL fetcher plugin to fetch files via libcurl"
+ select BR2_PACKAGE_LIBCURL
+config BR2_PACKAGE_STRONGSWAN_SOUP
+ bool "enable soup fetcher plugin to fetch from HTTP via libsoup"
+ select BR2_PACKAGE_LIBSOUP
+#config BR2_PACKAGE_STRONGSWAN_LDAP
+# bool "enable LDAP fetching plugin to fetch files via libldap"
+# select BR2_PACKAGE_LDAP
+config BR2_PACKAGE_STRONGSWAN_AES
+ default y
+ bool "enable AES software implementation plugin"
+config BR2_PACKAGE_STRONGSWAN_DES
+ default y
+ bool "enable DES/3DES software implementation plugin"
+config BR2_PACKAGE_STRONGSWAN_BLOWFISH
+ bool "enable Blowfish software implementation plugin"
+config BR2_PACKAGE_STRONGSWAN_MD4
+ bool "enable MD4 software implementation plugin"
+config BR2_PACKAGE_STRONGSWAN_MD5
+ default y
+ bool "enable MD5 software implementation plugin"
+config BR2_PACKAGE_STRONGSWAN_SHA1
+ default y
+ bool "enable SHA1 software implementation plugin"
+config BR2_PACKAGE_STRONGSWAN_SHA2
+ default y
+ bool "enable SHA256/SHA384/SHA512 software implementation plugin"
+config BR2_PACKAGE_STRONGSWAN_FIPS-PRF
+ default y
+ bool "enable FIPS PRF software implementation plugin"
+config BR2_PACKAGE_STRONGSWAN_GMP
+ default y
+ bool "enable GNU MP (libgmp) based crypto implementation plugin"
+ select BR2_PACKAGE_GMP
+config BR2_PACKAGE_STRONGSWAN_RANDOM
+ default y
+ bool "enable RNG implementation on top of /dev/(u)random"
+config BR2_PACKAGE_STRONGSWAN_NONCE
+ default y
+ bool "enable nonce generation plugin"
+config BR2_PACKAGE_STRONGSWAN_X509
+ default y
+ bool "enable X509 certificate implementation plugin"
+config BR2_PACKAGE_STRONGSWAN_REVOCATION
+ default y
+ bool "enable X509 CRL/OCSP revocation check plugin"
+config BR2_PACKAGE_STRONGSWAN_CONSTRAINTS
+ default y
+ bool "enable advanced X509 constraint checking plugin"
+config BR2_PACKAGE_STRONGSWAN_PUBKEY
+ default y
+ bool "enable RAW public key support plugin"
+config BR2_PACKAGE_STRONGSWAN_PKCS1
+ default y
+ bool "enable PKCS1 key decoding plugin"
+config BR2_PACKAGE_STRONGSWAN_PKCS8
+ default y
+ bool "enable PKCS8 private key decoding plugin"
+config BR2_PACKAGE_STRONGSWAN_PGP
+ default y
+ bool "enable PGP key decoding plugin"
+config BR2_PACKAGE_STRONGSWAN_DNSKEY
+ default y
+ bool "enable DNS RR key decoding plugin"
+config BR2_PACKAGE_STRONGSWAN_PEM
+ default y
+ bool "enable PEM decoding plugin"
+config BR2_PACKAGE_STRONGSWAN_HMAC
+ default y
+ bool "enable HMAC crypto implementation plugin"
+config BR2_PACKAGE_STRONGSWAN_CMAC
+ default y
+ bool "enable CMAC crypto implementation plugin"
+config BR2_PACKAGE_STRONGSWAN_XCBC
+ default y
+ bool "enable xcbc crypto implementation plugin"
+config BR2_PACKAGE_STRONGSWAN_AF-ALG
+ bool "enable AF_ALG crypto interface to Linux Crypto API"
+config BR2_PACKAGE_STRONGSWAN_TEST-VECTORS
+ bool "enable plugin providing crypto test vectors"
+# mysql_config is not installed in staging dir, so it does not work
+#config BR2_PACKAGE_STRONGSWAN_MYSQL
+# bool "enable MySQL database support"
+# select BR2_PACKAGE_MYSQL_CLIENT
+config BR2_PACKAGE_STRONGSWAN_SQLITE
+ bool "enable SQLite database support"
+ select BR2_PACKAGE_SQLITE
+config BR2_PACKAGE_STRONGSWAN_STROKE
+ default y
+ bool "enable charons stroke configuration backend"
+config BR2_PACKAGE_STRONGSWAN_SMP
+ bool "enable SMP configuration and control interface"
+ select BR2_PACKAGE_LIBXML2
+config BR2_PACKAGE_STRONGSWAN_SQL
+ bool "enable SQL database configuration backend"
+#config BR2_PACKAGE_STRONGSWAN_LEAK-DETECTIVE
+# bool "enable malloc hooks to find memory leaks"
+config BR2_PACKAGE_STRONGSWAN_LOCK-PROFILER
+ bool "enable lock/mutex profiling code"
+config BR2_PACKAGE_STRONGSWAN_UNIT-TESTER
+ bool "enable unit tests on IKEv2 daemon startup"
+config BR2_PACKAGE_STRONGSWAN_LOAD-TESTER
+ bool "enable load testing plugin for IKEv2 daemon"
+config BR2_PACKAGE_STRONGSWAN_EAP-SIM
+ bool "enable SIM authentication module for EAP"
+config BR2_PACKAGE_STRONGSWAN_EAP-SIM-FILE
+ bool "enable EAP-SIM backend based on a triplet file"
+config BR2_PACKAGE_STRONGSWAN_EAP-SIM-PCSC
+ bool "enable EAP-SIM backend based on a smartcard reader"
+ select BR2_PACKAGE_PCSC_LITE
+config BR2_PACKAGE_STRONGSWAN_EAP-AKA
+ bool "enable EAP AKA authentication module"
+config BR2_PACKAGE_STRONGSWAN_EAP-AKA-3GPP2
+ bool "enable EAP AKA backend implementing 3GPP2 algorithms in software"
+ select BR2_PACKAGE_GMP
+config BR2_PACKAGE_STRONGSWAN_EAP-SIMAKA-SQL
+ bool "enable EAP-SIM/AKA backend based on a triplet/quintuplet SQL database"
+config BR2_PACKAGE_STRONGSWAN_EAP-SIMAKA-PSEUDONYM
+ bool "enable EAP-SIM/AKA pseudonym storage plugin"
+config BR2_PACKAGE_STRONGSWAN_EAP-SIMAKA-REAUTH
+ bool "enable EAP-SIM/AKA reauthentication data storage plugin"
+config BR2_PACKAGE_STRONGSWAN_EAP-IDENTITY
+ bool "enable EAP module providing EAP-Identity helper"
+config BR2_PACKAGE_STRONGSWAN_EAP-MD5
+ bool "enable EAP MD5 (CHAP) authentication module"
+config BR2_PACKAGE_STRONGSWAN_EAP-GTC
+ bool "enable EAP GTC authentication module"
+config BR2_PACKAGE_STRONGSWAN_EAP-MSCHAPV2
+ bool "enable EAP MS-CHAPv2 authentication module"
+config BR2_PACKAGE_STRONGSWAN_EAP-TLS
+ bool "enable EAP TLS authentication module"
+config BR2_PACKAGE_STRONGSWAN_EAP-TTLS
+ bool "enable EAP TTLS authentication module"
+config BR2_PACKAGE_STRONGSWAN_EAP-PEAP
+ bool "enable EAP PEAP authentication module"
+config BR2_PACKAGE_STRONGSWAN_EAP-TNC
+ bool "enable EAP TNC trusted network connect module"
+config BR2_PACKAGE_STRONGSWAN_EAP-DYNAMIC
+ bool "enable dynamic EAP proxy module"
+config BR2_PACKAGE_STRONGSWAN_EAP-RADIUS
+ bool "enable RADIUS proxy authentication module"
+config BR2_PACKAGE_STRONGSWAN_XAUTH-GENERIC
+ default y
+ bool "enable generic XAuth backend"
+config BR2_PACKAGE_STRONGSWAN_XAUTH-EAP
+ bool "enable XAuth backend using EAP methods to verify passwords"
+config BR2_PACKAGE_STRONGSWAN_XAUTH-PAM
+ bool "enable XAuth backend using PAM to verify passwords"
+ select BR2_PACKAGE_LINUX_PAM
+#config BR2_PACKAGE_STRONGSWAN_TNC-IFMAP
+# bool "enable TNC IF-MAP module"
+# select BR2_PACKAGE_AXIS2C
+config BR2_PACKAGE_STRONGSWAN_TNC-PDP
+ bool "enable TNC policy decision point module"
+config BR2_PACKAGE_STRONGSWAN_TNC-IMC
+ bool "enable TNC IMC module"
+config BR2_PACKAGE_STRONGSWAN_TNC-IMV
+ bool "enable TNC IMV module"
+config BR2_PACKAGE_STRONGSWAN_TNCCS-11
+ bool "enable TNCCS 1.1 protocol module"
+ select BR2_PACKAGE_LIBXML2
+config BR2_PACKAGE_STRONGSWAN_TNCCS-20
+ bool "enable TNCCS 2.0 protocol module"
+config BR2_PACKAGE_STRONGSWAN_TNCCS-DYNAMIC
+ bool "enable dynamic TNCCS protocol discovery module"
+config BR2_PACKAGE_STRONGSWAN_IMC-TEST
+ bool "enable IMC test module"
+config BR2_PACKAGE_STRONGSWAN_IMV-TEST
+ bool "enable IMV test module"
+config BR2_PACKAGE_STRONGSWAN_IMC-SCANNER
+ bool "enable IMC port scanner module"
+config BR2_PACKAGE_STRONGSWAN_IMV-SCANNER
+ bool "enable IMV port scanner module"
+#config BR2_PACKAGE_STRONGSWAN_IMC-ATTESTATION
+# bool "enable IMC attestation module"
+# select LIBTSPI
+#config BR2_PACKAGE_STRONGSWAN_IMV-ATTESTATION
+# bool "enable IMV attestation module"
+# select LIBTSPI
+config BR2_PACKAGE_STRONGSWAN_NETLINK
+ default y
+ bool "enable the netlink kernel interface"
+config BR2_PACKAGE_STRONGSWAN_KERNEL-PFKEY
+ bool "enable the PF_KEY kernel interface"
+config BR2_PACKAGE_STRONGSWAN_KERNEL-PFROUTE
+ bool "enable the PF_ROUTE kernel interface"
+config BR2_PACKAGE_STRONGSWAN_KERNEL-KLIPS
+ bool "enable the KLIPS kernel interface"
+config BR2_PACKAGE_STRONGSWAN_LIBIPSEC
+ bool "enable user space IPsec implementation"
+config BR2_PACKAGE_STRONGSWAN_SOCKET-DEFAULT
+ default y
+ bool "enable default socket implementation for charon"
+config BR2_PACKAGE_STRONGSWAN_SOCKET-DYNAMIC
+ bool "enable dynamic socket implementation for charon"
+config BR2_PACKAGE_STRONGSWAN_FARP
+ bool "enable ARP faking plugin that responds to ARP requests to peers virtual IP"
+#config BR2_PACKAGE_STRONGSWAN_DUMM
+# bool "enable the DUMM UML test framework"
+# select BR2_PACKAGE_LIBGTK2
+# select BR2_PACKAGE_VTE
+#config BR2_PACKAGE_STRONGSWAN_FAST
+# bool "enable libfast (FastCGI Application Server w/ templates)"
+# select BR2_PACKAGE_
+#config BR2_PACKAGE_STRONGSWAN_MANAGER
+# bool "enable web management console (proof of concept)"
+# select BR2_PACKAGE_STRONGSWAN_FAST
+config BR2_PACKAGE_STRONGSWAN_MEDIATION
+ bool "enable IKEv2 Mediation Extension"
+
+if BR2_PACKAGE_STRONGSWAN_MEDIATION
+#config BR2_PACKAGE_STRONGSWAN_MEDSRV
+# bool "enable mediation server web frontend and daemon plugin"
+# select BR2_PACKAGE_STRONGSWAN_FAST
+config BR2_PACKAGE_STRONGSWAN_MEDCLI
+ bool "enable mediation client configuration database plugin"
+endif
+
+config BR2_PACKAGE_STRONGSWAN_INTEGRITY-TEST
+ bool "enable integrity testing of libstrongswan and plugins"
+config BR2_PACKAGE_STRONGSWAN_LOAD-WARNING
+ default y
+ bool "enable the charon plugin load option warning in starter"
+config BR2_PACKAGE_STRONGSWAN_IKEV1
+ default y
+ bool "enable IKEv1 protocol support in charon"
+config BR2_PACKAGE_STRONGSWAN_IKEV2
+ default y
+ bool "enable IKEv2 protocol support in charon"
+config BR2_PACKAGE_STRONGSWAN_CHARON
+ default y
+ bool "enable the IKEv1/IKEv2 keying daemon charon"
+config BR2_PACKAGE_STRONGSWAN_TOOLS
+ default y
+ bool "enable additional utilities (openac, scepclient and pki)"
+config BR2_PACKAGE_STRONGSWAN_SCRIPTS
+ default y
+ bool "enable additional utilities (found in directory scripts)"
+config BR2_PACKAGE_STRONGSWAN_CONFTEST
+ bool "enforce Suite B conformance test framework"
+config BR2_PACKAGE_STRONGSWAN_UPDOWN
+ default y
+ bool "enable updown firewall script plugin"
+config BR2_PACKAGE_STRONGSWAN_ATTR
+ default y
+ bool "enable strongswan.conf based configuration attribute plugin"
+config BR2_PACKAGE_STRONGSWAN_ATTR-SQL
+ bool "enable SQL based configuration attribute plugin"
+config BR2_PACKAGE_STRONGSWAN_DHCP
+ bool "enable DHCP based attribute provider plugin"
+config BR2_PACKAGE_STRONGSWAN_RESOLVE
+ default y
+ bool "enable resolve DNS handler plugin"
+config BR2_PACKAGE_STRONGSWAN_PADLOCK
+ bool "enables VIA Padlock crypto plugin"
+ depends on (BR2_i386 || BR2_x86_64)
+config BR2_PACKAGE_STRONGSWAN_OPENSSL
+ bool "enables the OpenSSL crypto plugin"
+config BR2_PACKAGE_STRONGSWAN_GCRYPT
+ bool "enables the libgcrypt plugin"
+ select LIBGCRYPT
+config BR2_PACKAGE_STRONGSWAN_AGENT
+ bool "enables the ssh-agent signing plugin"
+config BR2_PACKAGE_STRONGSWAN_PKCS11
+ bool "enables the PKCS11 token support plugin"
+config BR2_PACKAGE_STRONGSWAN_CTR
+ bool "enables the Counter Mode wrapper crypto plugin"
+config BR2_PACKAGE_STRONGSWAN_CCM
+ bool "enables the CCM AEAD wrapper crypto plugin"
+config BR2_PACKAGE_STRONGSWAN_GCM
+ bool "enables the GCM AEAD wrapper crypto plugin"
+config BR2_PACKAGE_STRONGSWAN_ADDRBLOCK
+ bool "enables RFC 3779 address block constraint support"
+config BR2_PACKAGE_STRONGSWAN_UNITY
+ bool "enables Cisco Unity extension plugin"
+#config BR2_PACKAGE_STRONGSWAN_UCI
+# bool "enable OpenWRT UCI configuration plugin"
+# select BR2_PACKAGE_LIBUCI
+#config BR2_PACKAGE_STRONGSWAN_ANDROID
+# bool "enable Android specific plugin"
+#config BR2_PACKAGE_STRONGSWAN_ANDROID-LOG
+# bool "enable Android specific logger plugin"
+#config BR2_PACKAGE_STRONGSWAN_MAEMO
+# bool "enable Maemo specific plugin"
+config BR2_PACKAGE_STRONGSWAN_NM
+ bool "enable NetworkManager backend"
+ select BR2_PACKAGE_NETWORK_MANAGER
+config BR2_PACKAGE_STRONGSWAN_HA
+ bool "enable high availability cluster plugin"
+config BR2_PACKAGE_STRONGSWAN_WHITELIST
+ bool "enable peer identity whitelisting plugin"
+config BR2_PACKAGE_STRONGSWAN_CERTEXPIRE
+ bool "enable CSV export of expiration dates of used certificates"
+config BR2_PACKAGE_STRONGSWAN_LED
+ bool "enable plugin to control LEDs on IKEv2 activity using the Linux kernel LED subsystem"
+config BR2_PACKAGE_STRONGSWAN_DUPLICHECK
+ bool "advanced duplicate checking plugin using liveness checks"
+config BR2_PACKAGE_STRONGSWAN_COUPLING
+ bool "enable IKEv2 plugin to couple peer certificates permanently to authentication"
+config BR2_PACKAGE_STRONGSWAN_RADATTR
+ bool "enable plugin to inject and process custom RADIUS attributes as IKEv2 client"
+endif
diff --git a/package/strongswan/strongswan.mk b/package/strongswan/strongswan.mk
new file mode 100644
index 0000000..5d7712b
--- /dev/null
+++ b/package/strongswan/strongswan.mk
@@ -0,0 +1,633 @@
+#############################################################
+#
+# strongSwan
+#
+#############################################################
+
+STRONGSWAN_VERSION = 5.0.1
+STRONGSWAN_SOURCE = strongswan-$(STRONGSWAN_VERSION).tar.bz2
+STRONGSWAN_SITE = http://download.strongswan.org
+#STRONGSWAN_DEPENDENCIES = host-bison
+
+ifeq ($(BR2_PACKAGE_STRONGSWAN_CURL),y)
+ STRONGSWAN_DEPENDENCIES += libcurl
+ STRONGSWAN_CONF_OPT += --enable-curl
+else
+ STRONGSWAN_CONF_OPT += --disable-curl
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_SOUP),y)
+ STRONGSWAN_DEPENDENCIES += libsoup
+ STRONGSWAN_CONF_OPT += --enable-soup
+else
+ STRONGSWAN_CONF_OPT += --disable-soup
+endif
+#ifeq ($(BR2_PACKAGE_STRONGSWAN_LDAP),y)
+# STRONGSWAN_DEPENDENCIES += openldap
+# STRONGSWAN_CONF_OPT += --enable-ldap
+#else
+# STRONGSWAN_CONF_OPT += --disable-ldap
+#endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_AES),y)
+ STRONGSWAN_CONF_OPT += --enable-aes
+else
+ STRONGSWAN_CONF_OPT += --disable-aes
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_DES),y)
+ STRONGSWAN_CONF_OPT += --enable-des
+else
+ STRONGSWAN_CONF_OPT += --disable-des
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_BLOWFISH),y)
+ STRONGSWAN_CONF_OPT += --enable-blowfish
+else
+ STRONGSWAN_CONF_OPT += --disable-blowfish
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_MD4),y)
+ STRONGSWAN_CONF_OPT += --enable-md4
+else
+ STRONGSWAN_CONF_OPT += --disable-md4
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_MD5),y)
+ STRONGSWAN_CONF_OPT += --enable-md5
+else
+ STRONGSWAN_CONF_OPT += --disable-md5
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_SHA1),y)
+ STRONGSWAN_CONF_OPT += --enable-sha1
+else
+ STRONGSWAN_CONF_OPT += --disable-sha1
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_SHA2),y)
+ STRONGSWAN_CONF_OPT += --enable-sha2
+else
+ STRONGSWAN_CONF_OPT += --disable-sha2
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_FIPS-PRF),y)
+ STRONGSWAN_CONF_OPT += --enable-fips-prf
+else
+ STRONGSWAN_CONF_OPT += --disable-fips-prf
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_GMP),y)
+ STRONGSWAN_DEPENDENCIES += gmp
+ STRONGSWAN_CONF_OPT += --enable-gmp
+else
+ STRONGSWAN_CONF_OPT += --disable-gmp
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_RANDOM),y)
+ STRONGSWAN_CONF_OPT += --enable-random
+else
+ STRONGSWAN_CONF_OPT += --disable-random
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_NONCE),y)
+ STRONGSWAN_CONF_OPT += --enable-nonce
+else
+ STRONGSWAN_CONF_OPT += --disable-nonce
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_X509),y)
+ STRONGSWAN_CONF_OPT += --enable-x509
+else
+ STRONGSWAN_CONF_OPT += --disable-x509
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_REVOCATION),y)
+ STRONGSWAN_CONF_OPT += --enable-revocation
+else
+ STRONGSWAN_CONF_OPT += --disable-revocation
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_CONSTRAINTS),y)
+ STRONGSWAN_CONF_OPT += --enable-constraints
+else
+ STRONGSWAN_CONF_OPT += --disable-constraints
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_PUBKEY),y)
+ STRONGSWAN_CONF_OPT += --enable-pubkey
+else
+ STRONGSWAN_CONF_OPT += --disable-pubkey
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_PKCS1),y)
+ STRONGSWAN_CONF_OPT += --enable-pkcs1
+else
+ STRONGSWAN_CONF_OPT += --disable-pkcs1
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_PKCS8),y)
+ STRONGSWAN_CONF_OPT += --enable-pkcs8
+else
+ STRONGSWAN_CONF_OPT += --disable-pkcs8
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_PGP),y)
+ STRONGSWAN_CONF_OPT += --enable-pgp
+else
+ STRONGSWAN_CONF_OPT += --disable-pgp
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_DNSKEY),y)
+ STRONGSWAN_CONF_OPT += --enable-dnskey
+else
+ STRONGSWAN_CONF_OPT += --disable-dnskey
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_PEM),y)
+ STRONGSWAN_CONF_OPT += --enable-pem
+else
+ STRONGSWAN_CONF_OPT += --disable-pem
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_HMAC),y)
+ STRONGSWAN_CONF_OPT += --enable-hmac
+else
+ STRONGSWAN_CONF_OPT += --disable-hmac
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_CMAC),y)
+ STRONGSWAN_CONF_OPT += --enable-cmac
+else
+ STRONGSWAN_CONF_OPT += --disable-cmac
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_XCBC),y)
+ STRONGSWAN_CONF_OPT += --enable-xcbc
+else
+ STRONGSWAN_CONF_OPT += --disable-xcbc
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_AF-ALG),y)
+ STRONGSWAN_CONF_OPT += --enable-af-alg
+else
+ STRONGSWAN_CONF_OPT += --disable-af-alg
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_TEST-VECTORS),y)
+ STRONGSWAN_CONF_OPT += --enable-test-vectors
+else
+ STRONGSWAN_CONF_OPT += --disable-test-vectors
+endif
+#ifeq ($(BR2_PACKAGE_STRONGSWAN_MYSQL),y)
+# STRONGSWAN_DEPENDENCIES += mysql_client
+# STRONGSWAN_CONF_OPT += --enable-mysql
+#else
+# STRONGSWAN_CONF_OPT += --disable-mysql
+#endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_SQLITE),y)
+ STRONGSWAN_DEPENDENCIES += sqlite
+ STRONGSWAN_CONF_OPT += --enable-sqlite
+else
+ STRONGSWAN_CONF_OPT += --disable-sqlite
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_STROKE),y)
+ STRONGSWAN_CONF_OPT += --enable-stroke
+else
+ STRONGSWAN_CONF_OPT += --disable-stroke
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_MEDSRV),y)
+ STRONGSWAN_CONF_OPT += --enable-medsrv
+else
+ STRONGSWAN_CONF_OPT += --disable-medsrv
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_MEDCLI),y)
+ STRONGSWAN_CONF_OPT += --enable-medcli
+else
+ STRONGSWAN_CONF_OPT += --disable-medcli
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_SMP),y)
+ STRONGSWAN_DEPENDENCIES += libxml2
+ STRONGSWAN_CONF_OPT += --enable-smp
+else
+ STRONGSWAN_CONF_OPT += --disable-smp
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_SQL),y)
+ STRONGSWAN_CONF_OPT += --enable-sql
+else
+ STRONGSWAN_CONF_OPT += --disable-sql
+endif
+# Not work?
+#ifeq ($(BR2_PACKAGE_STRONGSWAN_LEAK-DETECTIVE),y)
+# STRONGSWAN_CONF_OPT += --enable-leak-detective
+#else
+# STRONGSWAN_CONF_OPT += --disable-leak-detective
+#endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_LOCK-PROFILER),y)
+ STRONGSWAN_CONF_OPT += --enable-lock-profiler
+else
+ STRONGSWAN_CONF_OPT += --disable-lock-profiler
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_UNIT-TESTER),y)
+ STRONGSWAN_CONF_OPT += --enable-unit-tester
+else
+ STRONGSWAN_CONF_OPT += --disable-unit-tester
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_LOAD-TESTER),y)
+ STRONGSWAN_CONF_OPT += --enable-load-tester
+else
+ STRONGSWAN_CONF_OPT += --disable-load-tester
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-SIM),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-sim
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-sim
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-SIM-FILE),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-sim-file
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-sim-file
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-SIM-PCSC),y)
+ STRONGSWAN_DEPENDENCIES += pcsc-lite
+ STRONGSWAN_CONF_OPT += --enable-eap-sim-pcsc
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-sim-pcsc
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-AKA),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-aka
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-aka
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-AKA-3GPP2),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-aka-3gpp2
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-aka-3gpp2
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-SIMAKA-SQL),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-simaka-sql
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-simaka-sql
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-SIMAKA-PSEUDONYM),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-simaka-pseudonym
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-simaka-pseudonym
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-SIMAKA-REAUTH),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-simaka-reauth
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-simaka-reauth
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-IDENTITY),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-identity
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-identity
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-MD5),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-md5
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-md5
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-GTC),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-gtc
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-gtc
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-MSCHAPV2),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-mschapv2
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-mschapv2
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-TLS),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-tls
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-tls
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-TTLS),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-ttls
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-ttls
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-PEAP),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-peap
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-peap
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-TNC),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-tnc
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-tnc
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-DYNAMIC),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-dynamic
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-dynamic
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-RADIUS),y)
+ STRONGSWAN_CONF_OPT += --enable-eap-radius
+else
+ STRONGSWAN_CONF_OPT += --disable-eap-radius
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_XAUTH-GENERIC),y)
+ STRONGSWAN_CONF_OPT += --enable-xauth-generic
+else
+ STRONGSWAN_CONF_OPT += --disable-xauth-generic
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_XAUTH-EAP),y)
+ STRONGSWAN_CONF_OPT += --enable-xauth-eap
+else
+ STRONGSWAN_CONF_OPT += --disable-xauth-eap
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_XAUTH-PAM),y)
+ STRONGSWAN_DEPENDENCIES += linux-pam
+ STRONGSWAN_CONF_OPT += --enable-xauth-pam
+else
+ STRONGSWAN_CONF_OPT += --disable-xauth-pam
+endif
+#ifeq ($(BR2_PACKAGE_STRONGSWAN_TNC-IFMAP),y)
+# STRONGSWAN_DEPENDENCIES += axis2c
+# STRONGSWAN_CONF_OPT += --enable-tnc-ifmap
+#else
+# STRONGSWAN_CONF_OPT += --disable-tnc-ifmap
+#endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_TNC-PDP),y)
+ STRONGSWAN_CONF_OPT += --enable-tnc-pdp
+else
+ STRONGSWAN_CONF_OPT += --disable-tnc-pdp
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_TNC-IMC),y)
+ STRONGSWAN_CONF_OPT += --enable-tnc-imc
+else
+ STRONGSWAN_CONF_OPT += --disable-tnc-imc
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_TNC-IMV),y)
+ STRONGSWAN_CONF_OPT += --enable-tnc-imv
+else
+ STRONGSWAN_CONF_OPT += --disable-tnc-imv
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_TNCCS-11),y)
+ STRONGSWAN_DEPENDENCIES += libxml2
+ STRONGSWAN_CONF_OPT += --enable-tnccs-11
+else
+ STRONGSWAN_CONF_OPT += --disable-tnccs-11
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_TNCCS-20),y)
+ STRONGSWAN_CONF_OPT += --enable-tnccs-20
+else
+ STRONGSWAN_CONF_OPT += --disable-tnccs-20
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_TNCCS-DYNAMIC),y)
+ STRONGSWAN_CONF_OPT += --enable-tnccs-dynamic
+else
+ STRONGSWAN_CONF_OPT += --disable-tnccs-dynamic
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_IMC-TEST),y)
+ STRONGSWAN_CONF_OPT += --enable-imc-test
+else
+ STRONGSWAN_CONF_OPT += --disable-imc-test
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_IMV-TEST),y)
+ STRONGSWAN_CONF_OPT += --enable-imv-test
+else
+ STRONGSWAN_CONF_OPT += --disable-imv-test
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_IMC-SCANNER),y)
+ STRONGSWAN_CONF_OPT += --enable-imc-scanner
+else
+ STRONGSWAN_CONF_OPT += --disable-imc-scanner
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_IMV-SCANNER),y)
+ STRONGSWAN_CONF_OPT += --enable-imv-scanner
+else
+ STRONGSWAN_CONF_OPT += --disable-imv-scanner
+endif
+# ifeq ($(BR2_PACKAGE_STRONGSWAN_IMC-ATTESTATION),y)
+# STRONGSWAN_DEPENDENCIES += libtspi
+# STRONGSWAN_CONF_OPT += --enable-imc-attestation
+# else
+# STRONGSWAN_CONF_OPT += --disable-imc-attestation
+# endif
+# ifeq ($(BR2_PACKAGE_STRONGSWAN_IMV-ATTESTATION),y)
+# STRONGSWAN_DEPENDENCIES += libtspi
+# STRONGSWAN_CONF_OPT += --enable-imv-attestation
+# else
+# STRONGSWAN_CONF_OPT += --disable-imv-attestation
+# endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_KERNEL-NETLINK),y)
+ STRONGSWAN_CONF_OPT += --enable-kernel-netlink
+else
+ STRONGSWAN_CONF_OPT += --disable-kernel-netlink
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_KERNEL-PFKEY),y)
+ STRONGSWAN_CONF_OPT += --enable-kernel-pfkey
+else
+ STRONGSWAN_CONF_OPT += --disable-kernel-pfkey
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_KERNEL-PFROUTE),y)
+ STRONGSWAN_CONF_OPT += --enable-kernel-pfroute
+else
+ STRONGSWAN_CONF_OPT += --disable-kernel-pfroute
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_KERNEL-KLIPS),y)
+ STRONGSWAN_CONF_OPT += --enable-kernel-klips
+else
+ STRONGSWAN_CONF_OPT += --disable-kernel-klips
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_LIBIPSEC),y)
+ STRONGSWAN_CONF_OPT += --enable-libipsec
+else
+ STRONGSWAN_CONF_OPT += --disable-libipsec
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_SOCKET-DEFAULT),y)
+ STRONGSWAN_CONF_OPT += --enable-socket-default
+else
+ STRONGSWAN_CONF_OPT += --disable-socket-default
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_SOCKET-DYNAMIC),y)
+ STRONGSWAN_CONF_OPT += --enable-socket-dynamic
+else
+ STRONGSWAN_CONF_OPT += --disable-socket-dynamic
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_FARP),y)
+ STRONGSWAN_CONF_OPT += --enable-farp
+else
+ STRONGSWAN_CONF_OPT += --disable-farp
+endif
+#ifeq ($(BR2_PACKAGE_STRONGSWAN_DUMM),y)
+# STRONGSWAN_DEPENDENCIES += libgtk2 vte
+# STRONGSWAN_CONF_OPT += --enable-dumm
+#else
+# STRONGSWAN_CONF_OPT += --disable-dumm
+#endif
+#ifeq ($(BR2_PACKAGE_STRONGSWAN_FAST),y)
+# STRONGSWAN_DEPENDENCIES += neo_cgi
+# STRONGSWAN_CONF_OPT += --enable-fast
+#else
+# STRONGSWAN_CONF_OPT += --disable-fast
+#endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_MANAGER),y)
+ STRONGSWAN_CONF_OPT += --enable-manager
+else
+ STRONGSWAN_CONF_OPT += --disable-manager
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_MEDIATION),y)
+ STRONGSWAN_CONF_OPT += --enable-mediation
+else
+ STRONGSWAN_CONF_OPT += --disable-mediation
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_INTEGRITY-TEST),y)
+ STRONGSWAN_CONF_OPT += --enable-integrity-test
+else
+ STRONGSWAN_CONF_OPT += --disable-integrity-test
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_LOAD-WARNING),y)
+ STRONGSWAN_CONF_OPT += --enable-load-warning
+else
+ STRONGSWAN_CONF_OPT += --disable-load-warning
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_IKEV1),y)
+ STRONGSWAN_CONF_OPT += --enable-ikev1
+else
+ STRONGSWAN_CONF_OPT += --disable-ikev1
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_IKEV2),y)
+ STRONGSWAN_CONF_OPT += --enable-ikev2
+else
+ STRONGSWAN_CONF_OPT += --disable-ikev2
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_CHARON),y)
+ STRONGSWAN_CONF_OPT += --enable-charon
+else
+ STRONGSWAN_CONF_OPT += --disable-charon
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_TOOLS),y)
+ STRONGSWAN_CONF_OPT += --enable-tools
+else
+ STRONGSWAN_CONF_OPT += --disable-tools
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_SCRIPTS),y)
+ STRONGSWAN_CONF_OPT += --enable-scripts
+else
+ STRONGSWAN_CONF_OPT += --disable-scripts
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_CONFTEST),y)
+ STRONGSWAN_CONF_OPT += --enable-conftest
+else
+ STRONGSWAN_CONF_OPT += --disable-conftest
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_UPDOWN),y)
+ STRONGSWAN_CONF_OPT += --enable-updown
+else
+ STRONGSWAN_CONF_OPT += --disable-updown
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_ATTR),y)
+ STRONGSWAN_CONF_OPT += --enable-attr
+else
+ STRONGSWAN_CONF_OPT += --disable-attr
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_ATTR-SQL),y)
+ STRONGSWAN_CONF_OPT += --enable-attr-sql
+else
+ STRONGSWAN_CONF_OPT += --disable-attr-sql
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_DHCP),y)
+ STRONGSWAN_CONF_OPT += --enable-dhcp
+else
+ STRONGSWAN_CONF_OPT += --disable-dhcp
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_RESOLVE),y)
+ STRONGSWAN_CONF_OPT += --enable-resolve
+else
+ STRONGSWAN_CONF_OPT += --disable-resolve
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_PADLOCK),y)
+ STRONGSWAN_CONF_OPT += --enable-padlock
+else
+ STRONGSWAN_CONF_OPT += --disable-padlock
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_OPENSSL),y)
+ STRONGSWAN_CONF_OPT += --enable-openssl
+else
+ STRONGSWAN_CONF_OPT += --disable-openssl
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_GCRYPT),y)
+ STRONGSWAN_DEPENDENCIES += libgcrypt
+ STRONGSWAN_CONF_OPT += --enable-gcrypt
+else
+ STRONGSWAN_CONF_OPT += --disable-gcrypt
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_AGENT),y)
+ STRONGSWAN_CONF_OPT += --enable-agent
+else
+ STRONGSWAN_CONF_OPT += --disable-agent
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_PKCS11),y)
+ STRONGSWAN_CONF_OPT += --enable-pkcs11
+else
+ STRONGSWAN_CONF_OPT += --disable-pkcs11
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_CTR),y)
+ STRONGSWAN_CONF_OPT += --enable-ctr
+else
+ STRONGSWAN_CONF_OPT += --disable-ctr
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_CCM),y)
+ STRONGSWAN_CONF_OPT += --enable-ccm
+else
+ STRONGSWAN_CONF_OPT += --disable-ccm
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_GCM),y)
+ STRONGSWAN_CONF_OPT += --enable-gcm
+else
+ STRONGSWAN_CONF_OPT += --disable-gcm
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_ADDRBLOCK),y)
+ STRONGSWAN_CONF_OPT += --enable-addrblock
+else
+ STRONGSWAN_CONF_OPT += --disable-addrblock
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_UNITY),y)
+ STRONGSWAN_CONF_OPT += --enable-unity
+else
+ STRONGSWAN_CONF_OPT += --disable-unity
+endif
+#ifeq ($(BR2_PACKAGE_STRONGSWAN_UCI),y)
+# STRONGSWAN_DEPENDENCIES += libuci
+# STRONGSWAN_CONF_OPT += --enable-uci
+#else
+# STRONGSWAN_CONF_OPT += --disable-uci
+#endif
+#ifeq ($(BR2_PACKAGE_STRONGSWAN_ANDROID),y)
+# STRONGSWAN_CONF_OPT += --enable-android
+#else
+# STRONGSWAN_CONF_OPT += --disable-android
+#endif
+#ifeq ($(BR2_PACKAGE_STRONGSWAN_ANDROID-LOG),y)
+# STRONGSWAN_CONF_OPT += --enable-android-log
+#else
+# STRONGSWAN_CONF_OPT += --disable-android-log
+#endif
+#ifeq ($(BR2_PACKAGE_STRONGSWAN_MAEMO),y)
+# STRONGSWAN_CONF_OPT += --enable-maemo
+#else
+# STRONGSWAN_CONF_OPT += --disable-maemo
+#endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_NM),y)
+ STRONGSWAN_DEPENDENCIES += network-manager
+ STRONGSWAN_CONF_OPT += --enable-nm
+else
+ STRONGSWAN_CONF_OPT += --disable-nm
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_HA),y)
+ STRONGSWAN_CONF_OPT += --enable-ha
+else
+ STRONGSWAN_CONF_OPT += --disable-ha
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_WHITELIST),y)
+ STRONGSWAN_CONF_OPT += --enable-whitelist
+else
+ STRONGSWAN_CONF_OPT += --disable-whitelist
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_CERTEXPIRE),y)
+ STRONGSWAN_CONF_OPT += --enable-certexpire
+else
+ STRONGSWAN_CONF_OPT += --disable-certexpire
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_LED),y)
+ STRONGSWAN_CONF_OPT += --enable-led
+else
+ STRONGSWAN_CONF_OPT += --disable-led
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_DUPLICHECK),y)
+ STRONGSWAN_CONF_OPT += --enable-duplicheck
+else
+ STRONGSWAN_CONF_OPT += --disable-duplicheck
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_COUPLING),y)
+ STRONGSWAN_CONF_OPT += --enable-coupling
+else
+ STRONGSWAN_CONF_OPT += --disable-coupling
+endif
+ifeq ($(BR2_PACKAGE_STRONGSWAN_RADATTR),y)
+ STRONGSWAN_CONF_OPT += --enable-radattr
+else
+ STRONGSWAN_CONF_OPT += --disable-radattr
+endif
+
+$(eval $(autotools-package))
+
--
1.7.9.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH] strongswan: new package
2013-02-08 17:43 [Buildroot] [PATCH] strongswan: new package Jérôme Pouiller
@ 2013-02-08 18:02 ` Thomas Petazzoni
2013-02-12 11:19 ` Jérôme Pouiller
0 siblings, 1 reply; 14+ messages in thread
From: Thomas Petazzoni @ 2013-02-08 18:02 UTC (permalink / raw)
To: buildroot
Dear J?r?me Pouiller,
A few comments (at the top because the patch is big and the comments
are very general) :
* We never use "-" in kconfig configuration names, so please don't use
it.
* Please leave empty new lines between kconfig options, and between
ifeq...endif blocks in the .mk file.
* Are you sure we need gazillions of configuration options like you
had? It seems like you went on by adding one kconfig option for each
option the ./configure script provides. This is generally not what
we do. Package what you need, possibly with some kconfig options,
and then people can progressively extend that with more options as
needed.
* For the options that do not have a dependency, you may use the
following syntax in the .mk file:
BLABLA_CONF_OPT = $(if $(BR2_PACKAGE_BLABLA_FEATURE),--enable,--disable)-feature
* The "default y" line is generally put after the "bool" line.
* The LICENSE and LICENSE_FILES variables are missing.
* Please don't add code that is commented. Remove it before submitting
patches. Either the code is used and works, or it isn't used and
shouldn't be submitted.
Thanks!
Thomas
On Fri, 8 Feb 2013 18:43:03 +0100, J?r?me Pouiller wrote:
> strongSwan is an OpenSource IPsec implementation for the
> Linux operating system. It is based on the discontinued
> FreeS/WAN project and the X.509 patch.
>
> The focus is on:
> - simplicity of configuration
> - strong encryption and authentication methods
> - powerful IPsec policies supporting large and complex VPN networks
>
> http://www.strongswan.org/
>
> Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
> ---
> package/Config.in | 1 +
> package/strongswan/Config.in | 318 +++++++++++++++++++
> package/strongswan/strongswan.mk | 633 ++++++++++++++++++++++++++++++++++++++
> 3 files changed, 952 insertions(+)
> create mode 100644 package/strongswan/Config.in
> create mode 100644 package/strongswan/strongswan.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 8e4235b..383a0e0 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -700,6 +700,7 @@ source "package/spawn-fcgi/Config.in"
> source "package/spice-protocol/Config.in"
> source "package/spice/Config.in"
> source "package/squid/Config.in"
> +source "package/strongswan/Config.in"
> source "package/stunnel/Config.in"
> source "package/tcpdump/Config.in"
> source "package/tcpreplay/Config.in"
> diff --git a/package/strongswan/Config.in b/package/strongswan/Config.in
> new file mode 100644
> index 0000000..b206bb8
> --- /dev/null
> +++ b/package/strongswan/Config.in
> @@ -0,0 +1,318 @@
> +menuconfig BR2_PACKAGE_STRONGSWAN
> + bool "strongswan"
> + help
> + strongSwan is an OpenSource IPsec implementation for the
> + Linux operating system. It is based on the discontinued
> + FreeS/WAN project and the X.509 patch.
> +
> + The focus is on:
> + - simplicity of configuration
> + - strong encryption and authentication methods
> + - powerful IPsec policies supporting large and complex VPN networks
> +
> + http://www.strongswan.org/
> +
> +if BR2_PACKAGE_STRONGSWAN
> +config BR2_PACKAGE_STRONGSWAN_CURL
> + bool "enable CURL fetcher plugin to fetch files via libcurl"
> + select BR2_PACKAGE_LIBCURL
> +config BR2_PACKAGE_STRONGSWAN_SOUP
> + bool "enable soup fetcher plugin to fetch from HTTP via libsoup"
> + select BR2_PACKAGE_LIBSOUP
> +#config BR2_PACKAGE_STRONGSWAN_LDAP
> +# bool "enable LDAP fetching plugin to fetch files via libldap"
> +# select BR2_PACKAGE_LDAP
> +config BR2_PACKAGE_STRONGSWAN_AES
> + default y
> + bool "enable AES software implementation plugin"
> +config BR2_PACKAGE_STRONGSWAN_DES
> + default y
> + bool "enable DES/3DES software implementation plugin"
> +config BR2_PACKAGE_STRONGSWAN_BLOWFISH
> + bool "enable Blowfish software implementation plugin"
> +config BR2_PACKAGE_STRONGSWAN_MD4
> + bool "enable MD4 software implementation plugin"
> +config BR2_PACKAGE_STRONGSWAN_MD5
> + default y
> + bool "enable MD5 software implementation plugin"
> +config BR2_PACKAGE_STRONGSWAN_SHA1
> + default y
> + bool "enable SHA1 software implementation plugin"
> +config BR2_PACKAGE_STRONGSWAN_SHA2
> + default y
> + bool "enable SHA256/SHA384/SHA512 software implementation plugin"
> +config BR2_PACKAGE_STRONGSWAN_FIPS-PRF
> + default y
> + bool "enable FIPS PRF software implementation plugin"
> +config BR2_PACKAGE_STRONGSWAN_GMP
> + default y
> + bool "enable GNU MP (libgmp) based crypto implementation plugin"
> + select BR2_PACKAGE_GMP
> +config BR2_PACKAGE_STRONGSWAN_RANDOM
> + default y
> + bool "enable RNG implementation on top of /dev/(u)random"
> +config BR2_PACKAGE_STRONGSWAN_NONCE
> + default y
> + bool "enable nonce generation plugin"
> +config BR2_PACKAGE_STRONGSWAN_X509
> + default y
> + bool "enable X509 certificate implementation plugin"
> +config BR2_PACKAGE_STRONGSWAN_REVOCATION
> + default y
> + bool "enable X509 CRL/OCSP revocation check plugin"
> +config BR2_PACKAGE_STRONGSWAN_CONSTRAINTS
> + default y
> + bool "enable advanced X509 constraint checking plugin"
> +config BR2_PACKAGE_STRONGSWAN_PUBKEY
> + default y
> + bool "enable RAW public key support plugin"
> +config BR2_PACKAGE_STRONGSWAN_PKCS1
> + default y
> + bool "enable PKCS1 key decoding plugin"
> +config BR2_PACKAGE_STRONGSWAN_PKCS8
> + default y
> + bool "enable PKCS8 private key decoding plugin"
> +config BR2_PACKAGE_STRONGSWAN_PGP
> + default y
> + bool "enable PGP key decoding plugin"
> +config BR2_PACKAGE_STRONGSWAN_DNSKEY
> + default y
> + bool "enable DNS RR key decoding plugin"
> +config BR2_PACKAGE_STRONGSWAN_PEM
> + default y
> + bool "enable PEM decoding plugin"
> +config BR2_PACKAGE_STRONGSWAN_HMAC
> + default y
> + bool "enable HMAC crypto implementation plugin"
> +config BR2_PACKAGE_STRONGSWAN_CMAC
> + default y
> + bool "enable CMAC crypto implementation plugin"
> +config BR2_PACKAGE_STRONGSWAN_XCBC
> + default y
> + bool "enable xcbc crypto implementation plugin"
> +config BR2_PACKAGE_STRONGSWAN_AF-ALG
> + bool "enable AF_ALG crypto interface to Linux Crypto API"
> +config BR2_PACKAGE_STRONGSWAN_TEST-VECTORS
> + bool "enable plugin providing crypto test vectors"
> +# mysql_config is not installed in staging dir, so it does not work
> +#config BR2_PACKAGE_STRONGSWAN_MYSQL
> +# bool "enable MySQL database support"
> +# select BR2_PACKAGE_MYSQL_CLIENT
> +config BR2_PACKAGE_STRONGSWAN_SQLITE
> + bool "enable SQLite database support"
> + select BR2_PACKAGE_SQLITE
> +config BR2_PACKAGE_STRONGSWAN_STROKE
> + default y
> + bool "enable charons stroke configuration backend"
> +config BR2_PACKAGE_STRONGSWAN_SMP
> + bool "enable SMP configuration and control interface"
> + select BR2_PACKAGE_LIBXML2
> +config BR2_PACKAGE_STRONGSWAN_SQL
> + bool "enable SQL database configuration backend"
> +#config BR2_PACKAGE_STRONGSWAN_LEAK-DETECTIVE
> +# bool "enable malloc hooks to find memory leaks"
> +config BR2_PACKAGE_STRONGSWAN_LOCK-PROFILER
> + bool "enable lock/mutex profiling code"
> +config BR2_PACKAGE_STRONGSWAN_UNIT-TESTER
> + bool "enable unit tests on IKEv2 daemon startup"
> +config BR2_PACKAGE_STRONGSWAN_LOAD-TESTER
> + bool "enable load testing plugin for IKEv2 daemon"
> +config BR2_PACKAGE_STRONGSWAN_EAP-SIM
> + bool "enable SIM authentication module for EAP"
> +config BR2_PACKAGE_STRONGSWAN_EAP-SIM-FILE
> + bool "enable EAP-SIM backend based on a triplet file"
> +config BR2_PACKAGE_STRONGSWAN_EAP-SIM-PCSC
> + bool "enable EAP-SIM backend based on a smartcard reader"
> + select BR2_PACKAGE_PCSC_LITE
> +config BR2_PACKAGE_STRONGSWAN_EAP-AKA
> + bool "enable EAP AKA authentication module"
> +config BR2_PACKAGE_STRONGSWAN_EAP-AKA-3GPP2
> + bool "enable EAP AKA backend implementing 3GPP2 algorithms in software"
> + select BR2_PACKAGE_GMP
> +config BR2_PACKAGE_STRONGSWAN_EAP-SIMAKA-SQL
> + bool "enable EAP-SIM/AKA backend based on a triplet/quintuplet SQL database"
> +config BR2_PACKAGE_STRONGSWAN_EAP-SIMAKA-PSEUDONYM
> + bool "enable EAP-SIM/AKA pseudonym storage plugin"
> +config BR2_PACKAGE_STRONGSWAN_EAP-SIMAKA-REAUTH
> + bool "enable EAP-SIM/AKA reauthentication data storage plugin"
> +config BR2_PACKAGE_STRONGSWAN_EAP-IDENTITY
> + bool "enable EAP module providing EAP-Identity helper"
> +config BR2_PACKAGE_STRONGSWAN_EAP-MD5
> + bool "enable EAP MD5 (CHAP) authentication module"
> +config BR2_PACKAGE_STRONGSWAN_EAP-GTC
> + bool "enable EAP GTC authentication module"
> +config BR2_PACKAGE_STRONGSWAN_EAP-MSCHAPV2
> + bool "enable EAP MS-CHAPv2 authentication module"
> +config BR2_PACKAGE_STRONGSWAN_EAP-TLS
> + bool "enable EAP TLS authentication module"
> +config BR2_PACKAGE_STRONGSWAN_EAP-TTLS
> + bool "enable EAP TTLS authentication module"
> +config BR2_PACKAGE_STRONGSWAN_EAP-PEAP
> + bool "enable EAP PEAP authentication module"
> +config BR2_PACKAGE_STRONGSWAN_EAP-TNC
> + bool "enable EAP TNC trusted network connect module"
> +config BR2_PACKAGE_STRONGSWAN_EAP-DYNAMIC
> + bool "enable dynamic EAP proxy module"
> +config BR2_PACKAGE_STRONGSWAN_EAP-RADIUS
> + bool "enable RADIUS proxy authentication module"
> +config BR2_PACKAGE_STRONGSWAN_XAUTH-GENERIC
> + default y
> + bool "enable generic XAuth backend"
> +config BR2_PACKAGE_STRONGSWAN_XAUTH-EAP
> + bool "enable XAuth backend using EAP methods to verify passwords"
> +config BR2_PACKAGE_STRONGSWAN_XAUTH-PAM
> + bool "enable XAuth backend using PAM to verify passwords"
> + select BR2_PACKAGE_LINUX_PAM
> +#config BR2_PACKAGE_STRONGSWAN_TNC-IFMAP
> +# bool "enable TNC IF-MAP module"
> +# select BR2_PACKAGE_AXIS2C
> +config BR2_PACKAGE_STRONGSWAN_TNC-PDP
> + bool "enable TNC policy decision point module"
> +config BR2_PACKAGE_STRONGSWAN_TNC-IMC
> + bool "enable TNC IMC module"
> +config BR2_PACKAGE_STRONGSWAN_TNC-IMV
> + bool "enable TNC IMV module"
> +config BR2_PACKAGE_STRONGSWAN_TNCCS-11
> + bool "enable TNCCS 1.1 protocol module"
> + select BR2_PACKAGE_LIBXML2
> +config BR2_PACKAGE_STRONGSWAN_TNCCS-20
> + bool "enable TNCCS 2.0 protocol module"
> +config BR2_PACKAGE_STRONGSWAN_TNCCS-DYNAMIC
> + bool "enable dynamic TNCCS protocol discovery module"
> +config BR2_PACKAGE_STRONGSWAN_IMC-TEST
> + bool "enable IMC test module"
> +config BR2_PACKAGE_STRONGSWAN_IMV-TEST
> + bool "enable IMV test module"
> +config BR2_PACKAGE_STRONGSWAN_IMC-SCANNER
> + bool "enable IMC port scanner module"
> +config BR2_PACKAGE_STRONGSWAN_IMV-SCANNER
> + bool "enable IMV port scanner module"
> +#config BR2_PACKAGE_STRONGSWAN_IMC-ATTESTATION
> +# bool "enable IMC attestation module"
> +# select LIBTSPI
> +#config BR2_PACKAGE_STRONGSWAN_IMV-ATTESTATION
> +# bool "enable IMV attestation module"
> +# select LIBTSPI
> +config BR2_PACKAGE_STRONGSWAN_NETLINK
> + default y
> + bool "enable the netlink kernel interface"
> +config BR2_PACKAGE_STRONGSWAN_KERNEL-PFKEY
> + bool "enable the PF_KEY kernel interface"
> +config BR2_PACKAGE_STRONGSWAN_KERNEL-PFROUTE
> + bool "enable the PF_ROUTE kernel interface"
> +config BR2_PACKAGE_STRONGSWAN_KERNEL-KLIPS
> + bool "enable the KLIPS kernel interface"
> +config BR2_PACKAGE_STRONGSWAN_LIBIPSEC
> + bool "enable user space IPsec implementation"
> +config BR2_PACKAGE_STRONGSWAN_SOCKET-DEFAULT
> + default y
> + bool "enable default socket implementation for charon"
> +config BR2_PACKAGE_STRONGSWAN_SOCKET-DYNAMIC
> + bool "enable dynamic socket implementation for charon"
> +config BR2_PACKAGE_STRONGSWAN_FARP
> + bool "enable ARP faking plugin that responds to ARP requests to peers virtual IP"
> +#config BR2_PACKAGE_STRONGSWAN_DUMM
> +# bool "enable the DUMM UML test framework"
> +# select BR2_PACKAGE_LIBGTK2
> +# select BR2_PACKAGE_VTE
> +#config BR2_PACKAGE_STRONGSWAN_FAST
> +# bool "enable libfast (FastCGI Application Server w/ templates)"
> +# select BR2_PACKAGE_
> +#config BR2_PACKAGE_STRONGSWAN_MANAGER
> +# bool "enable web management console (proof of concept)"
> +# select BR2_PACKAGE_STRONGSWAN_FAST
> +config BR2_PACKAGE_STRONGSWAN_MEDIATION
> + bool "enable IKEv2 Mediation Extension"
> +
> +if BR2_PACKAGE_STRONGSWAN_MEDIATION
> +#config BR2_PACKAGE_STRONGSWAN_MEDSRV
> +# bool "enable mediation server web frontend and daemon plugin"
> +# select BR2_PACKAGE_STRONGSWAN_FAST
> +config BR2_PACKAGE_STRONGSWAN_MEDCLI
> + bool "enable mediation client configuration database plugin"
> +endif
> +
> +config BR2_PACKAGE_STRONGSWAN_INTEGRITY-TEST
> + bool "enable integrity testing of libstrongswan and plugins"
> +config BR2_PACKAGE_STRONGSWAN_LOAD-WARNING
> + default y
> + bool "enable the charon plugin load option warning in starter"
> +config BR2_PACKAGE_STRONGSWAN_IKEV1
> + default y
> + bool "enable IKEv1 protocol support in charon"
> +config BR2_PACKAGE_STRONGSWAN_IKEV2
> + default y
> + bool "enable IKEv2 protocol support in charon"
> +config BR2_PACKAGE_STRONGSWAN_CHARON
> + default y
> + bool "enable the IKEv1/IKEv2 keying daemon charon"
> +config BR2_PACKAGE_STRONGSWAN_TOOLS
> + default y
> + bool "enable additional utilities (openac, scepclient and pki)"
> +config BR2_PACKAGE_STRONGSWAN_SCRIPTS
> + default y
> + bool "enable additional utilities (found in directory scripts)"
> +config BR2_PACKAGE_STRONGSWAN_CONFTEST
> + bool "enforce Suite B conformance test framework"
> +config BR2_PACKAGE_STRONGSWAN_UPDOWN
> + default y
> + bool "enable updown firewall script plugin"
> +config BR2_PACKAGE_STRONGSWAN_ATTR
> + default y
> + bool "enable strongswan.conf based configuration attribute plugin"
> +config BR2_PACKAGE_STRONGSWAN_ATTR-SQL
> + bool "enable SQL based configuration attribute plugin"
> +config BR2_PACKAGE_STRONGSWAN_DHCP
> + bool "enable DHCP based attribute provider plugin"
> +config BR2_PACKAGE_STRONGSWAN_RESOLVE
> + default y
> + bool "enable resolve DNS handler plugin"
> +config BR2_PACKAGE_STRONGSWAN_PADLOCK
> + bool "enables VIA Padlock crypto plugin"
> + depends on (BR2_i386 || BR2_x86_64)
> +config BR2_PACKAGE_STRONGSWAN_OPENSSL
> + bool "enables the OpenSSL crypto plugin"
> +config BR2_PACKAGE_STRONGSWAN_GCRYPT
> + bool "enables the libgcrypt plugin"
> + select LIBGCRYPT
> +config BR2_PACKAGE_STRONGSWAN_AGENT
> + bool "enables the ssh-agent signing plugin"
> +config BR2_PACKAGE_STRONGSWAN_PKCS11
> + bool "enables the PKCS11 token support plugin"
> +config BR2_PACKAGE_STRONGSWAN_CTR
> + bool "enables the Counter Mode wrapper crypto plugin"
> +config BR2_PACKAGE_STRONGSWAN_CCM
> + bool "enables the CCM AEAD wrapper crypto plugin"
> +config BR2_PACKAGE_STRONGSWAN_GCM
> + bool "enables the GCM AEAD wrapper crypto plugin"
> +config BR2_PACKAGE_STRONGSWAN_ADDRBLOCK
> + bool "enables RFC 3779 address block constraint support"
> +config BR2_PACKAGE_STRONGSWAN_UNITY
> + bool "enables Cisco Unity extension plugin"
> +#config BR2_PACKAGE_STRONGSWAN_UCI
> +# bool "enable OpenWRT UCI configuration plugin"
> +# select BR2_PACKAGE_LIBUCI
> +#config BR2_PACKAGE_STRONGSWAN_ANDROID
> +# bool "enable Android specific plugin"
> +#config BR2_PACKAGE_STRONGSWAN_ANDROID-LOG
> +# bool "enable Android specific logger plugin"
> +#config BR2_PACKAGE_STRONGSWAN_MAEMO
> +# bool "enable Maemo specific plugin"
> +config BR2_PACKAGE_STRONGSWAN_NM
> + bool "enable NetworkManager backend"
> + select BR2_PACKAGE_NETWORK_MANAGER
> +config BR2_PACKAGE_STRONGSWAN_HA
> + bool "enable high availability cluster plugin"
> +config BR2_PACKAGE_STRONGSWAN_WHITELIST
> + bool "enable peer identity whitelisting plugin"
> +config BR2_PACKAGE_STRONGSWAN_CERTEXPIRE
> + bool "enable CSV export of expiration dates of used certificates"
> +config BR2_PACKAGE_STRONGSWAN_LED
> + bool "enable plugin to control LEDs on IKEv2 activity using the Linux kernel LED subsystem"
> +config BR2_PACKAGE_STRONGSWAN_DUPLICHECK
> + bool "advanced duplicate checking plugin using liveness checks"
> +config BR2_PACKAGE_STRONGSWAN_COUPLING
> + bool "enable IKEv2 plugin to couple peer certificates permanently to authentication"
> +config BR2_PACKAGE_STRONGSWAN_RADATTR
> + bool "enable plugin to inject and process custom RADIUS attributes as IKEv2 client"
> +endif
> diff --git a/package/strongswan/strongswan.mk b/package/strongswan/strongswan.mk
> new file mode 100644
> index 0000000..5d7712b
> --- /dev/null
> +++ b/package/strongswan/strongswan.mk
> @@ -0,0 +1,633 @@
> +#############################################################
> +#
> +# strongSwan
> +#
> +#############################################################
> +
> +STRONGSWAN_VERSION = 5.0.1
> +STRONGSWAN_SOURCE = strongswan-$(STRONGSWAN_VERSION).tar.bz2
> +STRONGSWAN_SITE = http://download.strongswan.org
> +#STRONGSWAN_DEPENDENCIES = host-bison
> +
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_CURL),y)
> + STRONGSWAN_DEPENDENCIES += libcurl
> + STRONGSWAN_CONF_OPT += --enable-curl
> +else
> + STRONGSWAN_CONF_OPT += --disable-curl
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_SOUP),y)
> + STRONGSWAN_DEPENDENCIES += libsoup
> + STRONGSWAN_CONF_OPT += --enable-soup
> +else
> + STRONGSWAN_CONF_OPT += --disable-soup
> +endif
> +#ifeq ($(BR2_PACKAGE_STRONGSWAN_LDAP),y)
> +# STRONGSWAN_DEPENDENCIES += openldap
> +# STRONGSWAN_CONF_OPT += --enable-ldap
> +#else
> +# STRONGSWAN_CONF_OPT += --disable-ldap
> +#endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_AES),y)
> + STRONGSWAN_CONF_OPT += --enable-aes
> +else
> + STRONGSWAN_CONF_OPT += --disable-aes
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_DES),y)
> + STRONGSWAN_CONF_OPT += --enable-des
> +else
> + STRONGSWAN_CONF_OPT += --disable-des
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_BLOWFISH),y)
> + STRONGSWAN_CONF_OPT += --enable-blowfish
> +else
> + STRONGSWAN_CONF_OPT += --disable-blowfish
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_MD4),y)
> + STRONGSWAN_CONF_OPT += --enable-md4
> +else
> + STRONGSWAN_CONF_OPT += --disable-md4
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_MD5),y)
> + STRONGSWAN_CONF_OPT += --enable-md5
> +else
> + STRONGSWAN_CONF_OPT += --disable-md5
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_SHA1),y)
> + STRONGSWAN_CONF_OPT += --enable-sha1
> +else
> + STRONGSWAN_CONF_OPT += --disable-sha1
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_SHA2),y)
> + STRONGSWAN_CONF_OPT += --enable-sha2
> +else
> + STRONGSWAN_CONF_OPT += --disable-sha2
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_FIPS-PRF),y)
> + STRONGSWAN_CONF_OPT += --enable-fips-prf
> +else
> + STRONGSWAN_CONF_OPT += --disable-fips-prf
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_GMP),y)
> + STRONGSWAN_DEPENDENCIES += gmp
> + STRONGSWAN_CONF_OPT += --enable-gmp
> +else
> + STRONGSWAN_CONF_OPT += --disable-gmp
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_RANDOM),y)
> + STRONGSWAN_CONF_OPT += --enable-random
> +else
> + STRONGSWAN_CONF_OPT += --disable-random
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_NONCE),y)
> + STRONGSWAN_CONF_OPT += --enable-nonce
> +else
> + STRONGSWAN_CONF_OPT += --disable-nonce
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_X509),y)
> + STRONGSWAN_CONF_OPT += --enable-x509
> +else
> + STRONGSWAN_CONF_OPT += --disable-x509
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_REVOCATION),y)
> + STRONGSWAN_CONF_OPT += --enable-revocation
> +else
> + STRONGSWAN_CONF_OPT += --disable-revocation
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_CONSTRAINTS),y)
> + STRONGSWAN_CONF_OPT += --enable-constraints
> +else
> + STRONGSWAN_CONF_OPT += --disable-constraints
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_PUBKEY),y)
> + STRONGSWAN_CONF_OPT += --enable-pubkey
> +else
> + STRONGSWAN_CONF_OPT += --disable-pubkey
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_PKCS1),y)
> + STRONGSWAN_CONF_OPT += --enable-pkcs1
> +else
> + STRONGSWAN_CONF_OPT += --disable-pkcs1
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_PKCS8),y)
> + STRONGSWAN_CONF_OPT += --enable-pkcs8
> +else
> + STRONGSWAN_CONF_OPT += --disable-pkcs8
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_PGP),y)
> + STRONGSWAN_CONF_OPT += --enable-pgp
> +else
> + STRONGSWAN_CONF_OPT += --disable-pgp
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_DNSKEY),y)
> + STRONGSWAN_CONF_OPT += --enable-dnskey
> +else
> + STRONGSWAN_CONF_OPT += --disable-dnskey
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_PEM),y)
> + STRONGSWAN_CONF_OPT += --enable-pem
> +else
> + STRONGSWAN_CONF_OPT += --disable-pem
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_HMAC),y)
> + STRONGSWAN_CONF_OPT += --enable-hmac
> +else
> + STRONGSWAN_CONF_OPT += --disable-hmac
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_CMAC),y)
> + STRONGSWAN_CONF_OPT += --enable-cmac
> +else
> + STRONGSWAN_CONF_OPT += --disable-cmac
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_XCBC),y)
> + STRONGSWAN_CONF_OPT += --enable-xcbc
> +else
> + STRONGSWAN_CONF_OPT += --disable-xcbc
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_AF-ALG),y)
> + STRONGSWAN_CONF_OPT += --enable-af-alg
> +else
> + STRONGSWAN_CONF_OPT += --disable-af-alg
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_TEST-VECTORS),y)
> + STRONGSWAN_CONF_OPT += --enable-test-vectors
> +else
> + STRONGSWAN_CONF_OPT += --disable-test-vectors
> +endif
> +#ifeq ($(BR2_PACKAGE_STRONGSWAN_MYSQL),y)
> +# STRONGSWAN_DEPENDENCIES += mysql_client
> +# STRONGSWAN_CONF_OPT += --enable-mysql
> +#else
> +# STRONGSWAN_CONF_OPT += --disable-mysql
> +#endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_SQLITE),y)
> + STRONGSWAN_DEPENDENCIES += sqlite
> + STRONGSWAN_CONF_OPT += --enable-sqlite
> +else
> + STRONGSWAN_CONF_OPT += --disable-sqlite
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_STROKE),y)
> + STRONGSWAN_CONF_OPT += --enable-stroke
> +else
> + STRONGSWAN_CONF_OPT += --disable-stroke
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_MEDSRV),y)
> + STRONGSWAN_CONF_OPT += --enable-medsrv
> +else
> + STRONGSWAN_CONF_OPT += --disable-medsrv
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_MEDCLI),y)
> + STRONGSWAN_CONF_OPT += --enable-medcli
> +else
> + STRONGSWAN_CONF_OPT += --disable-medcli
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_SMP),y)
> + STRONGSWAN_DEPENDENCIES += libxml2
> + STRONGSWAN_CONF_OPT += --enable-smp
> +else
> + STRONGSWAN_CONF_OPT += --disable-smp
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_SQL),y)
> + STRONGSWAN_CONF_OPT += --enable-sql
> +else
> + STRONGSWAN_CONF_OPT += --disable-sql
> +endif
> +# Not work?
> +#ifeq ($(BR2_PACKAGE_STRONGSWAN_LEAK-DETECTIVE),y)
> +# STRONGSWAN_CONF_OPT += --enable-leak-detective
> +#else
> +# STRONGSWAN_CONF_OPT += --disable-leak-detective
> +#endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_LOCK-PROFILER),y)
> + STRONGSWAN_CONF_OPT += --enable-lock-profiler
> +else
> + STRONGSWAN_CONF_OPT += --disable-lock-profiler
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_UNIT-TESTER),y)
> + STRONGSWAN_CONF_OPT += --enable-unit-tester
> +else
> + STRONGSWAN_CONF_OPT += --disable-unit-tester
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_LOAD-TESTER),y)
> + STRONGSWAN_CONF_OPT += --enable-load-tester
> +else
> + STRONGSWAN_CONF_OPT += --disable-load-tester
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-SIM),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-sim
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-sim
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-SIM-FILE),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-sim-file
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-sim-file
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-SIM-PCSC),y)
> + STRONGSWAN_DEPENDENCIES += pcsc-lite
> + STRONGSWAN_CONF_OPT += --enable-eap-sim-pcsc
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-sim-pcsc
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-AKA),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-aka
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-aka
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-AKA-3GPP2),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-aka-3gpp2
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-aka-3gpp2
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-SIMAKA-SQL),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-simaka-sql
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-simaka-sql
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-SIMAKA-PSEUDONYM),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-simaka-pseudonym
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-simaka-pseudonym
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-SIMAKA-REAUTH),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-simaka-reauth
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-simaka-reauth
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-IDENTITY),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-identity
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-identity
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-MD5),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-md5
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-md5
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-GTC),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-gtc
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-gtc
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-MSCHAPV2),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-mschapv2
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-mschapv2
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-TLS),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-tls
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-tls
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-TTLS),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-ttls
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-ttls
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-PEAP),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-peap
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-peap
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-TNC),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-tnc
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-tnc
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-DYNAMIC),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-dynamic
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-dynamic
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP-RADIUS),y)
> + STRONGSWAN_CONF_OPT += --enable-eap-radius
> +else
> + STRONGSWAN_CONF_OPT += --disable-eap-radius
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_XAUTH-GENERIC),y)
> + STRONGSWAN_CONF_OPT += --enable-xauth-generic
> +else
> + STRONGSWAN_CONF_OPT += --disable-xauth-generic
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_XAUTH-EAP),y)
> + STRONGSWAN_CONF_OPT += --enable-xauth-eap
> +else
> + STRONGSWAN_CONF_OPT += --disable-xauth-eap
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_XAUTH-PAM),y)
> + STRONGSWAN_DEPENDENCIES += linux-pam
> + STRONGSWAN_CONF_OPT += --enable-xauth-pam
> +else
> + STRONGSWAN_CONF_OPT += --disable-xauth-pam
> +endif
> +#ifeq ($(BR2_PACKAGE_STRONGSWAN_TNC-IFMAP),y)
> +# STRONGSWAN_DEPENDENCIES += axis2c
> +# STRONGSWAN_CONF_OPT += --enable-tnc-ifmap
> +#else
> +# STRONGSWAN_CONF_OPT += --disable-tnc-ifmap
> +#endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_TNC-PDP),y)
> + STRONGSWAN_CONF_OPT += --enable-tnc-pdp
> +else
> + STRONGSWAN_CONF_OPT += --disable-tnc-pdp
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_TNC-IMC),y)
> + STRONGSWAN_CONF_OPT += --enable-tnc-imc
> +else
> + STRONGSWAN_CONF_OPT += --disable-tnc-imc
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_TNC-IMV),y)
> + STRONGSWAN_CONF_OPT += --enable-tnc-imv
> +else
> + STRONGSWAN_CONF_OPT += --disable-tnc-imv
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_TNCCS-11),y)
> + STRONGSWAN_DEPENDENCIES += libxml2
> + STRONGSWAN_CONF_OPT += --enable-tnccs-11
> +else
> + STRONGSWAN_CONF_OPT += --disable-tnccs-11
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_TNCCS-20),y)
> + STRONGSWAN_CONF_OPT += --enable-tnccs-20
> +else
> + STRONGSWAN_CONF_OPT += --disable-tnccs-20
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_TNCCS-DYNAMIC),y)
> + STRONGSWAN_CONF_OPT += --enable-tnccs-dynamic
> +else
> + STRONGSWAN_CONF_OPT += --disable-tnccs-dynamic
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_IMC-TEST),y)
> + STRONGSWAN_CONF_OPT += --enable-imc-test
> +else
> + STRONGSWAN_CONF_OPT += --disable-imc-test
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_IMV-TEST),y)
> + STRONGSWAN_CONF_OPT += --enable-imv-test
> +else
> + STRONGSWAN_CONF_OPT += --disable-imv-test
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_IMC-SCANNER),y)
> + STRONGSWAN_CONF_OPT += --enable-imc-scanner
> +else
> + STRONGSWAN_CONF_OPT += --disable-imc-scanner
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_IMV-SCANNER),y)
> + STRONGSWAN_CONF_OPT += --enable-imv-scanner
> +else
> + STRONGSWAN_CONF_OPT += --disable-imv-scanner
> +endif
> +# ifeq ($(BR2_PACKAGE_STRONGSWAN_IMC-ATTESTATION),y)
> +# STRONGSWAN_DEPENDENCIES += libtspi
> +# STRONGSWAN_CONF_OPT += --enable-imc-attestation
> +# else
> +# STRONGSWAN_CONF_OPT += --disable-imc-attestation
> +# endif
> +# ifeq ($(BR2_PACKAGE_STRONGSWAN_IMV-ATTESTATION),y)
> +# STRONGSWAN_DEPENDENCIES += libtspi
> +# STRONGSWAN_CONF_OPT += --enable-imv-attestation
> +# else
> +# STRONGSWAN_CONF_OPT += --disable-imv-attestation
> +# endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_KERNEL-NETLINK),y)
> + STRONGSWAN_CONF_OPT += --enable-kernel-netlink
> +else
> + STRONGSWAN_CONF_OPT += --disable-kernel-netlink
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_KERNEL-PFKEY),y)
> + STRONGSWAN_CONF_OPT += --enable-kernel-pfkey
> +else
> + STRONGSWAN_CONF_OPT += --disable-kernel-pfkey
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_KERNEL-PFROUTE),y)
> + STRONGSWAN_CONF_OPT += --enable-kernel-pfroute
> +else
> + STRONGSWAN_CONF_OPT += --disable-kernel-pfroute
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_KERNEL-KLIPS),y)
> + STRONGSWAN_CONF_OPT += --enable-kernel-klips
> +else
> + STRONGSWAN_CONF_OPT += --disable-kernel-klips
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_LIBIPSEC),y)
> + STRONGSWAN_CONF_OPT += --enable-libipsec
> +else
> + STRONGSWAN_CONF_OPT += --disable-libipsec
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_SOCKET-DEFAULT),y)
> + STRONGSWAN_CONF_OPT += --enable-socket-default
> +else
> + STRONGSWAN_CONF_OPT += --disable-socket-default
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_SOCKET-DYNAMIC),y)
> + STRONGSWAN_CONF_OPT += --enable-socket-dynamic
> +else
> + STRONGSWAN_CONF_OPT += --disable-socket-dynamic
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_FARP),y)
> + STRONGSWAN_CONF_OPT += --enable-farp
> +else
> + STRONGSWAN_CONF_OPT += --disable-farp
> +endif
> +#ifeq ($(BR2_PACKAGE_STRONGSWAN_DUMM),y)
> +# STRONGSWAN_DEPENDENCIES += libgtk2 vte
> +# STRONGSWAN_CONF_OPT += --enable-dumm
> +#else
> +# STRONGSWAN_CONF_OPT += --disable-dumm
> +#endif
> +#ifeq ($(BR2_PACKAGE_STRONGSWAN_FAST),y)
> +# STRONGSWAN_DEPENDENCIES += neo_cgi
> +# STRONGSWAN_CONF_OPT += --enable-fast
> +#else
> +# STRONGSWAN_CONF_OPT += --disable-fast
> +#endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_MANAGER),y)
> + STRONGSWAN_CONF_OPT += --enable-manager
> +else
> + STRONGSWAN_CONF_OPT += --disable-manager
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_MEDIATION),y)
> + STRONGSWAN_CONF_OPT += --enable-mediation
> +else
> + STRONGSWAN_CONF_OPT += --disable-mediation
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_INTEGRITY-TEST),y)
> + STRONGSWAN_CONF_OPT += --enable-integrity-test
> +else
> + STRONGSWAN_CONF_OPT += --disable-integrity-test
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_LOAD-WARNING),y)
> + STRONGSWAN_CONF_OPT += --enable-load-warning
> +else
> + STRONGSWAN_CONF_OPT += --disable-load-warning
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_IKEV1),y)
> + STRONGSWAN_CONF_OPT += --enable-ikev1
> +else
> + STRONGSWAN_CONF_OPT += --disable-ikev1
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_IKEV2),y)
> + STRONGSWAN_CONF_OPT += --enable-ikev2
> +else
> + STRONGSWAN_CONF_OPT += --disable-ikev2
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_CHARON),y)
> + STRONGSWAN_CONF_OPT += --enable-charon
> +else
> + STRONGSWAN_CONF_OPT += --disable-charon
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_TOOLS),y)
> + STRONGSWAN_CONF_OPT += --enable-tools
> +else
> + STRONGSWAN_CONF_OPT += --disable-tools
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_SCRIPTS),y)
> + STRONGSWAN_CONF_OPT += --enable-scripts
> +else
> + STRONGSWAN_CONF_OPT += --disable-scripts
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_CONFTEST),y)
> + STRONGSWAN_CONF_OPT += --enable-conftest
> +else
> + STRONGSWAN_CONF_OPT += --disable-conftest
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_UPDOWN),y)
> + STRONGSWAN_CONF_OPT += --enable-updown
> +else
> + STRONGSWAN_CONF_OPT += --disable-updown
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_ATTR),y)
> + STRONGSWAN_CONF_OPT += --enable-attr
> +else
> + STRONGSWAN_CONF_OPT += --disable-attr
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_ATTR-SQL),y)
> + STRONGSWAN_CONF_OPT += --enable-attr-sql
> +else
> + STRONGSWAN_CONF_OPT += --disable-attr-sql
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_DHCP),y)
> + STRONGSWAN_CONF_OPT += --enable-dhcp
> +else
> + STRONGSWAN_CONF_OPT += --disable-dhcp
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_RESOLVE),y)
> + STRONGSWAN_CONF_OPT += --enable-resolve
> +else
> + STRONGSWAN_CONF_OPT += --disable-resolve
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_PADLOCK),y)
> + STRONGSWAN_CONF_OPT += --enable-padlock
> +else
> + STRONGSWAN_CONF_OPT += --disable-padlock
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_OPENSSL),y)
> + STRONGSWAN_CONF_OPT += --enable-openssl
> +else
> + STRONGSWAN_CONF_OPT += --disable-openssl
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_GCRYPT),y)
> + STRONGSWAN_DEPENDENCIES += libgcrypt
> + STRONGSWAN_CONF_OPT += --enable-gcrypt
> +else
> + STRONGSWAN_CONF_OPT += --disable-gcrypt
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_AGENT),y)
> + STRONGSWAN_CONF_OPT += --enable-agent
> +else
> + STRONGSWAN_CONF_OPT += --disable-agent
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_PKCS11),y)
> + STRONGSWAN_CONF_OPT += --enable-pkcs11
> +else
> + STRONGSWAN_CONF_OPT += --disable-pkcs11
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_CTR),y)
> + STRONGSWAN_CONF_OPT += --enable-ctr
> +else
> + STRONGSWAN_CONF_OPT += --disable-ctr
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_CCM),y)
> + STRONGSWAN_CONF_OPT += --enable-ccm
> +else
> + STRONGSWAN_CONF_OPT += --disable-ccm
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_GCM),y)
> + STRONGSWAN_CONF_OPT += --enable-gcm
> +else
> + STRONGSWAN_CONF_OPT += --disable-gcm
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_ADDRBLOCK),y)
> + STRONGSWAN_CONF_OPT += --enable-addrblock
> +else
> + STRONGSWAN_CONF_OPT += --disable-addrblock
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_UNITY),y)
> + STRONGSWAN_CONF_OPT += --enable-unity
> +else
> + STRONGSWAN_CONF_OPT += --disable-unity
> +endif
> +#ifeq ($(BR2_PACKAGE_STRONGSWAN_UCI),y)
> +# STRONGSWAN_DEPENDENCIES += libuci
> +# STRONGSWAN_CONF_OPT += --enable-uci
> +#else
> +# STRONGSWAN_CONF_OPT += --disable-uci
> +#endif
> +#ifeq ($(BR2_PACKAGE_STRONGSWAN_ANDROID),y)
> +# STRONGSWAN_CONF_OPT += --enable-android
> +#else
> +# STRONGSWAN_CONF_OPT += --disable-android
> +#endif
> +#ifeq ($(BR2_PACKAGE_STRONGSWAN_ANDROID-LOG),y)
> +# STRONGSWAN_CONF_OPT += --enable-android-log
> +#else
> +# STRONGSWAN_CONF_OPT += --disable-android-log
> +#endif
> +#ifeq ($(BR2_PACKAGE_STRONGSWAN_MAEMO),y)
> +# STRONGSWAN_CONF_OPT += --enable-maemo
> +#else
> +# STRONGSWAN_CONF_OPT += --disable-maemo
> +#endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_NM),y)
> + STRONGSWAN_DEPENDENCIES += network-manager
> + STRONGSWAN_CONF_OPT += --enable-nm
> +else
> + STRONGSWAN_CONF_OPT += --disable-nm
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_HA),y)
> + STRONGSWAN_CONF_OPT += --enable-ha
> +else
> + STRONGSWAN_CONF_OPT += --disable-ha
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_WHITELIST),y)
> + STRONGSWAN_CONF_OPT += --enable-whitelist
> +else
> + STRONGSWAN_CONF_OPT += --disable-whitelist
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_CERTEXPIRE),y)
> + STRONGSWAN_CONF_OPT += --enable-certexpire
> +else
> + STRONGSWAN_CONF_OPT += --disable-certexpire
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_LED),y)
> + STRONGSWAN_CONF_OPT += --enable-led
> +else
> + STRONGSWAN_CONF_OPT += --disable-led
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_DUPLICHECK),y)
> + STRONGSWAN_CONF_OPT += --enable-duplicheck
> +else
> + STRONGSWAN_CONF_OPT += --disable-duplicheck
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_COUPLING),y)
> + STRONGSWAN_CONF_OPT += --enable-coupling
> +else
> + STRONGSWAN_CONF_OPT += --disable-coupling
> +endif
> +ifeq ($(BR2_PACKAGE_STRONGSWAN_RADATTR),y)
> + STRONGSWAN_CONF_OPT += --enable-radattr
> +else
> + STRONGSWAN_CONF_OPT += --disable-radattr
> +endif
> +
> +$(eval $(autotools-package))
> +
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH] strongswan: new package
2013-02-08 18:02 ` Thomas Petazzoni
@ 2013-02-12 11:19 ` Jérôme Pouiller
2013-02-12 11:19 ` [Buildroot] [[PATCH v2]] " Jérôme Pouiller
0 siblings, 1 reply; 14+ messages in thread
From: Jérôme Pouiller @ 2013-02-12 11:19 UTC (permalink / raw)
To: buildroot
On Friday 08 February 2013 19:02:47 Thomas Petazzoni wrote:
> Dear J?r?me Pouiller,
>
> A few comments (at the top because the patch is big and the comments
> are very general) :
[...]
> * Are you sure we need gazillions of configuration options like you
> had? It seems like you went on by adding one kconfig option for each
> option the ./configure script provides. This is generally not what
> we do. Package what you need, possibly with some kconfig options,
> and then people can progressively extend that with more options as
> needed.
I confess, I used perl to make it.
I am not final user of this package. It's difficult to choose which options
are usefull to present. I tried to do my best in following version.
[...other comments...]
New patch follows.
--
J?r?me Pouiller, Sysmic
Embedded Linux specialist
http://www.sysmic.fr
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [[PATCH v2]] strongswan: new package
2013-02-12 11:19 ` Jérôme Pouiller
@ 2013-02-12 11:19 ` Jérôme Pouiller
2013-02-12 11:25 ` Thomas Petazzoni
0 siblings, 1 reply; 14+ messages in thread
From: Jérôme Pouiller @ 2013-02-12 11:19 UTC (permalink / raw)
To: buildroot
strongSwan is an OpenSource IPsec implementation for the
Linux operating system. It is based on the discontinued
FreeS/WAN project and the X.509 patch.
The focus is on:
- simplicity of configuration
- strong encryption and authentication methods
- powerful IPsec policies supporting large and complex VPN networks
http://www.strongswan.org/
Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
---
package/Config.in | 1 +
package/strongswan/Config.in | 104 ++++++++++++++++++++++++++++++++++++++
package/strongswan/strongswan.mk | 61 ++++++++++++++++++++++
3 files changed, 166 insertions(+)
create mode 100644 package/strongswan/Config.in
create mode 100644 package/strongswan/strongswan.mk
diff --git a/package/Config.in b/package/Config.in
index 8e4235b..383a0e0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -700,6 +700,7 @@ source "package/spawn-fcgi/Config.in"
source "package/spice-protocol/Config.in"
source "package/spice/Config.in"
source "package/squid/Config.in"
+source "package/strongswan/Config.in"
source "package/stunnel/Config.in"
source "package/tcpdump/Config.in"
source "package/tcpreplay/Config.in"
diff --git a/package/strongswan/Config.in b/package/strongswan/Config.in
new file mode 100644
index 0000000..9c1149d
--- /dev/null
+++ b/package/strongswan/Config.in
@@ -0,0 +1,104 @@
+menuconfig BR2_PACKAGE_STRONGSWAN
+ bool "strongswan"
+ help
+ strongSwan is an OpenSource IPsec implementation for the
+ Linux operating system. It is based on the discontinued
+ FreeS/WAN project and the X.509 patch.
+
+ The focus is on:
+ - simplicity of configuration
+ - strong encryption and authentication methods
+ - powerful IPsec policies supporting large and complex VPN networks
+
+ strongSwan provide many plugins. Only a few are presented here.
+
+ http://www.strongswan.org/
+
+if BR2_PACKAGE_STRONGSWAN
+
+config BR2_PACKAGE_STRONGSWAN_OPENSSL
+ bool "Enables OpenSSL based crypto backends"
+ select OPENSSL
+
+config BR2_PACKAGE_STRONGSWAN_GCRYPT
+ bool "Enables libgcrypt based crypto backends"
+ select LIBGCRYPT
+
+config BR2_PACKAGE_STRONGSWAN_GMP
+ bool "Enable GNU MP (libgmp) based crypto backends"
+ select BR2_PACKAGE_GMP
+ default y
+
+config BR2_PACKAGE_STRONGSWAN_AF_ALG
+ bool "Enable AF_ALG crypto interface to Linux Crypto API"
+
+config BR2_PACKAGE_STRONGSWAN_CURL
+ bool "Enable CURL fetcher plugin to fetch files via libcurl"
+ select BR2_PACKAGE_LIBCURL
+
+config BR2_PACKAGE_STRONGSWAN_CHARON
+ bool "Enable the IKEv1/IKEv2 keying daemon charon"
+ default y
+
+if BR2_PACKAGE_STRONGSWAN_CHARON
+
+config BR2_PACKAGE_STRONGSWAN_TNCCS_11
+ bool "Enable TNCCS 1.1 protocol module"
+ select BR2_PACKAGE_LIBXML2
+
+config BR2_PACKAGE_STRONGSWAN_TNCCS_20
+ bool "Enable TNCCS 2.0 protocol module"
+
+config BR2_PACKAGE_STRONGSWAN_TNCCS_DYNAMIC
+ bool "Enable dynamic TNCCS protocol discovery module"
+
+config BR2_PACKAGE_STRONGSWAN_EAP
+ bool "Enable EAP protocols"
+ help
+ Enable various EAP protocols:
+ - mschapv2
+ - tls
+ - ttls
+ - peap
+ - sim
+ - sim-file
+ - aka
+ - aka-3gpp2
+ - simaka-sql
+ - simaka-pseudonym
+ - simaka-reauth
+ - identity
+ - md5
+ - gtc
+ - tnc
+ - dynamic
+ - radius
+
+if BR2_PACKAGE_STRONGSWAN_EAP
+
+config BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC
+ bool "Enable EAP-SIM smart card backend"
+
+endif
+
+config BR2_PACKAGE_STRONGSWAN_UNITY
+ bool "Enables Cisco Unity extension plugin"
+
+config BR2_PACKAGE_STRONGSWAN_STROKE
+ bool "Enable charons stroke configuration backend"
+ default y
+
+config BR2_PACKAGE_STRONGSWAN_SQL
+ bool "Enable SQL database configuration backend"
+
+endif
+
+config BR2_PACKAGE_STRONGSWAN_TOOLS
+ bool "Enable additional utilities (openac, scepclient and pki)"
+ default y
+
+config BR2_PACKAGE_STRONGSWAN_SCRIPTS
+ bool "Enable additional utilities (found in directory scripts)"
+ default y
+
+endif
diff --git a/package/strongswan/strongswan.mk b/package/strongswan/strongswan.mk
new file mode 100644
index 0000000..e235a04
--- /dev/null
+++ b/package/strongswan/strongswan.mk
@@ -0,0 +1,61 @@
+#############################################################
+#
+# strongSwan
+#
+#############################################################
+
+STRONGSWAN_VERSION = 5.0.1
+STRONGSWAN_SOURCE = strongswan-$(STRONGSWAN_VERSION).tar.bz2
+STRONGSWAN_SITE = http://download.strongswan.org
+STRONGSWAN_LICENSE = GPLv2+
+STRONGSWAN_LICENSE_FILES = COPYING LICENSE
+STRONGSWAN_CONF_OPT += \
+ --enable-pkcs11 \
+ --enable-openssl=$(if $(BR2_PACKAGE_STRONGSWAN_OPENSSL),yes,no) \
+ --enable-gcrypt=$(if $(BR2_PACKAGE_STRONGSWAN_GCRYPT),yes,no) \
+ --enable-gmp=$(if $(BR2_PACKAGE_STRONGSWAN_GMP),yes,no) \
+ --enable-af-alg=$(if $(BR2_PACKAGE_STRONGSWAN_AF_ALG),yes,no) \
+ --enable-curl=$(if $(BR2_PACKAGE_STRONGSWAN_CURL),yes,no) \
+ --enable-charon=$(if $(BR2_PACKAGE_STRONGSWAN_CHARON),yes,no) \
+ --enable-tnccs-11=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_11),yes,no) \
+ --enable-tnccs-20=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_20),yes,no) \
+ --enable-tnccs-dynamic=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_DYNAMIC),yes,no) \
+ --enable-eap-sim-pcsc=$(if $(BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC),yes,no) \
+ --enable-unity=$(if $(BR2_PACKAGE_STRONGSWAN_UNITY),yes,no) \
+ --enable-stroke=$(if $(BR2_PACKAGE_STRONGSWAN_STROKE),yes,no) \
+ --enable-sql=$(if $(BR2_PACKAGE_STRONGSWAN_SQL),yes,no) \
+ --enable-tools=$(if $(BR2_PACKAGE_STRONGSWAN_TOOLS),yes,no) \
+ --enable-scripts=$(if $(BR2_PACKAGE_STRONGSWAN_SCRIPTS),yes,no)
+
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP),y)
+STRONGSWAN_CONF_OPT += \
+ --enable-eap-sim \
+ --enable-eap-sim-file \
+ --enable-eap-aka \
+ --enable-eap-aka-3gpp2 \
+ --enable-eap-simaka-sql \
+ --enable-eap-simaka-pseudonym \
+ --enable-eap-simaka-reauth \
+ --enable-eap-identity \
+ --enable-eap-md5 \
+ --enable-eap-gtc \
+ --enable-eap-mschapv2 \
+ --enable-eap-tls \
+ --enable-eap-ttls \
+ --enable-eap-peap \
+ --enable-eap-tnc \
+ --enable-eap-dynamic \
+ --enable-eap-radius
+endif
+
+STRONGSWAN_DEPENDENCIES += \
+ $(if $(BR2_PACKAGE_STRONGSWAN_OPENSSL),openssl) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_GCRYPT),libgcrypt) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_GMP),gmp) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_CURL),libcurl) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_11),libxml2) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC),pcsc-lite)
+
+
+$(eval $(autotools-package))
+
--
1.7.9.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [[PATCH v2]] strongswan: new package
2013-02-12 11:19 ` [Buildroot] [[PATCH v2]] " Jérôme Pouiller
@ 2013-02-12 11:25 ` Thomas Petazzoni
2013-02-12 17:59 ` Jezz
2013-02-14 13:25 ` [Buildroot] [PATCH v3] " Jérôme Pouiller
0 siblings, 2 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2013-02-12 11:25 UTC (permalink / raw)
To: buildroot
Dear J?r?me Pouiller,
On Tue, 12 Feb 2013 12:19:33 +0100, J?r?me Pouiller wrote:
> +config BR2_PACKAGE_STRONGSWAN_OPENSSL
> + bool "Enables OpenSSL based crypto backends"
> + select OPENSSL
> +
> +config BR2_PACKAGE_STRONGSWAN_GCRYPT
> + bool "Enables libgcrypt based crypto backends"
> + select LIBGCRYPT
"select OPENSSL" or "select LIBGCRYPT" definitely cannot work, we don't
have such options in Buildroot.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [[PATCH v2]] strongswan: new package
2013-02-12 11:25 ` Thomas Petazzoni
@ 2013-02-12 17:59 ` Jezz
2013-02-14 13:25 ` [Buildroot] [PATCH v3] " Jérôme Pouiller
1 sibling, 0 replies; 14+ messages in thread
From: Jezz @ 2013-02-12 17:59 UTC (permalink / raw)
To: buildroot
On Tuesday 12 February 2013 12:25:51 Thomas Petazzoni wrote:
> Dear J?r?me Pouiller,
>
> On Tue, 12 Feb 2013 12:19:33 +0100, J?r?me Pouiller wrote:
> > +config BR2_PACKAGE_STRONGSWAN_OPENSSL
> > + bool "Enables OpenSSL based crypto backends"
> > + select OPENSSL
> > +
> > +config BR2_PACKAGE_STRONGSWAN_GCRYPT
> > + bool "Enables libgcrypt based crypto backends"
> > + select LIBGCRYPT
>
> "select OPENSSL" or "select LIBGCRYPT" definitely cannot work, we don't
> have such options in Buildroot.
Sure.
hmm... Config cannot warn me about stupid errors like this?
--
J?r?me Pouiller, Sysmic
Embedded Linux specialist
http://www.sysmic.fr
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v3] strongswan: new package
2013-02-12 11:25 ` Thomas Petazzoni
2013-02-12 17:59 ` Jezz
@ 2013-02-14 13:25 ` Jérôme Pouiller
2013-02-14 13:39 ` Thomas Petazzoni
1 sibling, 1 reply; 14+ messages in thread
From: Jérôme Pouiller @ 2013-02-14 13:25 UTC (permalink / raw)
To: buildroot
strongSwan is an OpenSource IPsec implementation for the
Linux operating system. It is based on the discontinued
FreeS/WAN project and the X.509 patch.
The focus is on:
- simplicity of configuration
- strong encryption and authentication methods
- powerful IPsec policies supporting large and complex VPN networks
http://www.strongswan.org/
Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
---
v2:
- Reduce number of options
- Add Licenses
- Remove comments
v3: Fix typo in dependency names
package/Config.in | 1 +
package/strongswan/Config.in | 105 ++++++++++++++++++++++++++++++++++++++
package/strongswan/strongswan.mk | 61 ++++++++++++++++++++++
3 files changed, 167 insertions(+)
create mode 100644 package/strongswan/Config.in
create mode 100644 package/strongswan/strongswan.mk
diff --git a/package/Config.in b/package/Config.in
index 8e4235b..383a0e0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -700,6 +700,7 @@ source "package/spawn-fcgi/Config.in"
source "package/spice-protocol/Config.in"
source "package/spice/Config.in"
source "package/squid/Config.in"
+source "package/strongswan/Config.in"
source "package/stunnel/Config.in"
source "package/tcpdump/Config.in"
source "package/tcpreplay/Config.in"
diff --git a/package/strongswan/Config.in b/package/strongswan/Config.in
new file mode 100644
index 0000000..24b30ad
--- /dev/null
+++ b/package/strongswan/Config.in
@@ -0,0 +1,105 @@
+menuconfig BR2_PACKAGE_STRONGSWAN
+ bool "strongswan"
+ help
+ strongSwan is an OpenSource IPsec implementation for the
+ Linux operating system. It is based on the discontinued
+ FreeS/WAN project and the X.509 patch.
+
+ The focus is on:
+ - simplicity of configuration
+ - strong encryption and authentication methods
+ - powerful IPsec policies supporting large and complex VPN networks
+
+ strongSwan provide many plugins. Only a few are presented here.
+
+ http://www.strongswan.org/
+
+if BR2_PACKAGE_STRONGSWAN
+
+config BR2_PACKAGE_STRONGSWAN_OPENSSL
+ bool "Enables OpenSSL based crypto backends"
+ select BR2_PACKAGE_OPENSSL
+
+config BR2_PACKAGE_STRONGSWAN_GCRYPT
+ bool "Enables libgcrypt based crypto backends"
+ select BR2_PACKAGE_LIBGCRYPT
+
+config BR2_PACKAGE_STRONGSWAN_GMP
+ bool "Enable GNU MP (libgmp) based crypto backends"
+ select BR2_PACKAGE_GMP
+ default y
+
+config BR2_PACKAGE_STRONGSWAN_AF_ALG
+ bool "Enable AF_ALG crypto interface to Linux Crypto API"
+
+config BR2_PACKAGE_STRONGSWAN_CURL
+ bool "Enable CURL fetcher plugin to fetch files via libcurl"
+ select BR2_PACKAGE_LIBCURL
+
+config BR2_PACKAGE_STRONGSWAN_CHARON
+ bool "Enable the IKEv1/IKEv2 keying daemon charon"
+ default y
+
+if BR2_PACKAGE_STRONGSWAN_CHARON
+
+config BR2_PACKAGE_STRONGSWAN_TNCCS_11
+ bool "Enable TNCCS 1.1 protocol module"
+ select BR2_PACKAGE_LIBXML2
+
+config BR2_PACKAGE_STRONGSWAN_TNCCS_20
+ bool "Enable TNCCS 2.0 protocol module"
+
+config BR2_PACKAGE_STRONGSWAN_TNCCS_DYNAMIC
+ bool "Enable dynamic TNCCS protocol discovery module"
+
+config BR2_PACKAGE_STRONGSWAN_EAP
+ bool "Enable EAP protocols"
+ help
+ Enable various EAP protocols:
+ - mschapv2
+ - tls
+ - ttls
+ - peap
+ - sim
+ - sim-file
+ - aka
+ - aka-3gpp2
+ - simaka-sql
+ - simaka-pseudonym
+ - simaka-reauth
+ - identity
+ - md5
+ - gtc
+ - tnc
+ - dynamic
+ - radius
+
+if BR2_PACKAGE_STRONGSWAN_EAP
+
+config BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC
+ bool "Enable EAP-SIM smart card backend"
+ select BR2_PACKAGE_PCSC_LITE
+
+endif
+
+config BR2_PACKAGE_STRONGSWAN_UNITY
+ bool "Enables Cisco Unity extension plugin"
+
+config BR2_PACKAGE_STRONGSWAN_STROKE
+ bool "Enable charons stroke configuration backend"
+ default y
+
+config BR2_PACKAGE_STRONGSWAN_SQL
+ bool "Enable SQL database configuration backend"
+
+endif
+
+config BR2_PACKAGE_STRONGSWAN_TOOLS
+ bool "Enable additional utilities (openac, scepclient and pki)"
+ default y
+
+config BR2_PACKAGE_STRONGSWAN_SCRIPTS
+ bool "Enable additional utilities (found in directory scripts)"
+ default y
+
+endif
diff --git a/package/strongswan/strongswan.mk b/package/strongswan/strongswan.mk
new file mode 100644
index 0000000..e235a04
--- /dev/null
+++ b/package/strongswan/strongswan.mk
@@ -0,0 +1,61 @@
+#############################################################
+#
+# strongSwan
+#
+#############################################################
+
+STRONGSWAN_VERSION = 5.0.1
+STRONGSWAN_SOURCE = strongswan-$(STRONGSWAN_VERSION).tar.bz2
+STRONGSWAN_SITE = http://download.strongswan.org
+STRONGSWAN_LICENSE = GPLv2+
+STRONGSWAN_LICENSE_FILES = COPYING LICENSE
+STRONGSWAN_CONF_OPT += \
+ --enable-pkcs11 \
+ --enable-openssl=$(if $(BR2_PACKAGE_STRONGSWAN_OPENSSL),yes,no) \
+ --enable-gcrypt=$(if $(BR2_PACKAGE_STRONGSWAN_GCRYPT),yes,no) \
+ --enable-gmp=$(if $(BR2_PACKAGE_STRONGSWAN_GMP),yes,no) \
+ --enable-af-alg=$(if $(BR2_PACKAGE_STRONGSWAN_AF_ALG),yes,no) \
+ --enable-curl=$(if $(BR2_PACKAGE_STRONGSWAN_CURL),yes,no) \
+ --enable-charon=$(if $(BR2_PACKAGE_STRONGSWAN_CHARON),yes,no) \
+ --enable-tnccs-11=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_11),yes,no) \
+ --enable-tnccs-20=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_20),yes,no) \
+ --enable-tnccs-dynamic=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_DYNAMIC),yes,no) \
+ --enable-eap-sim-pcsc=$(if $(BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC),yes,no) \
+ --enable-unity=$(if $(BR2_PACKAGE_STRONGSWAN_UNITY),yes,no) \
+ --enable-stroke=$(if $(BR2_PACKAGE_STRONGSWAN_STROKE),yes,no) \
+ --enable-sql=$(if $(BR2_PACKAGE_STRONGSWAN_SQL),yes,no) \
+ --enable-tools=$(if $(BR2_PACKAGE_STRONGSWAN_TOOLS),yes,no) \
+ --enable-scripts=$(if $(BR2_PACKAGE_STRONGSWAN_SCRIPTS),yes,no)
+
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP),y)
+STRONGSWAN_CONF_OPT += \
+ --enable-eap-sim \
+ --enable-eap-sim-file \
+ --enable-eap-aka \
+ --enable-eap-aka-3gpp2 \
+ --enable-eap-simaka-sql \
+ --enable-eap-simaka-pseudonym \
+ --enable-eap-simaka-reauth \
+ --enable-eap-identity \
+ --enable-eap-md5 \
+ --enable-eap-gtc \
+ --enable-eap-mschapv2 \
+ --enable-eap-tls \
+ --enable-eap-ttls \
+ --enable-eap-peap \
+ --enable-eap-tnc \
+ --enable-eap-dynamic \
+ --enable-eap-radius
+endif
+
+STRONGSWAN_DEPENDENCIES += \
+ $(if $(BR2_PACKAGE_STRONGSWAN_OPENSSL),openssl) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_GCRYPT),libgcrypt) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_GMP),gmp) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_CURL),libcurl) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_11),libxml2) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC),pcsc-lite)
+
+
+$(eval $(autotools-package))
+
--
1.7.9.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v3] strongswan: new package
2013-02-14 13:25 ` [Buildroot] [PATCH v3] " Jérôme Pouiller
@ 2013-02-14 13:39 ` Thomas Petazzoni
2013-02-14 15:10 ` [Buildroot] [PATCH v4 1/2] " Jérôme Pouiller
0 siblings, 1 reply; 14+ messages in thread
From: Thomas Petazzoni @ 2013-02-14 13:39 UTC (permalink / raw)
To: buildroot
Dear J?r?me Pouiller,
On Thu, 14 Feb 2013 14:25:06 +0100, J?r?me Pouiller wrote:
> strongSwan is an OpenSource IPsec implementation for the
> Linux operating system. It is based on the discontinued
> FreeS/WAN project and the X.509 patch.
>
> The focus is on:
> - simplicity of configuration
> - strong encryption and authentication methods
> - powerful IPsec policies supporting large and complex VPN networks
>
> http://www.strongswan.org/
>
> Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
It looks pretty good now, thanks!
Did you test with a minimal uClibc configuration, i.e no large file, no
IPv6, no C++, no wide char, no locales, to make sure that you don't
need to depend on specific toolchain options?
I don't remember if I asked you this question already or not. I might
at least suspect that the code may not build if IPv6 support is
disabled in the toolchain.
If you don't want to spend time building a minimal uClibc toolchain,
you can use the one at
http://autobuild.buildroot.org/toolchains/tarballs/br-arm-basic-2012.11.1-1.tar.bz2
as an external toolchain.
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v4 1/2] strongswan: new package
2013-02-14 13:39 ` Thomas Petazzoni
@ 2013-02-14 15:10 ` Jérôme Pouiller
2013-02-14 15:10 ` [Buildroot] [PATCH v4 2/2] strongswan: fix build without IPv6 support Jérôme Pouiller
2013-03-24 14:31 ` [Buildroot] [PATCH v4 1/2] " Gustavo Zacarias
0 siblings, 2 replies; 14+ messages in thread
From: Jérôme Pouiller @ 2013-02-14 15:10 UTC (permalink / raw)
To: buildroot
strongSwan is an OpenSource IPsec implementation for the
Linux operating system. It is based on the discontinued
FreeS/WAN project and the X.509 patch.
The focus is on:
- simplicity of configuration
- strong encryption and authentication methods
- powerful IPsec policies supporting large and complex VPN networks
http://www.strongswan.org/
Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
---
package/Config.in | 1 +
package/strongswan/Config.in | 105 ++++++++++++++++++++++++++++++++++++++
package/strongswan/strongswan.mk | 61 ++++++++++++++++++++++
3 files changed, 167 insertions(+)
create mode 100644 package/strongswan/Config.in
create mode 100644 package/strongswan/strongswan.mk
diff --git a/package/Config.in b/package/Config.in
index 8e4235b..383a0e0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -700,6 +700,7 @@ source "package/spawn-fcgi/Config.in"
source "package/spice-protocol/Config.in"
source "package/spice/Config.in"
source "package/squid/Config.in"
+source "package/strongswan/Config.in"
source "package/stunnel/Config.in"
source "package/tcpdump/Config.in"
source "package/tcpreplay/Config.in"
diff --git a/package/strongswan/Config.in b/package/strongswan/Config.in
new file mode 100644
index 0000000..24b30ad
--- /dev/null
+++ b/package/strongswan/Config.in
@@ -0,0 +1,105 @@
+menuconfig BR2_PACKAGE_STRONGSWAN
+ bool "strongswan"
+ help
+ strongSwan is an OpenSource IPsec implementation for the
+ Linux operating system. It is based on the discontinued
+ FreeS/WAN project and the X.509 patch.
+
+ The focus is on:
+ - simplicity of configuration
+ - strong encryption and authentication methods
+ - powerful IPsec policies supporting large and complex VPN networks
+
+ strongSwan provide many plugins. Only a few are presented here.
+
+ http://www.strongswan.org/
+
+if BR2_PACKAGE_STRONGSWAN
+
+config BR2_PACKAGE_STRONGSWAN_OPENSSL
+ bool "Enables OpenSSL based crypto backends"
+ select BR2_PACKAGE_OPENSSL
+
+config BR2_PACKAGE_STRONGSWAN_GCRYPT
+ bool "Enables libgcrypt based crypto backends"
+ select BR2_PACKAGE_LIBGCRYPT
+
+config BR2_PACKAGE_STRONGSWAN_GMP
+ bool "Enable GNU MP (libgmp) based crypto backends"
+ select BR2_PACKAGE_GMP
+ default y
+
+config BR2_PACKAGE_STRONGSWAN_AF_ALG
+ bool "Enable AF_ALG crypto interface to Linux Crypto API"
+
+config BR2_PACKAGE_STRONGSWAN_CURL
+ bool "Enable CURL fetcher plugin to fetch files via libcurl"
+ select BR2_PACKAGE_LIBCURL
+
+config BR2_PACKAGE_STRONGSWAN_CHARON
+ bool "Enable the IKEv1/IKEv2 keying daemon charon"
+ default y
+
+if BR2_PACKAGE_STRONGSWAN_CHARON
+
+config BR2_PACKAGE_STRONGSWAN_TNCCS_11
+ bool "Enable TNCCS 1.1 protocol module"
+ select BR2_PACKAGE_LIBXML2
+
+config BR2_PACKAGE_STRONGSWAN_TNCCS_20
+ bool "Enable TNCCS 2.0 protocol module"
+
+config BR2_PACKAGE_STRONGSWAN_TNCCS_DYNAMIC
+ bool "Enable dynamic TNCCS protocol discovery module"
+
+config BR2_PACKAGE_STRONGSWAN_EAP
+ bool "Enable EAP protocols"
+ help
+ Enable various EAP protocols:
+ - mschapv2
+ - tls
+ - ttls
+ - peap
+ - sim
+ - sim-file
+ - aka
+ - aka-3gpp2
+ - simaka-sql
+ - simaka-pseudonym
+ - simaka-reauth
+ - identity
+ - md5
+ - gtc
+ - tnc
+ - dynamic
+ - radius
+
+if BR2_PACKAGE_STRONGSWAN_EAP
+
+config BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC
+ bool "Enable EAP-SIM smart card backend"
+ select BR2_PACKAGE_PCSC_LITE
+
+endif
+
+config BR2_PACKAGE_STRONGSWAN_UNITY
+ bool "Enables Cisco Unity extension plugin"
+
+config BR2_PACKAGE_STRONGSWAN_STROKE
+ bool "Enable charons stroke configuration backend"
+ default y
+
+config BR2_PACKAGE_STRONGSWAN_SQL
+ bool "Enable SQL database configuration backend"
+
+endif
+
+config BR2_PACKAGE_STRONGSWAN_TOOLS
+ bool "Enable additional utilities (openac, scepclient and pki)"
+ default y
+
+config BR2_PACKAGE_STRONGSWAN_SCRIPTS
+ bool "Enable additional utilities (found in directory scripts)"
+ default y
+
+endif
diff --git a/package/strongswan/strongswan.mk b/package/strongswan/strongswan.mk
new file mode 100644
index 0000000..e235a04
--- /dev/null
+++ b/package/strongswan/strongswan.mk
@@ -0,0 +1,61 @@
+#############################################################
+#
+# strongSwan
+#
+#############################################################
+
+STRONGSWAN_VERSION = 5.0.1
+STRONGSWAN_SOURCE = strongswan-$(STRONGSWAN_VERSION).tar.bz2
+STRONGSWAN_SITE = http://download.strongswan.org
+STRONGSWAN_LICENSE = GPLv2+
+STRONGSWAN_LICENSE_FILES = COPYING LICENSE
+STRONGSWAN_CONF_OPT += \
+ --enable-pkcs11 \
+ --enable-openssl=$(if $(BR2_PACKAGE_STRONGSWAN_OPENSSL),yes,no) \
+ --enable-gcrypt=$(if $(BR2_PACKAGE_STRONGSWAN_GCRYPT),yes,no) \
+ --enable-gmp=$(if $(BR2_PACKAGE_STRONGSWAN_GMP),yes,no) \
+ --enable-af-alg=$(if $(BR2_PACKAGE_STRONGSWAN_AF_ALG),yes,no) \
+ --enable-curl=$(if $(BR2_PACKAGE_STRONGSWAN_CURL),yes,no) \
+ --enable-charon=$(if $(BR2_PACKAGE_STRONGSWAN_CHARON),yes,no) \
+ --enable-tnccs-11=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_11),yes,no) \
+ --enable-tnccs-20=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_20),yes,no) \
+ --enable-tnccs-dynamic=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_DYNAMIC),yes,no) \
+ --enable-eap-sim-pcsc=$(if $(BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC),yes,no) \
+ --enable-unity=$(if $(BR2_PACKAGE_STRONGSWAN_UNITY),yes,no) \
+ --enable-stroke=$(if $(BR2_PACKAGE_STRONGSWAN_STROKE),yes,no) \
+ --enable-sql=$(if $(BR2_PACKAGE_STRONGSWAN_SQL),yes,no) \
+ --enable-tools=$(if $(BR2_PACKAGE_STRONGSWAN_TOOLS),yes,no) \
+ --enable-scripts=$(if $(BR2_PACKAGE_STRONGSWAN_SCRIPTS),yes,no)
+
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP),y)
+STRONGSWAN_CONF_OPT += \
+ --enable-eap-sim \
+ --enable-eap-sim-file \
+ --enable-eap-aka \
+ --enable-eap-aka-3gpp2 \
+ --enable-eap-simaka-sql \
+ --enable-eap-simaka-pseudonym \
+ --enable-eap-simaka-reauth \
+ --enable-eap-identity \
+ --enable-eap-md5 \
+ --enable-eap-gtc \
+ --enable-eap-mschapv2 \
+ --enable-eap-tls \
+ --enable-eap-ttls \
+ --enable-eap-peap \
+ --enable-eap-tnc \
+ --enable-eap-dynamic \
+ --enable-eap-radius
+endif
+
+STRONGSWAN_DEPENDENCIES += \
+ $(if $(BR2_PACKAGE_STRONGSWAN_OPENSSL),openssl) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_GCRYPT),libgcrypt) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_GMP),gmp) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_CURL),libcurl) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_11),libxml2) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC),pcsc-lite)
+
+
+$(eval $(autotools-package))
+
--
1.7.9.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v4 2/2] strongswan: fix build without IPv6 support
2013-02-14 15:10 ` [Buildroot] [PATCH v4 1/2] " Jérôme Pouiller
@ 2013-02-14 15:10 ` Jérôme Pouiller
2013-03-24 14:31 ` Gustavo Zacarias
2013-03-24 14:31 ` [Buildroot] [PATCH v4 1/2] " Gustavo Zacarias
1 sibling, 1 reply; 14+ messages in thread
From: Jérôme Pouiller @ 2013-02-14 15:10 UTC (permalink / raw)
To: buildroot
Disable kernel-netlink and socket-default features if toolchain does not
support IPv6. Also add a comment for this case.
Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
---
package/strongswan/Config.in | 6 ++++++
package/strongswan/strongswan.mk | 4 +++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/package/strongswan/Config.in b/package/strongswan/Config.in
index 24b30ad..f7404f6 100644
--- a/package/strongswan/Config.in
+++ b/package/strongswan/Config.in
@@ -16,6 +16,12 @@ menuconfig BR2_PACKAGE_STRONGSWAN
if BR2_PACKAGE_STRONGSWAN
+if !BR2_INET_IPV6
+
+comment "kernel-netlink and socket-default options require a toolchain with IPV6 support"
+
+endif
+
config BR2_PACKAGE_STRONGSWAN_OPENSSL
bool "Enables OpenSSL based crypto backends"
select BR2_PACKAGE_OPENSSL
diff --git a/package/strongswan/strongswan.mk b/package/strongswan/strongswan.mk
index e235a04..548401d 100644
--- a/package/strongswan/strongswan.mk
+++ b/package/strongswan/strongswan.mk
@@ -10,7 +10,9 @@ STRONGSWAN_SITE = http://download.strongswan.org
STRONGSWAN_LICENSE = GPLv2+
STRONGSWAN_LICENSE_FILES = COPYING LICENSE
STRONGSWAN_CONF_OPT += \
- --enable-pkcs11 \
+ --enable-pkcs11=yes \
+ --enable-kernel-netlink=$(if $(BR2_INET_IPV6),yes,no) \
+ --enable-socket-default=$(if $(BR2_INET_IPV6),yes,no) \
--enable-openssl=$(if $(BR2_PACKAGE_STRONGSWAN_OPENSSL),yes,no) \
--enable-gcrypt=$(if $(BR2_PACKAGE_STRONGSWAN_GCRYPT),yes,no) \
--enable-gmp=$(if $(BR2_PACKAGE_STRONGSWAN_GMP),yes,no) \
--
1.7.9.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v4 1/2] strongswan: new package
2013-02-14 15:10 ` [Buildroot] [PATCH v4 1/2] " Jérôme Pouiller
2013-02-14 15:10 ` [Buildroot] [PATCH v4 2/2] strongswan: fix build without IPv6 support Jérôme Pouiller
@ 2013-03-24 14:31 ` Gustavo Zacarias
1 sibling, 0 replies; 14+ messages in thread
From: Gustavo Zacarias @ 2013-03-24 14:31 UTC (permalink / raw)
To: buildroot
On 02/14/2013 12:10 PM, J?r?me Pouiller wrote:
> diff --git a/package/strongswan/Config.in b/package/strongswan/Config.in
> new file mode 100644
> index 0000000..24b30ad
> --- /dev/null
> +++ b/package/strongswan/Config.in
> @@ -0,0 +1,105 @@
> +menuconfig BR2_PACKAGE_STRONGSWAN
> + bool "strongswan"
depends on BR2_USE_MMU # fork()
Strongswan uses fork() so it won't build on nommu architectures like
blackfin.
> +if BR2_PACKAGE_STRONGSWAN
> +
> +config BR2_PACKAGE_STRONGSWAN_OPENSSL
> + bool "Enables OpenSSL based crypto backends"
> + select BR2_PACKAGE_OPENSSL
> +
> +config BR2_PACKAGE_STRONGSWAN_GCRYPT
> + bool "Enables libgcrypt based crypto backends"
> + select BR2_PACKAGE_LIBGCRYPT
> +
> +config BR2_PACKAGE_STRONGSWAN_GMP
> + bool "Enable GNU MP (libgmp) based crypto backends"
> + select BR2_PACKAGE_GMP
> + default y
See section 2 of the INSTALL file, one of OPENSSL/GCRYPT/GMP is required
with GMP being the default if nothing is specified.
These three should be folded into a choice so that a user isn't allowed
to N the three of them and cause build breakage.
> +config BR2_PACKAGE_STRONGSWAN_SQL
> + bool "Enable SQL database configuration backend"
> +
> +endif
You need at least one SQL backend (mysql/sqlite) for this to be of any use.
You could probably do something like...
ifeq ($(BR2_PACKAGE_SQLITE),y)
STRONGSWAN_DEPENEDNCIES += sqlite
STRONGSWAN_CONF_OPT += --enable-sql=yes
endef
ifeq ($(BR2_PACKAGE_MYSQL_CLIENT),y)
STRONGSWAN_DEPENDENCIES += mysql_client
STRONGSWAN_CONF_OPT += --enable-sql=yes
endif
> +STRONGSWAN_VERSION = 5.0.1
Bump to 5.0.2 now that it's out?
Other than what i've mentioned it's looking pretty good now.
Care to send another one?
Thanks!
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v4 2/2] strongswan: fix build without IPv6 support
2013-02-14 15:10 ` [Buildroot] [PATCH v4 2/2] strongswan: fix build without IPv6 support Jérôme Pouiller
@ 2013-03-24 14:31 ` Gustavo Zacarias
2013-05-13 15:15 ` [Buildroot] [PATCH v5] strongswan: new package Jérôme Pouiller
0 siblings, 1 reply; 14+ messages in thread
From: Gustavo Zacarias @ 2013-03-24 14:31 UTC (permalink / raw)
To: buildroot
On 02/14/2013 12:10 PM, J?r?me Pouiller wrote:
> Disable kernel-netlink and socket-default features if toolchain does not
> support IPv6. Also add a comment for this case.
>
> Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
You could fold this patch into the first one since you're just fixing
something that isn't in tree yet :)
Regards.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v5] strongswan: new package
2013-03-24 14:31 ` Gustavo Zacarias
@ 2013-05-13 15:15 ` Jérôme Pouiller
2013-07-31 16:17 ` Thomas Petazzoni
0 siblings, 1 reply; 14+ messages in thread
From: Jérôme Pouiller @ 2013-05-13 15:15 UTC (permalink / raw)
To: buildroot
strongSwan is an OpenSource IPsec implementation for the
Linux operating system. It is based on the discontinued
FreeS/WAN project and the X.509 patch.
The focus is on:
- simplicity of configuration
- strong encryption and authentication methods
- powerful IPsec policies supporting large and complex VPN networks
http://www.strongswan.org/
Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
---
v2:
- Reduce number of options
- Add Licenses
- Remove comments
v3: Fix typo in dependency names
v4: Disable kernel-netlink and socket-default features if toolchain does not
support IPv6. Also add a comment for this case.
v5:
- Add a choice for cryptographic backend
- Better dependency check for SQL backend
- Depends of MMU
---
package/Config.in | 1 +
package/strongswan/Config.in | 118 ++++++++++++++++++++++++++++++++++++++
package/strongswan/strongswan.mk | 69 ++++++++++++++++++++++
3 files changed, 188 insertions(+)
create mode 100644 package/strongswan/Config.in
create mode 100644 package/strongswan/strongswan.mk
diff --git a/package/Config.in b/package/Config.in
index d980871..f74153c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -767,6 +767,7 @@ source "package/spawn-fcgi/Config.in"
source "package/spice-protocol/Config.in"
source "package/spice/Config.in"
source "package/squid/Config.in"
+source "package/strongswan/Config.in"
source "package/stunnel/Config.in"
source "package/tcpdump/Config.in"
source "package/tcpreplay/Config.in"
diff --git a/package/strongswan/Config.in b/package/strongswan/Config.in
new file mode 100644
index 0000000..7819eab
--- /dev/null
+++ b/package/strongswan/Config.in
@@ -0,0 +1,118 @@
+menuconfig BR2_PACKAGE_STRONGSWAN
+ bool "strongswan"
+ depends on BR2_USE_MMU # fork()
+ help
+ strongSwan is an OpenSource IPsec implementation for the
+ Linux operating system. It is based on the discontinued
+ FreeS/WAN project and the X.509 patch.
+
+ The focus is on:
+ - simplicity of configuration
+ - strong encryption and authentication methods
+ - powerful IPsec policies supporting large and complex VPN networks
+
+ strongSwan provide many plugins. Only a few are presented here.
+
+ http://www.strongswan.org/
+
+if BR2_PACKAGE_STRONGSWAN
+
+if !BR2_INET_IPV6
+
+comment "kernel-netlink and socket-default options require a toolchain with IPV6 support"
+
+endif
+
+choice
+ prompt "Cryptographic backend"
+ default BR2_PACKAGE_STRONGSWAN_GMP
+
+config BR2_PACKAGE_STRONGSWAN_OPENSSL
+ bool "OpenSSL"
+ select BR2_PACKAGE_OPENSSL
+
+config BR2_PACKAGE_STRONGSWAN_GCRYPT
+ bool "libgcrypt"
+ select BR2_PACKAGE_LIBGCRYPT
+
+config BR2_PACKAGE_STRONGSWAN_GMP
+ bool "GNU MP (libgmp)"
+ select BR2_PACKAGE_GMP
+
+endchoice
+
+config BR2_PACKAGE_STRONGSWAN_AF_ALG
+ bool "Enable AF_ALG crypto interface to Linux Crypto API"
+
+config BR2_PACKAGE_STRONGSWAN_CURL
+ bool "Enable CURL fetcher plugin to fetch files via libcurl"
+ select BR2_PACKAGE_LIBCURL
+
+config BR2_PACKAGE_STRONGSWAN_CHARON
+ bool "Enable the IKEv1/IKEv2 keying daemon charon"
+ default y
+
+if BR2_PACKAGE_STRONGSWAN_CHARON
+
+config BR2_PACKAGE_STRONGSWAN_TNCCS_11
+ bool "Enable TNCCS 1.1 protocol module"
+ select BR2_PACKAGE_LIBXML2
+
+config BR2_PACKAGE_STRONGSWAN_TNCCS_20
+ bool "Enable TNCCS 2.0 protocol module"
+
+config BR2_PACKAGE_STRONGSWAN_TNCCS_DYNAMIC
+ bool "Enable dynamic TNCCS protocol discovery module"
+
+config BR2_PACKAGE_STRONGSWAN_EAP
+ bool "Enable EAP protocols"
+ help
+ Enable various EAP protocols:
+ - mschapv2
+ - tls
+ - ttls
+ - peap
+ - sim
+ - sim-file
+ - aka
+ - aka-3gpp2
+ - simaka-sql
+ - simaka-pseudonym
+ - simaka-reauth
+ - identity
+ - md5
+ - gtc
+ - tnc
+ - dynamic
+ - radius
+
+if BR2_PACKAGE_STRONGSWAN_EAP
+
+config BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC
+ bool "Enable EAP-SIM smart card backend"
+ select BR2_PACKAGE_PCSC_LITE
+
+endif
+
+config BR2_PACKAGE_STRONGSWAN_UNITY
+ bool "Enables Cisco Unity extension plugin"
+
+config BR2_PACKAGE_STRONGSWAN_STROKE
+ bool "Enable charons stroke configuration backend"
+ default y
+
+config BR2_PACKAGE_STRONGSWAN_SQL
+ bool "Enable SQL database configuration backend"
+ depends on BR2_PACKAGE_SQLITE || BR2_PACKAGE_MYSQL_CLIENT
+
+endif
+
+config BR2_PACKAGE_STRONGSWAN_TOOLS
+ bool "Enable additional utilities (openac, scepclient and pki)"
+ default y
+
+config BR2_PACKAGE_STRONGSWAN_SCRIPTS
+ bool "Enable additional utilities (found in directory scripts)"
+ default y
+
+endif
diff --git a/package/strongswan/strongswan.mk b/package/strongswan/strongswan.mk
new file mode 100644
index 0000000..121bcd8
--- /dev/null
+++ b/package/strongswan/strongswan.mk
@@ -0,0 +1,69 @@
+#############################################################
+#
+# strongSwan
+#
+#############################################################
+
+STRONGSWAN_VERSION = 5.0.1
+STRONGSWAN_SOURCE = strongswan-$(STRONGSWAN_VERSION).tar.bz2
+STRONGSWAN_SITE = http://download.strongswan.org
+STRONGSWAN_LICENSE = GPLv2+
+STRONGSWAN_LICENSE_FILES = COPYING LICENSE
+STRONGSWAN_CONF_OPT += \
+ --enable-pkcs11=yes \
+ --enable-kernel-netlink=$(if $(BR2_INET_IPV6),yes,no) \
+ --enable-socket-default=$(if $(BR2_INET_IPV6),yes,no) \
+ --enable-openssl=$(if $(BR2_PACKAGE_STRONGSWAN_OPENSSL),yes,no) \
+ --enable-gcrypt=$(if $(BR2_PACKAGE_STRONGSWAN_GCRYPT),yes,no) \
+ --enable-gmp=$(if $(BR2_PACKAGE_STRONGSWAN_GMP),yes,no) \
+ --enable-af-alg=$(if $(BR2_PACKAGE_STRONGSWAN_AF_ALG),yes,no) \
+ --enable-curl=$(if $(BR2_PACKAGE_STRONGSWAN_CURL),yes,no) \
+ --enable-charon=$(if $(BR2_PACKAGE_STRONGSWAN_CHARON),yes,no) \
+ --enable-tnccs-11=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_11),yes,no) \
+ --enable-tnccs-20=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_20),yes,no) \
+ --enable-tnccs-dynamic=$(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_DYNAMIC),yes,no) \
+ --enable-eap-sim-pcsc=$(if $(BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC),yes,no) \
+ --enable-unity=$(if $(BR2_PACKAGE_STRONGSWAN_UNITY),yes,no) \
+ --enable-stroke=$(if $(BR2_PACKAGE_STRONGSWAN_STROKE),yes,no) \
+ --enable-sql=$(if $(BR2_PACKAGE_STRONGSWAN_SQL),yes,no) \
+ --enable-tools=$(if $(BR2_PACKAGE_STRONGSWAN_TOOLS),yes,no) \
+ --enable-scripts=$(if $(BR2_PACKAGE_STRONGSWAN_SCRIPTS),yes,no)
+
+ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP),y)
+STRONGSWAN_CONF_OPT += \
+ --enable-eap-sim \
+ --enable-eap-sim-file \
+ --enable-eap-aka \
+ --enable-eap-aka-3gpp2 \
+ --enable-eap-simaka-sql \
+ --enable-eap-simaka-pseudonym \
+ --enable-eap-simaka-reauth \
+ --enable-eap-identity \
+ --enable-eap-md5 \
+ --enable-eap-gtc \
+ --enable-eap-mschapv2 \
+ --enable-eap-tls \
+ --enable-eap-ttls \
+ --enable-eap-peap \
+ --enable-eap-tnc \
+ --enable-eap-dynamic \
+ --enable-eap-radius
+endif
+
+STRONGSWAN_DEPENDENCIES += \
+ $(if $(BR2_PACKAGE_STRONGSWAN_OPENSSL),openssl) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_GCRYPT),libgcrypt) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_GMP),gmp) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_CURL),libcurl) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_TNCCS_11),libxml2) \
+ $(if $(BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC),pcsc-lite)
+
+ifeq ($(BR2_PACKAGE_STRONGSWAN_SQL),y)
+STRONGSWAN_DEPENDENCIES += \
+ $(if $(BR2_PACKAGE_SQLITE),sqlite) \
+ $(if $(BR2_PACKAGE_MYSQL_CLIENT),mysql_client)
+endif
+
+
+$(eval $(autotools-package))
+
--
1.7.9.5
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH v5] strongswan: new package
2013-05-13 15:15 ` [Buildroot] [PATCH v5] strongswan: new package Jérôme Pouiller
@ 2013-07-31 16:17 ` Thomas Petazzoni
0 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2013-07-31 16:17 UTC (permalink / raw)
To: buildroot
Dear J?r?me Pouiller,
On Mon, 13 May 2013 17:15:22 +0200, J?r?me Pouiller wrote:
> strongSwan is an OpenSource IPsec implementation for the
> Linux operating system. It is based on the discontinued
> FreeS/WAN project and the X.509 patch.
>
> The focus is on:
> - simplicity of configuration
> - strong encryption and authentication methods
> - powerful IPsec policies supporting large and complex VPN networks
>
> http://www.strongswan.org/
>
> Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
Applied, thanks.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2013-07-31 16:17 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-08 17:43 [Buildroot] [PATCH] strongswan: new package Jérôme Pouiller
2013-02-08 18:02 ` Thomas Petazzoni
2013-02-12 11:19 ` Jérôme Pouiller
2013-02-12 11:19 ` [Buildroot] [[PATCH v2]] " Jérôme Pouiller
2013-02-12 11:25 ` Thomas Petazzoni
2013-02-12 17:59 ` Jezz
2013-02-14 13:25 ` [Buildroot] [PATCH v3] " Jérôme Pouiller
2013-02-14 13:39 ` Thomas Petazzoni
2013-02-14 15:10 ` [Buildroot] [PATCH v4 1/2] " Jérôme Pouiller
2013-02-14 15:10 ` [Buildroot] [PATCH v4 2/2] strongswan: fix build without IPv6 support Jérôme Pouiller
2013-03-24 14:31 ` Gustavo Zacarias
2013-05-13 15:15 ` [Buildroot] [PATCH v5] strongswan: new package Jérôme Pouiller
2013-07-31 16:17 ` Thomas Petazzoni
2013-03-24 14:31 ` [Buildroot] [PATCH v4 1/2] " Gustavo Zacarias
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox