blob: ea21799853b484795f66c450c54e6fce93a11139 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "A client for the Cisco3000 VPN Concentrator"
2HOMEPAGE = "http://www.unix-ag.uni-kl.de/~massar/vpnc/"
3AUTHOR = "Maurice Massar vpnc@unix-ag.uni-kl.de"
4SECTION = "net"
5LICENSE = "GPL-2.0+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=173b74cb8ac640a9992c03f3bce22a33"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05007
Brad Bishop6e60e8b2018-02-01 10:27:11 -05008DEPENDS += "libgcrypt"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05009
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010PV .= "r550-2jnpr1"
11SRCREV = "b1243d29e0c00312ead038b04a2cf5e2fa31d740"
12SRC_URI = "git://github.com/ndpgroup/vpnc \
13 file://long-help \
14 file://default.conf \
15 file://0001-search-for-log-help-in-build-dir.patch \
16 file://0002-Fix-vpnc-install-for-cross-compile.patch \
17 file://0003-error.h-is-specific-to-glibc-on-linux.patch \
18 file://0004-Use-pkgconfig-instead-of-libgcrypt-config.patch \
19 file://0005-include-sys-ttydefaults.h-for-CEOT-definition.patch \
20 file://0006-sysdep-Add-header-include-sequence-to-adjust-for-mus.patch \
21 file://0007-add-error-API-when-error.h-is-not-on-platform.patch \
22 file://0008-include-sysdep.h-before-net-if_tun.h.patch \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050023 file://0009-reduce-lifetime-value.patch \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050024 "
25
26PACKAGECONFIG ?= "gnutls"
27
28PACKAGECONFIG[gnutls] = ",,gnutls"
29PACKAGECONFIG[openssl] = ",,openssl"
30
31S = "${WORKDIR}/git"
32
33inherit perlnative pkgconfig
34
35#EXTRA_OEMAKE = "-e MAKEFLAGS="
Patrick Williamsb48b7b42016-08-17 15:04:38 -050036
37do_configure_append () {
38 # Make sure we use our nativeperl wrapper
39 sed -i "1s:#!.*:#!/usr/bin/env nativeperl:" ${S}/*.pl
Brad Bishop6e60e8b2018-02-01 10:27:11 -050040 cp ${WORKDIR}/long-help ${S}
Patrick Williamsb48b7b42016-08-17 15:04:38 -050041}
42
43do_install () {
Patrick Williamsddad1a12017-02-23 20:36:32 -060044 sed -i s:m600:m\ 600:g Makefile
Patrick Williamsb48b7b42016-08-17 15:04:38 -050045 oe_runmake 'DESTDIR=${D}' 'PREFIX=/usr' install
46 rm -f ${D}${sysconfdir}/vpnc/vpnc.conf #This file is useless
47 install ${WORKDIR}/default.conf ${D}${sysconfdir}/vpnc/default.conf
48}
49
50SYSROOT_PREPROCESS_FUNCS += "vpnc_sysroot_preprocess"
51
52vpnc_sysroot_preprocess () {
53 install -d ${SYSROOT_DESTDIR}${sysconfdir}/vpnc
54 install -m 755 ${D}${sysconfdir}/vpnc/vpnc-script ${SYSROOT_DESTDIR}${sysconfdir}/vpnc
55}
56
57CONFFILES_${PN} = "${sysconfdir}/vpnc/default.conf"
58RDEPENDS_${PN} = "perl-module-io-file"
59RRECOMMENDS_${PN} = "kernel-module-tun"