1*4882a593SmuzhiyunSUMMARY = "A client for the Cisco3000 VPN Concentrator" 2*4882a593SmuzhiyunHOMEPAGE = "http://www.unix-ag.uni-kl.de/~massar/vpnc/" 3*4882a593SmuzhiyunAUTHOR = "Maurice Massar vpnc@unix-ag.uni-kl.de" 4*4882a593SmuzhiyunSECTION = "net" 5*4882a593SmuzhiyunLICENSE = "GPL-2.0-or-later" 6*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=173b74cb8ac640a9992c03f3bce22a33" 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunDEPENDS += "libgcrypt" 9*4882a593Smuzhiyun 10*4882a593SmuzhiyunPV .= "r550-2jnpr1" 11*4882a593SmuzhiyunSRCREV = "b1243d29e0c00312ead038b04a2cf5e2fa31d740" 12*4882a593SmuzhiyunSRC_URI = "git://github.com/ndpgroup/vpnc;branch=master;protocol=https \ 13*4882a593Smuzhiyun file://long-help \ 14*4882a593Smuzhiyun file://default.conf \ 15*4882a593Smuzhiyun file://0001-search-for-log-help-in-build-dir.patch \ 16*4882a593Smuzhiyun file://0002-Fix-vpnc-install-for-cross-compile.patch \ 17*4882a593Smuzhiyun file://0003-error.h-is-specific-to-glibc-on-linux.patch \ 18*4882a593Smuzhiyun file://0004-Use-pkgconfig-instead-of-libgcrypt-config.patch \ 19*4882a593Smuzhiyun file://0005-include-sys-ttydefaults.h-for-CEOT-definition.patch \ 20*4882a593Smuzhiyun file://0006-sysdep-Add-header-include-sequence-to-adjust-for-mus.patch \ 21*4882a593Smuzhiyun file://0007-add-error-API-when-error.h-is-not-on-platform.patch \ 22*4882a593Smuzhiyun file://0008-include-sysdep.h-before-net-if_tun.h.patch \ 23*4882a593Smuzhiyun file://0009-reduce-lifetime-value.patch \ 24*4882a593Smuzhiyun " 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunPACKAGECONFIG ?= "gnutls" 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunPACKAGECONFIG[gnutls] = ",,gnutls" 29*4882a593SmuzhiyunPACKAGECONFIG[openssl] = ",,openssl" 30*4882a593Smuzhiyun 31*4882a593SmuzhiyunPACKAGES =+ "${PN}-script" 32*4882a593Smuzhiyun 33*4882a593SmuzhiyunS = "${WORKDIR}/git" 34*4882a593Smuzhiyun 35*4882a593Smuzhiyuninherit perlnative pkgconfig 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun#EXTRA_OEMAKE = "-e MAKEFLAGS=" 38*4882a593Smuzhiyun 39*4882a593Smuzhiyundo_configure:append () { 40*4882a593Smuzhiyun # Make sure we use our nativeperl wrapper 41*4882a593Smuzhiyun sed -i "1s:#!.*:#!/usr/bin/env nativeperl:" ${S}/*.pl 42*4882a593Smuzhiyun cp ${WORKDIR}/long-help ${S} 43*4882a593Smuzhiyun} 44*4882a593Smuzhiyun 45*4882a593Smuzhiyundo_install () { 46*4882a593Smuzhiyun sed -i s:m600:m\ 600:g Makefile 47*4882a593Smuzhiyun oe_runmake 'DESTDIR=${D}' 'PREFIX=/usr' install 48*4882a593Smuzhiyun rm -f ${D}${sysconfdir}/vpnc/vpnc.conf #This file is useless 49*4882a593Smuzhiyun install ${WORKDIR}/default.conf ${D}${sysconfdir}/vpnc/default.conf 50*4882a593Smuzhiyun} 51*4882a593Smuzhiyun 52*4882a593SmuzhiyunSYSROOT_PREPROCESS_FUNCS += "vpnc_sysroot_preprocess" 53*4882a593Smuzhiyun 54*4882a593Smuzhiyunvpnc_sysroot_preprocess () { 55*4882a593Smuzhiyun install -d ${SYSROOT_DESTDIR}${sysconfdir}/vpnc 56*4882a593Smuzhiyun install -m 755 ${D}${sysconfdir}/vpnc/vpnc-script ${SYSROOT_DESTDIR}${sysconfdir}/vpnc 57*4882a593Smuzhiyun} 58*4882a593Smuzhiyun 59*4882a593SmuzhiyunFILES:${PN}-script = "${sysconfdir}/vpnc/vpnc-script" 60*4882a593Smuzhiyun 61*4882a593SmuzhiyunCONFFILES:${PN} = "${sysconfdir}/vpnc/default.conf" 62*4882a593SmuzhiyunRDEPENDS:${PN} = "perl-module-io-file ${PN}-script" 63*4882a593SmuzhiyunRRECOMMENDS:${PN} = "kernel-module-tun" 64