Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "A client for the Cisco3000 VPN Concentrator" |
| 2 | HOMEPAGE = "http://www.unix-ag.uni-kl.de/~massar/vpnc/" |
| 3 | AUTHOR = "Maurice Massar vpnc@unix-ag.uni-kl.de" |
| 4 | SECTION = "net" |
| 5 | LICENSE = "GPL-2.0+" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=173b74cb8ac640a9992c03f3bce22a33" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 7 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 8 | DEPENDS += "libgcrypt" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 9 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 10 | PV .= "r550-2jnpr1" |
| 11 | SRCREV = "b1243d29e0c00312ead038b04a2cf5e2fa31d740" |
| 12 | SRC_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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 23 | file://0009-reduce-lifetime-value.patch \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 24 | " |
| 25 | |
| 26 | PACKAGECONFIG ?= "gnutls" |
| 27 | |
| 28 | PACKAGECONFIG[gnutls] = ",,gnutls" |
| 29 | PACKAGECONFIG[openssl] = ",,openssl" |
| 30 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 31 | PACKAGES =+ "${PN}-script" |
| 32 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 33 | S = "${WORKDIR}/git" |
| 34 | |
| 35 | inherit perlnative pkgconfig |
| 36 | |
| 37 | #EXTRA_OEMAKE = "-e MAKEFLAGS=" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 38 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 39 | do_configure:append () { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 40 | # Make sure we use our nativeperl wrapper |
| 41 | sed -i "1s:#!.*:#!/usr/bin/env nativeperl:" ${S}/*.pl |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 42 | cp ${WORKDIR}/long-help ${S} |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | do_install () { |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 46 | sed -i s:m600:m\ 600:g Makefile |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 47 | 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 | |
| 52 | SYSROOT_PREPROCESS_FUNCS += "vpnc_sysroot_preprocess" |
| 53 | |
| 54 | vpnc_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 Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 59 | FILES:${PN}-script = "${sysconfdir}/vpnc/vpnc-script" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 60 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 61 | CONFFILES:${PN} = "${sysconfdir}/vpnc/default.conf" |
| 62 | RDEPENDS:${PN} = "perl-module-io-file ${PN}-script" |
| 63 | RRECOMMENDS:${PN} = "kernel-module-tun" |