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
|
|
|
|
2011-09-13 18:40:11 +02:00
|
|
|
IPSEC_TOOLS_VERSION = 0.8.0
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_SOURCE = ipsec-tools-$(IPSEC_TOOLS_VERSION).tar.bz2
|
2011-09-13 18:40:11 +02:00
|
|
|
IPSEC_TOOLS_SITE = http://ftp.sunet.se/pub/NetBSD/misc/ipsec-tools/0.8/
|
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
|
|
|
|
IPSEC_TOOLS_MAKE_OPT = CFLAGS='$(TARGET_CFLAGS)'
|
2006-01-23 22:43:28 +01:00
|
|
|
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT = \
|
|
|
|
--disable-hybrid \
|
|
|
|
--without-libpam \
|
|
|
|
--disable-gssapi \
|
|
|
|
--with-kernel-headers=$(STAGING_DIR)/usr/include
|
2006-01-23 22:43:28 +01:00
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_ADMINPORT), y)
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --enable-adminport
|
2006-01-23 22:43:28 +01:00
|
|
|
else
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --disable-adminport
|
2006-01-23 22:43:28 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_NATT), y)
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --enable-natt
|
2006-01-23 22:43:28 +01:00
|
|
|
else
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --disable-natt
|
2006-01-23 22:43:28 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_FRAG), y)
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --enable-frag
|
2006-01-23 22:43:28 +01:00
|
|
|
else
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --disable-frag
|
2006-01-23 22:43:28 +01:00
|
|
|
endif
|
|
|
|
|
2012-02-10 13:57:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_DPD), y)
|
|
|
|
IPSEC_TOOLS_CONF_OPT+= --enable-dpd
|
|
|
|
else
|
|
|
|
IPSEC_TOOLS_CONF_OPT+= --disable-dpd
|
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_STATS), y)
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --enable-stats
|
2006-01-23 22:43:28 +01:00
|
|
|
else
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --disable-stats
|
2006-01-23 22:43:28 +01:00
|
|
|
endif
|
|
|
|
|
2008-12-08 09:15:27 +01:00
|
|
|
ifneq ($(BR2_PACKAGE_IPSEC_TOOLS_READLINE), y)
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --without-readline
|
|
|
|
else
|
|
|
|
IPSEC_DEPENDENCIES += readline
|
2006-01-23 22:43:28 +01:00
|
|
|
endif
|
|
|
|
|
2009-06-22 13:21:38 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_DISABLE),y)
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --enable-security-context=no
|
2009-06-22 13:21:38 +02:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_ENABLE),y)
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --enable-security-context=yes
|
2009-06-22 13:21:38 +02:00
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_KERNEL),y)
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --enable-security-context=kernel
|
2006-01-23 22:43:28 +01:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|