diff --git a/testing/rpki-client/APKBUILD b/testing/rpki-client/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..ac64748fbc01753244a89007398db555b61f7c3a --- /dev/null +++ b/testing/rpki-client/APKBUILD @@ -0,0 +1,41 @@ +# Maintainer: Ariadne Conill <ariadne@dereferenced.org> +pkgname=rpki-client +pkgver=7.5 +pkgrel=0 +pkgdesc="RPKI validator to support BGP Origin Validation" +url="https://www.rpki-client.org/" +arch="all" +license="ISC" +depends="rsync" +makedepends="openssl-dev libretls-dev expat-dev fts-dev" +checkdepends="" +install="$pkgname.pre-install" +pkgusers="rpki-client" +pkggroups="rpki-client" +subpackages="$pkgname-doc" +source="https://cdn.openbsd.org/pub/OpenBSD/rpki-client/rpki-client-$pkgver.tar.gz" +builddir="$srcdir/rpki-client-$pkgver" + +build() { + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --with-user=rpki-client + make +} + +check() { + make check +} + +package() { + make DESTDIR="$pkgdir" install +} + +sha512sums=" +3ec9cde07f9e82c5e460fb08f846634008942e9178904482bc5eaab754e405fee13c6fe8fb17661d358775ec641166675695fc02ec855aa19a564e4cd902a2bc rpki-client-7.5.tar.gz +" diff --git a/testing/rpki-client/rpki-client.pre-install b/testing/rpki-client/rpki-client.pre-install new file mode 100755 index 0000000000000000000000000000000000000000..1b53f82b90c6eedf82ce8cdf7d060836519da350 --- /dev/null +++ b/testing/rpki-client/rpki-client.pre-install @@ -0,0 +1,5 @@ +#!/bin/sh + +addgroup -S rpki-client 2>/dev/null +adduser -S -D -H -h /dev/null -s /sbin/nologin -g rpki-client rpki-client 2>/dev/null +exit 0