2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 Jim Klimov
14 # Copyright 2019 Michal Nowak
15 # Copyright 2020 Andreas Wacknitz
20 USE_DEFAULT_TEST_TRANSFORMS
= yes
21 include ..
/..
/..
/make-rules
/shared-macros.mk
23 COMPONENT_NAME
= openconnect
24 COMPONENT_VERSION
= 9.12
26 COMPONENT_SUMMARY
= An SSL VPN client
(intended to be
) compatible with Cisco AnyConnect and Juniper Pulse
27 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
).
tar.gz
28 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
29 COMPONENT_PROJECT_URL
= https
://www.infradead.org
/openconnect
30 COMPONENT_ARCHIVE_HASH
= sha256
:a2bedce3aa4dfe75e36e407e48e8e8bc91d46def5335ac9564fbf91bd4b2413e
31 COMPONENT_ARCHIVE_URL
= https
://www.infradead.org
/openconnect
/download
/$(COMPONENT_ARCHIVE
)
32 # COMPONENT_ARCHIVE_URL= https://github.com/openconnect/openconnect/archive/v$(COMPONENT_VERSION).tar.gz
33 COMPONENT_FMRI
= network
/$(COMPONENT_NAME
)
34 COMPONENT_CLASSIFICATION
= Applications
/Internet
35 COMPONENT_LICENSE
= LGPLv2.1
36 COMPONENT_LICENSE_FILE
= COPYING.LGPL
38 include $(WS_MAKE_RULES
)/common.mk
42 COMPONENT_PREP_ACTION
= \
47 COMPONENT_PRE_CONFIGURE_ACTION
= \
48 ($(CLONEY
) $(SOURCE_DIR
) $(@D
))
50 # To prevent "libtool_install_magic: unbound variable"
53 # Use OpenSSL, it allows more options on OI/Hipster that openconnect uses
54 CONFIGURE_OPTIONS
+= --with-system-cafile
=/etc
/certs
/ca-certificates.crt
55 CONFIGURE_OPTIONS
+= --without-gnutls
56 CONFIGURE_OPTIONS
+= --without-libpcsclite
58 # Replace python3 shebang lines with properly versioned ones.
59 COMPONENT_POST_INSTALL_ACTION
+= \
60 for file in
$(PROTO_DIR
)/usr
/libexec
/openconnect
/*.py
; do \
61 $(GSED
) -i
's/python3/python$(PYTHON_VERSION)/' $$file ; \
64 # Manually added dependencies
65 REQUIRED_PACKAGES
+= SUNWcs
66 REQUIRED_PACKAGES
+= network
/vpnc-scripts
67 REQUIRED_PACKAGES
+= driver
/network
/header-tun
69 # Auto-generated dependencies
70 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
71 REQUIRED_PACKAGES
+= library
/libproxy
72 REQUIRED_PACKAGES
+= library
/libxml2
73 REQUIRED_PACKAGES
+= library
/lz4
74 REQUIRED_PACKAGES
+= library
/zlib
75 REQUIRED_PACKAGES
+= shell/bash
76 REQUIRED_PACKAGES
+= shell/ksh93
77 REQUIRED_PACKAGES
+= system
/library
78 REQUIRED_PACKAGES
+= system
/library
/math
79 REQUIRED_PACKAGES
+= system
/library
/security
/gss