diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/bearssl/APKBUILD | 14 | ||||
-rw-r--r-- | user/s6-networking/APKBUILD | 40 |
2 files changed, 46 insertions, 8 deletions
diff --git a/user/bearssl/APKBUILD b/user/bearssl/APKBUILD index 1f40633b7..ad6e8b20a 100644 --- a/user/bearssl/APKBUILD +++ b/user/bearssl/APKBUILD @@ -2,17 +2,14 @@ # Contributor: Laurent Bercot <ska-adelie@skarnet.org> pkgname=bearssl pkgver=0.6 -pkgrel=0 +pkgrel=1 pkgdesc="The BearSSL implementation of the SSL/TLS protocol" url="https://bearssl.org/" arch="all" license="MIT" builddir="$srcdir/$pkgname-$pkgver" subpackages="$pkgname-dev" -source="https://bearssl.org/$pkgname-$pkgver.tar.gz" - -# not using the brssl dynamic patch atm, because the ABI can change, -# and bearssl's author recommends against using the .so atm. +source="https://bearssl.org/$pkgname-$pkgver.tar.gz bearssl-brssl-dynamic.patch" build() { cd "$builddir" @@ -25,8 +22,8 @@ build() { } package() { - mkdir -p -m 0755 -- "$pkgdir"/bin "$pkgdir"/lib "$pkgdir"/usr/include "$pkgdir"/usr/lib - cp -f "$builddir/build/brssl" "$pkgdir/bin/" + mkdir -p -m 0755 -- "$pkgdir"/usr/bin "$pkgdir"/lib "$pkgdir"/usr/include "$pkgdir"/usr/lib + cp -f "$builddir/build/brssl" "$pkgdir/usr/bin/" cp -f "$builddir"/inc/* "$pkgdir/usr/include/" cp -f "$builddir/build/libbearssl.a" "$pkgdir/usr/lib/" cp -f "$builddir/build/libbearssl.so.$pkgver" "$pkgdir/lib/" @@ -39,4 +36,5 @@ check() { ./testx509 && ./testcrypto all } -sha512sums="f9ed25683cfc6c4abe7f1203a2b82ed101ee4c9e0f9ab60755b6a09c8d1e8e4f64d413624e7bb9c4b0033f909a2e4568a1d916cc6ce4736222900691e1f8359a bearssl-0.6.tar.gz" +sha512sums="f9ed25683cfc6c4abe7f1203a2b82ed101ee4c9e0f9ab60755b6a09c8d1e8e4f64d413624e7bb9c4b0033f909a2e4568a1d916cc6ce4736222900691e1f8359a bearssl-0.6.tar.gz +f5fe047862eb355a662ccb1b95c2ca4a870ac0f8d3f4cada5396d2f6a6635647db53fbeb038f9a7651b84d6cda32b6415ce0f69a8da92636d3b3b76578114d5c bearssl-brssl-dynamic.patch" diff --git a/user/s6-networking/APKBUILD b/user/s6-networking/APKBUILD new file mode 100644 index 000000000..39b08026f --- /dev/null +++ b/user/s6-networking/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Laurent Bercot <ska-adelie@skarnet.org> +# Maintainer: Laurent Bercot <ska-adelie@skarnet.org> +pkgname=s6-networking +pkgver=2.3.0.3 +pkgrel=0 +pkgdesc="skarnet.org's UCSPI Unix and TCP tools, access control tools, and network time management utilities." +url="https://skarnet.org/software/$pkgname/" +arch="all" +license="ISC" +options="!check" # No test suite. +depends_dev="skalibs-dev bearssl-dev" +makedepends="skalibs-dev execline-dev s6-dev s6-dns-dev bearssl-dev" +subpackages="$pkgname-dev $pkgname-doc" +source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz" + +build() { + cd "$builddir" + ./configure \ + --enable-shared \ + --enable-static \ + --disable-allstatic \ + --prefix=/usr \ + --libexecdir="/usr/lib/$pkgname" \ + --with-dynlib=/lib \ + --enable-ssl=bearssl + make +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +doc() { + default_doc + mkdir -p "$subpkgdir/usr/share/doc" + cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname" +} + +sha512sums="f710c8c67b88523d4d461ab775ad3a56ca148e0e5ee4c02fe40d0783ff43af8779e598548db5048cc32852be6659f2feb7ac29ba07a953daa0039cec0fc14762 s6-networking-2.3.0.3.tar.gz" |