1 ################################################################################
5 ################################################################################
7 IPSEC_TOOLS_VERSION_MAJOR
= 0.8
8 IPSEC_TOOLS_VERSION
= $(IPSEC_TOOLS_VERSION_MAJOR
).2
9 IPSEC_TOOLS_SOURCE
= ipsec-tools-
$(IPSEC_TOOLS_VERSION
).
tar.bz2
10 IPSEC_TOOLS_SITE
= http
://ftp.sunet.se
/pub
/NetBSD
/misc
/ipsec-tools
/$(IPSEC_TOOLS_VERSION_MAJOR
)
11 IPSEC_TOOLS_INSTALL_STAGING
= YES
12 IPSEC_TOOLS_MAKE
= $(MAKE1
)
13 IPSEC_TOOLS_DEPENDENCIES
= openssl flex host-flex
15 # configure hardcodes -Werror, so override CFLAGS on make invocation
16 IPSEC_TOOLS_MAKE_OPTS
= CFLAGS
='$(TARGET_CFLAGS)'
18 # openssl uses zlib, so we need to explicitly link with it when static
19 ifeq ($(BR2_STATIC_LIBS
),y
)
20 IPSEC_TOOLS_CONF_ENV
+= LIBS
=-lz
23 IPSEC_TOOLS_CONF_OPTS
= \
26 --with-kernel-headers
=$(STAGING_DIR
)/usr
/include
28 ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_ADMINPORT
),y
)
29 IPSEC_TOOLS_CONF_OPTS
+= --enable-adminport
31 IPSEC_TOOLS_CONF_OPTS
+= --disable-adminport
34 ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_NATT
),y
)
35 IPSEC_TOOLS_CONF_OPTS
+= --enable-natt
37 IPSEC_TOOLS_CONF_OPTS
+= --disable-natt
40 ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_FRAG
),y
)
41 IPSEC_TOOLS_CONF_OPTS
+= --enable-frag
43 IPSEC_TOOLS_CONF_OPTS
+= --disable-frag
46 ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_DPD
),y
)
47 IPSEC_TOOLS_CONF_OPTS
+= --enable-dpd
49 IPSEC_TOOLS_CONF_OPTS
+= --disable-dpd
52 ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_STATS
),y
)
53 IPSEC_TOOLS_CONF_OPTS
+= --enable-stats
55 IPSEC_TOOLS_CONF_OPTS
+= --disable-stats
58 ifneq ($(BR2_PACKAGE_IPSEC_TOOLS_READLINE
),y
)
59 IPSEC_TOOLS_CONF_OPTS
+= --without-readline
61 IPSEC_DEPENDENCIES
+= readline
64 ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_HYBRID
),y
)
65 IPSEC_TOOLS_CONF_OPTS
+= --enable-hybrid
67 IPSEC_TOOLS_CONF_OPTS
+= --disable-hybrid
70 ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_DISABLE
),y
)
71 IPSEC_TOOLS_CONF_OPTS
+= --enable-security-context
=no
73 ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_ENABLE
),y
)
74 IPSEC_TOOLS_CONF_OPTS
+= --enable-security-context
=yes
76 ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_KERNEL
),y
)
77 IPSEC_TOOLS_CONF_OPTS
+= --enable-security-context
=kernel
80 $(eval
$(autotools-package
))