diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-11-27 21:06:53 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-11-27 21:06:59 +0000 |
commit | 6afcf362335b17590f8bcf8f7462a7d2165a7eaf (patch) | |
tree | 2962f2af28be744dc9abf4e9762d1afc5536181f /testing | |
parent | bc1cb506a2a45ed5600e84258276bf38ce5f106f (diff) | |
download | aports-6afcf362335b17590f8bcf8f7462a7d2165a7eaf.tar.bz2 aports-6afcf362335b17590f8bcf8f7462a7d2165a7eaf.tar.xz |
testing/openconnect: moved from unmaintained, upgraded to 7.08
Diffstat (limited to 'testing')
-rw-r--r-- | testing/openconnect/APKBUILD | 43 | ||||
-rw-r--r-- | testing/openconnect/openconnect-7.08-libressl251.patch | 14 |
2 files changed, 57 insertions, 0 deletions
diff --git a/testing/openconnect/APKBUILD b/testing/openconnect/APKBUILD new file mode 100644 index 0000000000..accedda560 --- /dev/null +++ b/testing/openconnect/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Myautsai PAN <myautsai@gmail.com> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> + +pkgname=openconnect +pkgver=7.08 +pkgrel=0 +pkgdesc="Open client for Cisco AnyConnect VPN" +url="http://www.infradead.org/openconnect/" +arch="all" +license="LGPL2.1" +depends="vpnc iproute2" +makedepends="autoconf automake intltool gnutls-dev libxml2-dev + krb5-dev lz4-dev libproxy-dev linux-headers" +source="ftp://ftp.infradead.org/pub/$pkgname/$pkgname-$pkgver.tar.gz + openconnect-7.08-libressl251.patch" +subpackages="$pkgname-doc $pkgname-dev" +builddir=$srcdir/$pkgname-$pkgver + +build() { + cd $builddir + ./configure --prefix=/usr \ + --sbindir=/usr/bin \ + --disable-static \ + --disable-rpath \ + --with-gnutls \ + --with-vpnc-script=/etc/vpnc/vpnc-script \ + --disable-nls + make +} + +check() { + cd $builddir + make check +} + +package() { + cd $builddir + make DESTDIR="$pkgdir" install + mkdir -p "$pkgdir"/var/log/openconnect +} + +sha512sums="22f9b0bd4bd17e2ab91ff42b2464c89abba035fe705c037ba4d1042ace460c8738e20481783a1edc3b7dd6503fe9fcc7fdd188552811fb1525310e25a4c2f400 openconnect-7.08.tar.gz +0472ca5e4fdb0522078027068dfc5e3f82bcd51c7699f4b0834b873053c5b384cff6746c3da54cc25daf8f16f7d04b3224edc5efc6f66908e538bee10e334350 openconnect-7.08-libressl251.patch" diff --git a/testing/openconnect/openconnect-7.08-libressl251.patch b/testing/openconnect/openconnect-7.08-libressl251.patch new file mode 100644 index 0000000000..ba0b894092 --- /dev/null +++ b/testing/openconnect/openconnect-7.08-libressl251.patch @@ -0,0 +1,14 @@ +diff -Naur openconnect-7.08.orig/openssl-dtls.c openconnect-7.08/openssl-dtls.c +--- openconnect-7.08.orig/openssl-dtls.c 2016-12-06 05:03:51.000000000 -0800 ++++ openconnect-7.08/openssl-dtls.c 2017-02-01 13:35:52.315398332 -0800 +@@ -100,8 +100,8 @@ + } + #else + /* OpenSSL <= 1.0.2 only supports CBC ciphers with PSK */ +- ivlen = EVP_CIPHER_iv_length(EVP_CIPHER_CTX_cipher(vpninfo->dtls_ssl->enc_write_ctx)); +- maclen = EVP_MD_CTX_size(vpninfo->dtls_ssl->write_hash); ++ ivlen = EVP_CIPHER_iv_length(EVP_CIPHER_CTX_cipher(vpninfo->dtls_ssl->enc_read_ctx)); ++ maclen = EVP_MD_CTX_size(vpninfo->dtls_ssl->read_hash); + blocksize = ivlen; + pad = 1; + #endif |