File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
scripts/v3.7/php-7.2/argon2 Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This package is being back-ported to support PHp 7.2 Argon2 password_hash() algo.
2
+ # Original file: https://github.com/alpinelinux/aports/blob/master/testing/argon2/APKBUILD
3
+
4
+ # Any license indication here contained takes lesser precedence than the original
5
+ # licenses on the official sources. It's just a backport.
6
+
7
+ # Contributor: Corey Oliver <coreyjonoliver@gmail.com>
8
+ # Maintainer: Corey Oliver <coreyjonoliver@gmail.com>
9
+ pkgname=argon2
10
+ _pkgname=phc-winner-argon2
11
+ pkgver=20161029
12
+ _soname=0.0.0
13
+ pkgrel=1
14
+ pkgdesc=" The password hash Argon2, winner of PHC"
15
+ url=" https://github.com/P-H-C/phc-winner-argon2"
16
+ arch=" all !armhf"
17
+ license=" Apache-2.0 CC0-1.0"
18
+ subpackages=" $pkgname -dev libargon2"
19
+ source=" $pkgname -$pkgver .tar.gz::https://github.com/P-H-C/$_pkgname /archive/$pkgver .tar.gz"
20
+ builddir=" $srcdir /$_pkgname -$pkgver "
21
+
22
+ build () {
23
+ cd " $builddir "
24
+ make && make test
25
+ }
26
+
27
+ package () {
28
+ cd " $builddir "
29
+ make DESTDIR=" $pkgdir " install || return 1
30
+
31
+ # A version number is not appended to the shared library file by default, so we do it ourselves
32
+ mv " $pkgdir " /usr/lib/libargon2.so " $pkgdir " /usr/lib/libargon2.so.$_soname || return 1
33
+ ln -s libargon2.so.$_soname " $pkgdir " /usr/lib/libargon2.so || return 1
34
+ ln -s libargon2.so.$_soname " $pkgdir " /usr/lib/libargon2.so.${_soname%% .* } || return 1
35
+ }
36
+
37
+ libargon2 () {
38
+ pkgdesc=" The password hash Argon2 library, winner of PHC"
39
+ mkdir -p " $subpkgdir " /usr
40
+ mv " $pkgdir " /usr/lib " $subpkgdir " /usr
41
+ }
42
+ sha512sums=" e1f947a97e8b5f292dd32a6f1ea0ef3f2e411629218653821886ec4e1d5f8289d5b8f4b8bf0a37e69c344a83b975c695947d6b49fd2001a0e4273bebd4792892 argon2-20161029.tar.gz"
You can’t perform that action at this time.
0 commit comments