2006-01-23 22:43:28 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# ipsec-tools
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_VERSION = 0.7.3
|
|
|
|
IPSEC_TOOLS_SOURCE = ipsec-tools-$(IPSEC_TOOLS_VERSION).tar.bz2
|
|
|
|
IPSEC_TOOLS_SITE = http://ftp.sunet.se/pub/NetBSD/misc/ipsec-tools/0.7/
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
2007-06-26 19:45:08 +02:00
|
|
|
ifeq ($(BR2_INET_IPV6),y)
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --enable-ipv6
|
2006-01-23 22:43:28 +01:00
|
|
|
else
|
2010-06-13 14:24:48 +02:00
|
|
|
IPSEC_TOOLS_CONF_OPT+= --disable-ipv6
|
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
|
|
|
|
|
2010-06-13 14:24:48 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,ipsec-tools))
|