diff options
-rw-r--r-- | testing/openconnect/APKBUILD | 43 | ||||
-rw-r--r-- | testing/openconnect/openconnect-7.08-libressl251.patch | 14 | ||||
-rw-r--r-- | unmaintained/openconnect/APKBUILD | 36 |
3 files changed, 57 insertions, 36 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 diff --git a/unmaintained/openconnect/APKBUILD b/unmaintained/openconnect/APKBUILD deleted file mode 100644 index 016399a115..0000000000 --- a/unmaintained/openconnect/APKBUILD +++ /dev/null @@ -1,36 +0,0 @@ -# Contributor: Myautsai PAN <myautsai@gmail.com> -# Maintainer: Myautsai PAN <myautsai@gmail.com> - -pkgname=openconnect -pkgver=7.06 -pkgrel=3 -pkgdesc="Open client for Cisco AnyConnect VPN" -url="http://www.infradead.org/openconnect/" -arch="all" -license="LGPL2.1" -depends="vpnc" -makedepends="autoconf automake intltool python openssl-dev libxml2-dev lz4-dev - libproxy-dev linux-headers" -source="ftp://ftp.infradead.org/pub/$pkgname/$pkgname-$pkgver.tar.gz" -subpackages="$pkgname-doc" - -_builddir=$srcdir/$pkgname-$pkgver -build() { - cd $_builddir - ./configure --prefix=/usr \ - --sbindir=/usr/bin \ - --disable-static \ - --without-gnutls \ - --disable-nls - sed -i -r 's/\/\* #undef ICONV_CONST \*\//#define ICONV_CONST/' config.h - make -} - -package() { - cd $_builddir - make DESTDIR="$pkgdir" install -} - -md5sums="80f397911e1fed43d897d99be3d5f1a1 openconnect-7.06.tar.gz" -sha256sums="facf695368dc4537a6a30e2147be90b1d77ee3cb2d269eaef070b6d9ddab70f2 openconnect-7.06.tar.gz" -sha512sums="d1af9efe4ac1f6671dc6b92db0df981e8cae3f2f50b8b4c35a112b42a76517b7c8ea9fd5da93352445dd61da3012bf34fdbcc3add9d8727cbaad7d311e516108 openconnect-7.06.tar.gz" |