2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2013 Adam Stevko. All rights reserved.
13 # Copyright 2016 Jim Klimov
14 # Copyright 2020 Michal Nowak
15 # Copyright 2022 Niklas Poslovski
16 # Copyright 2024 Stephan Althaus
19 USE_PARALLEL_BUILD
= yes
20 USE_DEFAULT_TEST_TRANSFORMS
= yes
21 include ..
/..
/..
/make-rules
/shared-macros.mk
23 COMPONENT_NAME
= openvpn
24 COMPONENT_VERSION
= 2.6.12
25 COMPONENT_SUMMARY
= OpenVPN is a full-featured open source SSL VPN solution
26 COMPONENT_PROJECT_URL
= https
://openvpn.net
27 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
28 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
29 COMPONENT_ARCHIVE_HASH
= sha256
:1c610fddeb686e34f1367c347e027e418e07523a10f4d8ce4a2c2af2f61a1929
30 COMPONENT_ARCHIVE_URL
= https
://build.openvpn.net
/downloads
/releases
/$(COMPONENT_ARCHIVE
)
31 COMPONENT_FMRI
= network
/openvpn
32 COMPONENT_CLASSIFICATION
= Applications
/Internet
33 COMPONENT_LICENSE
= GPLv2
34 COMPONENT_LICENSE_FILE
= COPYING
36 include $(WS_MAKE_RULES
)/common.mk
38 CFLAGS
+= $(CPP_LARGEFILES
)
39 LDFLAGS
+= $(LD_Z_DEFS
) $(LD_Z_TEXT
) -lpthread
41 CONFIGURE_OPTIONS
+= CPPFLAGS
="$(CPPFLAGS)"
42 CONFIGURE_OPTIONS
+= GREP
=/usr
/gnu
/bin
/grep
43 CONFIGURE_OPTIONS
+= --disable-static
44 CONFIGURE_OPTIONS
+= --enable-shared
46 COMPONENT_POST_INSTALL_ACTION
+= \
47 $(MKDIR
) $(PROTO_DIR
)/$(USRSHAREDOCDIR
)/openvpn
/sample
/ ; \
48 $(CP
) -a
$(SOURCE_DIR
)/sample
/sample-
{config-files
,keys
,scripts
} $(PROTO_DIR
)/$(USRSHAREDOCDIR
)/openvpn
/sample
/ ;
50 COMPONENT_TEST_TRANSFORMS
+= \
51 '-e "/test was not run/p"' \
55 REQUIRED_PACKAGES
+= driver
/network
/header-tun
57 # Auto-generated dependencies
58 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
59 REQUIRED_PACKAGES
+= SUNWcs
60 REQUIRED_PACKAGES
+= library
/lz4
61 REQUIRED_PACKAGES
+= library
/lzo
62 REQUIRED_PACKAGES
+= system
/library