2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-01-23 22:43:28 +01:00
|
|
|
#
|
|
|
|
# ipsec-tools
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-01-23 22:43:28 +01:00
|
|
|
|
2016-01-30 11:13:17 +01:00
|
|
|
IPSEC_TOOLS_VERSION = 0.8.2
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_SOURCE = ipsec-tools-$(IPSEC_TOOLS_VERSION).tar.bz2
|
2016-01-30 11:13:17 +01:00
|
|
|
IPSEC_TOOLS_SITE = http://sourceforge.net/projects/ipsec-tools/files/ipsec-tools/$(IPSEC_TOOLS_VERSION)
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_INSTALL_STAGING = YES
|
2010-10-05 12:08:55 +02:00
|
|
|
IPSEC_TOOLS_MAKE = $(MAKE1)
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_DEPENDENCIES = openssl flex host-flex
|
2006-01-23 22:43:28 +01:00
|
|
|
|
2010-06-13 14:24:48 +02:00
|
|
|
# configure hardcodes -Werror, so override CFLAGS on make invocation
|
2014-09-27 21:32:38 +02:00
|
|
|
IPSEC_TOOLS_MAKE_OPTS = CFLAGS='$(TARGET_CFLAGS)'
|
2006-01-23 22:43:28 +01:00
|
|
|
|
2014-03-10 21:26:25 +01:00
|
|
|
# openssl uses zlib, so we need to explicitly link with it when static
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2014-03-10 21:26:25 +01:00
|
|
|
IPSEC_TOOLS_CONF_ENV += LIBS=-lz
|
|
|
|
endif
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS = \
|
2010-06-13 14:24:48 +02:00
|
|
|
--without-libpam \
|
|
|
|
--disable-gssapi \
|
|
|
|
--with-kernel-headers=$(STAGING_DIR)/usr/include
|
2006-01-23 22:43:28 +01:00
|
|
|
|
2015-02-01 23:25:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_ADMINPORT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --enable-adminport
|
2006-01-23 22:43:28 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --disable-adminport
|
2006-01-23 22:43:28 +01:00
|
|
|
endif
|
|
|
|
|
2015-02-01 23:25:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_NATT),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --enable-natt
|
2006-01-23 22:43:28 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --disable-natt
|
2006-01-23 22:43:28 +01:00
|
|
|
endif
|
|
|
|
|
2015-02-01 23:25:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_FRAG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --enable-frag
|
2006-01-23 22:43:28 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --disable-frag
|
2006-01-23 22:43:28 +01:00
|
|
|
endif
|
|
|
|
|
2015-02-01 23:25:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_DPD),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --enable-dpd
|
2012-02-10 13:57:27 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --disable-dpd
|
2012-02-10 13:57:27 +01:00
|
|
|
endif
|
|
|
|
|
2015-02-01 23:25:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_STATS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --enable-stats
|
2006-01-23 22:43:28 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --disable-stats
|
2006-01-23 22:43:28 +01:00
|
|
|
endif
|
|
|
|
|
2015-02-01 23:25:46 +01:00
|
|
|
ifneq ($(BR2_PACKAGE_IPSEC_TOOLS_READLINE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --without-readline
|
2010-06-13 14:24:48 +02:00
|
|
|
else
|
|
|
|
IPSEC_DEPENDENCIES += readline
|
2006-01-23 22:43:28 +01:00
|
|
|
endif
|
|
|
|
|
2015-02-01 23:25:46 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_HYBRID),y)
|
2015-02-01 06:26:52 +01:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --enable-hybrid
|
|
|
|
else
|
|
|
|
IPSEC_TOOLS_CONF_OPTS += --disable-hybrid
|
|
|
|
endif
|
|
|
|
|
2009-06-22 13:21:38 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_DISABLE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --enable-security-context=no
|
2009-06-22 13:21:38 +02:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_ENABLE),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --enable-security-context=yes
|
2009-06-22 13:21:38 +02:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_KERNEL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPTS += --enable-security-context=kernel
|
2006-01-23 22:43:28 +01:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|