blob: 421ebaa9694fee020367a8811b0012997732e09d [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"
Andrew Geissler595f6302022-01-24 19:11:47 +000012SRC_URI = "git://github.com/ndpgroup/vpnc;branch=master;protocol=https \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050013 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
Andrew Geissler82c905d2020-04-13 13:39:40 -050031PACKAGES =+ "${PN}-script"
32
Brad Bishop6e60e8b2018-02-01 10:27:11 -050033S = "${WORKDIR}/git"
34
35inherit perlnative pkgconfig
36
37#EXTRA_OEMAKE = "-e MAKEFLAGS="
Patrick Williamsb48b7b42016-08-17 15:04:38 -050038
Patrick Williams213cb262021-08-07 19:21:33 -050039do_configure:append () {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050040 # Make sure we use our nativeperl wrapper
41 sed -i "1s:#!.*:#!/usr/bin/env nativeperl:" ${S}/*.pl
Brad Bishop6e60e8b2018-02-01 10:27:11 -050042 cp ${WORKDIR}/long-help ${S}
Patrick Williamsb48b7b42016-08-17 15:04:38 -050043}
44
45do_install () {
Patrick Williamsddad1a12017-02-23 20:36:32 -060046 sed -i s:m600:m\ 600:g Makefile
Patrick Williamsb48b7b42016-08-17 15:04:38 -050047 oe_runmake 'DESTDIR=${D}' 'PREFIX=/usr' install
48 rm -f ${D}${sysconfdir}/vpnc/vpnc.conf #This file is useless
49 install ${WORKDIR}/default.conf ${D}${sysconfdir}/vpnc/default.conf
50}
51
52SYSROOT_PREPROCESS_FUNCS += "vpnc_sysroot_preprocess"
53
54vpnc_sysroot_preprocess () {
55 install -d ${SYSROOT_DESTDIR}${sysconfdir}/vpnc
56 install -m 755 ${D}${sysconfdir}/vpnc/vpnc-script ${SYSROOT_DESTDIR}${sysconfdir}/vpnc
57}
58
Patrick Williams213cb262021-08-07 19:21:33 -050059FILES:${PN}-script = "${sysconfdir}/vpnc/vpnc-script"
Andrew Geissler82c905d2020-04-13 13:39:40 -050060
Patrick Williams213cb262021-08-07 19:21:33 -050061CONFFILES:${PN} = "${sysconfdir}/vpnc/default.conf"
62RDEPENDS:${PN} = "perl-module-io-file ${PN}-script"
63RRECOMMENDS:${PN} = "kernel-module-tun"