vim: update to 9.1.0969
[oi-userland.git] / components / network / vpnc / Makefile
blobd7f205dbc355238cde35320ce16b5df39c8106b2
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
5 # 1.0 of the CDDL.
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
15 BUILD_BITS= 64
16 BUILD_STYLE= justmake
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= vpnc
20 COMPONENT_VERSION= 0.5.3
21 HUMAN_VERSION = $(COMPONENT_VERSION).r550
22 COMPONENT_REVISION= 6
23 COMPONENT_SUMMARY= An IPSec-like VPN client compatible with Cisco EasyVPN
24 COMPONENT_DESCRIPTION= An IPSec-like (over TUN/TAP) VPN client compatible with Cisco 3000 VPN Concentrators and EasyVPN
25 #COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(SVN_REV).tar.bz2
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(SVN_REV)
27 COMPONENT_PROJECT_URL= https://www.unix-ag.uni-kl.de/~massar/vpnc/
28 COMPONENT_FMRI= network/$(COMPONENT_NAME)
29 COMPONENT_CLASSIFICATION= Applications/Internet
30 COMPONENT_LICENSE= GPLv2,BSD-2clause
31 COMPONENT_LICENSE_FILE= COPYING
33 SVN_REPO = https://svn.unix-ag.uni-kl.de/vpnc/trunk
34 SVN_REV = 550
35 SVN_HASH = sha256:d9dfa0f5349daa52d62cb852a0a55712c81fe011a216c16314f933406c4a65d8
37 TEST_TARGET= $(NO_TESTS)
38 include $(WS_MAKE_RULES)/common.mk
40 COMPONENT_PREP_ACTION = \
41 (cd $(@D) &&\
42 $(MV) vpnc.8.template vpnc.1m.template)
44 COMPONENT_PRE_CONFIGURE_ACTION = \
45 ($(CLONEY) $(SOURCE_DIR) $(@D))
47 COMPONENT_INSTALL_ARGS += PREFIX=$(USRDIR)
48 COMPONENT_INSTALL_ARGS += BINDIR=$(USRBINDIR.$(BITS))
49 COMPONENT_INSTALL_ARGS += SBINDIR=$(USRSBINDIR.$(BITS))
50 COMPONENT_BUILD_ARGS += PREFIX=$(USRDIR)
51 COMPONENT_BUILD_ARGS += BINDIR=$(USRBINDIR.$(BITS))
52 COMPONENT_BUILD_ARGS += SBINDIR=$(USRSBINDIR.$(BITS))
54 CFLAGS += -DHAVE_GETLINE=1
55 CFLAGS += -DHAVE_INET_NTOP=1
56 CFLAGS += -DCRYPTO_OPENSSL
57 CFLAGS += -DOPENSSL_GPL_VIOLATION=yes
58 CFLAGS += -I$(OPENSSL_INCDIR)
60 LDFLAGS += -L$(OPENSSL_LIBDIR)
62 # This also covers linking, even though "-m32"/"-m64" harmlessly
63 # appears twice in command-line for compilation
64 COMPONENT_BUILD_ARGS += CC="$(CC) -m$(BITS)"
65 COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
67 # Manually added build dependencies
68 REQUIRED_PACKAGES += driver/network/header-tun
70 # Auto-generated dependencies
71 REQUIRED_PACKAGES += SUNWcs
72 REQUIRED_PACKAGES += library/security/openssl-31
73 REQUIRED_PACKAGES += shell/ksh93
74 REQUIRED_PACKAGES += system/library
75 REQUIRED_PACKAGES += system/library/security/libgcrypt