summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-07-11 23:40:45 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-07-12 04:11:35 +0000
commite19ad6c8a1b9a0aae1b217609d83dbdbe1d54890 (patch)
treea75d5f7d5d0ee1a1de8d08bd783673d727fc3043 /system
parente7bc63261a10fcf8245a0e78a9794acad3a04e16 (diff)
downloadpackages-e19ad6c8a1b9a0aae1b217609d83dbdbe1d54890.tar.gz
packages-e19ad6c8a1b9a0aae1b217609d83dbdbe1d54890.tar.bz2
packages-e19ad6c8a1b9a0aae1b217609d83dbdbe1d54890.tar.xz
packages-e19ad6c8a1b9a0aae1b217609d83dbdbe1d54890.zip
system/argon2: sec bump to 20190702
Diffstat (limited to 'system')
-rw-r--r--system/argon2/APKBUILD18
1 files changed, 11 insertions, 7 deletions
diff --git a/system/argon2/APKBUILD b/system/argon2/APKBUILD
index c91fbfd10..7a7331221 100644
--- a/system/argon2/APKBUILD
+++ b/system/argon2/APKBUILD
@@ -3,30 +3,34 @@
# Maintainer:
pkgname=argon2
_pkgname=phc-winner-argon2
-pkgver=20171227
-pkgrel=1
+pkgver=20190702
+pkgrel=0
pkgdesc="Password hashing function Argon2"
url="https://github.com/P-H-C/phc-winner-argon2"
arch="all"
license="Apache-2.0 AND CC0-1.0"
+depends=""
+makedepends=""
subpackages="$pkgname-dev $pkgname-dev $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/P-H-C/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
- cd "$builddir"
+ # musl >= 1.1.20 has explicit_bzero for better security
+ export CFLAGS="$CFLAGS -DHAVE_EXPLICIT_BZERO=1"
make OPTTARGET=none
}
check() {
- cd "$builddir"
make OPTTARGET=none test
}
package() {
- cd "$builddir"
- make OPTTARGET=none DESTDIR="$pkgdir" install
+ # pkgconfig file has it in /usr/lib...
+ sed -i 's#libdir=${prefix}/lib#libdir=/lib#' "$builddir"/libargon2.pc
+ make OPTTARGET=none DESTDIR="$pkgdir" LIBRARY_REL=lib install
+ # ...but cryptsetup needs this in /lib for early-boot
mv "$pkgdir"/usr/lib "$pkgdir"/
}
-sha512sums="9c9e1a3905e61ac6913d1e073c104477e419ddd0506adc4487e88e98d19165ed8901fe8bb11246ed0cc71b3523c190da9692d5926642f86be09c3e67510afe4d argon2-20171227.tar.gz"
+sha512sums="0a4cb89e8e63399f7df069e2862ccd05308b7652bf4ab74372842f66bcc60776399e0eaf979a7b7e31436b5e6913fe5b0a6949549d8c82ebd06e0629b106e85f argon2-20190702.tar.gz"