2013-05-13 17:15:22 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# strongswan
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2015-04-08 12:20:44 +02:00
|
|
|
STRONGSWAN_VERSION = 5.3.0
|
2013-05-13 17:15:22 +02:00
|
|
|
STRONGSWAN_SOURCE = strongswan-$(STRONGSWAN_VERSION).tar.bz2
|
|
|
|
STRONGSWAN_SITE = http://download.strongswan.org
|
|
|
|
STRONGSWAN_LICENSE = GPLv2+
|
|
|
|
STRONGSWAN_LICENSE_FILES = COPYING LICENSE
|
2013-08-07 19:34:16 +02:00
|
|
|
STRONGSWAN_DEPENDENCIES = host-pkgconf
|
2015-04-08 12:20:43 +02:00
|
|
|
STRONGSWAN_CONF_OPTS += \
|
|
|
|
--without-lib-prefix \
|
2015-04-08 12:20:44 +02:00
|
|
|
--enable-led \
|
2015-04-08 12:20:43 +02:00
|
|
|
--enable-pkcs11=yes \
|
2015-04-19 14:40:00 +02:00
|
|
|
--enable-kernel-netlink=yes \
|
|
|
|
--enable-socket-default=yes \
|
2015-04-08 12:20:43 +02:00
|
|
|
--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-pki=$(if $(BR2_PACKAGE_STRONGSWAN_PKI),yes,no) \
|
|
|
|
--enable-scepclient=$(if $(BR2_PACKAGE_STRONGSWAN_SCEP),yes,no) \
|
|
|
|
--enable-scripts=$(if $(BR2_PACKAGE_STRONGSWAN_SCRIPTS),yes,no) \
|
|
|
|
--enable-vici=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no) \
|
2015-01-06 11:35:40 +01:00
|
|
|
--enable-swanctl=$(if $(BR2_PACKAGE_STRONGSWAN_VICI),yes,no)
|
2013-05-13 17:15:22 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_STRONGSWAN_EAP),y)
|
2015-04-08 12:20:43 +02:00
|
|
|
STRONGSWAN_CONF_OPTS += \
|
|
|
|
--enable-eap-sim \
|
|
|
|
--enable-eap-sim-file \
|
|
|
|
--enable-eap-aka \
|
|
|
|
--enable-eap-aka-3gpp2 \
|
|
|
|
--enable-eap-simaka-sql \
|
2014-10-25 20:29:31 +02:00
|
|
|
--enable-eap-simaka-pseudonym \
|
2015-04-08 12:20:43 +02:00
|
|
|
--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 \
|
2014-10-25 20:29:31 +02:00
|
|
|
--enable-eap-radius
|
2013-05-13 17:15:22 +02:00
|
|
|
STRONGSWAN_DEPENDENCIES += gmp
|
|
|
|
endif
|
|
|
|
|
2015-04-08 12:20:43 +02:00
|
|
|
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) \
|
2014-10-25 20:29:31 +02:00
|
|
|
$(if $(BR2_PACKAGE_STRONGSWAN_EAP_SIM_PCSC),pcsc-lite)
|
2013-05-13 17:15:22 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_STRONGSWAN_SQL),y)
|
2015-04-08 12:20:43 +02:00
|
|
|
STRONGSWAN_DEPENDENCIES += \
|
|
|
|
$(if $(BR2_PACKAGE_SQLITE),sqlite) \
|
2014-10-25 20:29:31 +02:00
|
|
|
$(if $(BR2_PACKAGE_MYSQL),mysql)
|
2013-05-13 17:15:22 +02:00
|
|
|
endif
|
|
|
|
|
2015-04-08 12:20:44 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_IPTABLES),y)
|
|
|
|
STRONGSWAN_DEPENDENCIES += iptables
|
|
|
|
STRONGSWAN_CONF_OPTS += \
|
|
|
|
--enable-connmark \
|
|
|
|
--enable-forecast
|
|
|
|
else
|
|
|
|
STRONGSWAN_COF_OPTS += \
|
|
|
|
--disable-connmark \
|
|
|
|
--disable-forecast
|
|
|
|
endif
|
|
|
|
|
2013-05-13 17:15:22 +02:00
|
|
|
$(eval $(autotools-package))
|