# # This file and its contents are supplied under the terms of the # Common Development and Distribution License ("CDDL"), version 1.0. # You may only use this file in accordance with the terms of version # 1.0 of the CDDL. # # A full copy of the text of the CDDL should have accompanied this # source. A copy of the CDDL is also available via the Internet at # http://www.illumos.org/license/CDDL. # # # Copyright 2016 Jim Klimov # BUILD_BITS= 64 BUILD_STYLE= justmake include ../../../make-rules/shared-macros.mk COMPONENT_NAME= vpnc COMPONENT_VERSION= 0.5.3 HUMAN_VERSION = $(COMPONENT_VERSION).r550 COMPONENT_REVISION= 6 COMPONENT_SUMMARY= An IPSec-like VPN client compatible with Cisco EasyVPN COMPONENT_DESCRIPTION= An IPSec-like (over TUN/TAP) VPN client compatible with Cisco 3000 VPN Concentrators and EasyVPN #COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(SVN_REV).tar.bz2 COMPONENT_SRC= $(COMPONENT_NAME)-$(SVN_REV) COMPONENT_PROJECT_URL= https://www.unix-ag.uni-kl.de/~massar/vpnc/ COMPONENT_FMRI= network/$(COMPONENT_NAME) COMPONENT_CLASSIFICATION= Applications/Internet COMPONENT_LICENSE= GPLv2,BSD-2clause COMPONENT_LICENSE_FILE= COPYING SVN_REPO = https://svn.unix-ag.uni-kl.de/vpnc/trunk SVN_REV = 550 SVN_HASH = sha256:d9dfa0f5349daa52d62cb852a0a55712c81fe011a216c16314f933406c4a65d8 TEST_TARGET= $(NO_TESTS) include $(WS_MAKE_RULES)/common.mk COMPONENT_PREP_ACTION = \ (cd $(@D) &&\ $(MV) vpnc.8.template vpnc.1m.template) COMPONENT_PRE_CONFIGURE_ACTION = \ ($(CLONEY) $(SOURCE_DIR) $(@D)) COMPONENT_INSTALL_ARGS += PREFIX=$(USRDIR) COMPONENT_INSTALL_ARGS += BINDIR=$(USRBINDIR.$(BITS)) COMPONENT_INSTALL_ARGS += SBINDIR=$(USRSBINDIR.$(BITS)) COMPONENT_BUILD_ARGS += PREFIX=$(USRDIR) COMPONENT_BUILD_ARGS += BINDIR=$(USRBINDIR.$(BITS)) COMPONENT_BUILD_ARGS += SBINDIR=$(USRSBINDIR.$(BITS)) CFLAGS += -DHAVE_GETLINE=1 CFLAGS += -DHAVE_INET_NTOP=1 CFLAGS += -DCRYPTO_OPENSSL CFLAGS += -DOPENSSL_GPL_VIOLATION=yes CFLAGS += -I$(OPENSSL_INCDIR) LDFLAGS += -L$(OPENSSL_LIBDIR) # This also covers linking, even though "-m32"/"-m64" harmlessly # appears twice in command-line for compilation COMPONENT_BUILD_ARGS += CC="$(CC) -m$(BITS)" COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)" # Manually added build dependencies REQUIRED_PACKAGES += driver/network/header-tun # Auto-generated dependencies REQUIRED_PACKAGES += SUNWcs REQUIRED_PACKAGES += library/security/openssl-31 REQUIRED_PACKAGES += shell/ksh93 REQUIRED_PACKAGES += system/library REQUIRED_PACKAGES += system/library/security/libgcrypt