diff options
author | André Klitzing <aklitzing@gmail.com> | 2017-03-13 09:46:50 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-13 12:13:36 +0100 |
commit | 375f5f18399ef5d24b7853f4f4eb7c90169e5baa (patch) | |
tree | 532100aca7c265a85ae1856531dcfe8f4308acf3 /community/mbedtls | |
parent | 2379df5196f5ca5b1874189afb54c6f7acb0059d (diff) | |
download | aports-375f5f18399ef5d24b7853f4f4eb7c90169e5baa.tar.bz2 aports-375f5f18399ef5d24b7853f4f4eb7c90169e5baa.tar.xz |
community/mbedtls: upgrade to 2.4.2 (security fix)
* Fixes CVE-2017-2784
* Add check() function
Diffstat (limited to 'community/mbedtls')
-rw-r--r-- | community/mbedtls/APKBUILD | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/community/mbedtls/APKBUILD b/community/mbedtls/APKBUILD index ce3a5ba42e..827c104f32 100644 --- a/community/mbedtls/APKBUILD +++ b/community/mbedtls/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Łukasz Jendrysik <scadu@yandex.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=mbedtls -pkgver=2.4.1 +pkgver=2.4.2 pkgrel=0 pkgdesc="Light-weight cryptographic and SSL/TLS library" url="https://tls.mbed.org/" @@ -12,8 +12,12 @@ makedepends="cmake perl" subpackages="$pkgname-static $pkgname-dev $pkgname-utils" source="$pkgname-$pkgver.tar.gz::https://github.com/ARMmbed/$pkgname/archive/$pkgname-$pkgver.tar.gz verbose-testsuite.patch" - builddir="$srcdir/$pkgname-$pkgname-$pkgver" + +# secfixes: +# 2.4.2-r0: +# - CVE-2017-2784 + build() { cd "$builddir" @@ -28,6 +32,11 @@ build() { make test || return 1 } +check() { + cd "$builddir" + make test || return 1 +} + package() { cd "$builddir" make DESTDIR="$pkgdir" install || return 1 @@ -45,9 +54,5 @@ static() { mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/ } -md5sums="a4494630e2c2e3705238526d51428971 mbedtls-2.4.1.tar.gz -8136afec9a4503c0087fa93eb1920bd9 verbose-testsuite.patch" -sha256sums="0c85fe59e1f0426b1c8f17efdc0c41bd531828b6cff746c392beb53c774af4cb mbedtls-2.4.1.tar.gz -21460d566f678f76bef8c2895e6c93d8a23792f6481aed5853dc63daf8cfcbaa verbose-testsuite.patch" -sha512sums="c452ec701c90bca236be1fbacb728036a01eca257c9df8b0d738e02f4a3570183e34ae23221ca61933dd34e42ca7659bae9ce5de0a6fdd870e77c4b7154d3688 mbedtls-2.4.1.tar.gz +sha512sums="39ab068ffad99afe228749fc7f69a02a8c79f0fdb73e2dbcde2e97f737338030e2fb8507e9d1cb866429e89b255197a2225607d6645421d31d7f2ccb65bfc04f mbedtls-2.4.2.tar.gz 1a0f0c8c794f8aab2a050b660e86f3cba293fcd4d0ffba9a1a1b8fd88f631d68fe194256495ed584d13e577c577829f0bbe821ffaf11165163b5a78c9d68efe8 verbose-testsuite.patch" |