summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSasha Romijn2020-09-22 13:53:11 +0200
committerSasha Romijn2020-09-22 13:53:11 +0200
commit94ebcbf7547522f1e0771e45dc51d74599de4200 (patch)
treea07e8d490d17664065b2597969525ca610104ce6
downloadaur-94ebcbf7547522f1e0771e45dc51d74599de4200.tar.gz
Add rpki-client 6.7p1-1
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD35
-rw-r--r--rpki-client.install10
-rw-r--r--sysusers-rpki-client.conf1
-rw-r--r--tmpfiles-rpki-client.conf2
5 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6027753d41b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = rpki-client
+ pkgdesc = Implementation of RPKI for Relying Parties to facilitate ROA validation
+ pkgver = 6.7p1
+ pkgrel = 1
+ url = https://github.com/rpki-client/rpki-client-portable
+ install = rpki-client.install
+ arch = x86_64
+ arch = aarch64
+ license = ISC
+ makedepends = git
+ depends = glibc
+ depends = rsync
+ depends = openssl
+ source = 6.7p1.tar.gz::https://github.com/rpki-client/rpki-client-portable/archive/6.7p1.tar.gz
+ source = sysusers-rpki-client.conf
+ source = tmpfiles-rpki-client.conf
+ sha512sums = bc9815ab6cd930715e9494b82b1547a419706db3fa4eca003767d6e39c3a63c0a3f3048c211c773e1f0e87043b0bfd622b0d5be856ccced27f893eefc9511211
+ sha512sums = 13603ff4fe582a07984dd8a2a0704c8795f5d604a9b2afee43278169d9e187300a349d2629bea0d64f0ff6a3d6347ad2a9d9010ae96d440b07ec1a1f869c0891
+ sha512sums = d51b0464399d4a36af4353dd99492eff6a99d1bcb6bd95b8602c8c0c23af18e278c41b9a081b84bbd97e84e9f18917e1e0d70a3ff897bd3e261796b292f72826
+
+pkgname = rpki-client
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1c2bcb455ec
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Sasha Romijn <arch at mxsasha.eu>
+pkgname=rpki-client
+pkgver="6.7p1"
+pkgrel=1
+pkgdesc="Implementation of RPKI for Relying Parties to facilitate ROA validation"
+arch=('x86_64' 'aarch64')
+url="https://github.com/rpki-client/rpki-client-portable"
+license=('ISC')
+source=("${pkgver}.tar.gz::https://github.com/rpki-client/rpki-client-portable/archive/$pkgver.tar.gz"
+ "sysusers-rpki-client.conf"
+ "tmpfiles-rpki-client.conf")
+sha512sums=('bc9815ab6cd930715e9494b82b1547a419706db3fa4eca003767d6e39c3a63c0a3f3048c211c773e1f0e87043b0bfd622b0d5be856ccced27f893eefc9511211'
+ '13603ff4fe582a07984dd8a2a0704c8795f5d604a9b2afee43278169d9e187300a349d2629bea0d64f0ff6a3d6347ad2a9d9010ae96d440b07ec1a1f869c0891'
+ 'd51b0464399d4a36af4353dd99492eff6a99d1bcb6bd95b8602c8c0c23af18e278c41b9a081b84bbd97e84e9f18917e1e0d70a3ff897bd3e261796b292f72826')
+install="rpki-client.install"
+depends=('glibc' 'rsync' 'openssl')
+makedepends=('git')
+
+build() {
+ cd "rpki-client-portable-$pkgver"
+
+ ./autogen.sh
+ ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var --with-user=rpki-client
+ make
+}
+
+package() {
+ cd "rpki-client-portable-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
+ install -D -m644 README.md "${pkgdir}/usr/share/doc/$pkgname/README.md"
+ install -D -m644 "${srcdir}/sysusers-rpki-client.conf" "${pkgdir}/usr/lib/sysusers.d/rpki-client.conf"
+ install -D -m644 "${srcdir}/tmpfiles-rpki-client.conf" "${pkgdir}/usr/lib/tmpfiles.d/rpki-client.conf"
+}
diff --git a/rpki-client.install b/rpki-client.install
new file mode 100644
index 00000000000..209de3f77ba
--- /dev/null
+++ b/rpki-client.install
@@ -0,0 +1,10 @@
+post_install() {
+ echo
+ echo "==========================================================================="
+ echo "The ARIN TAL is not included in this package due due licensing constraints."
+ echo "To use the ARIN TAL, download it yourself from"
+ echo "https://www.arin.net/resources/manage/rpki/tal/"
+ echo "and place the arin.tal file in /etc/rpki/"
+ echo "==========================================================================="
+ echo
+}
diff --git a/sysusers-rpki-client.conf b/sysusers-rpki-client.conf
new file mode 100644
index 00000000000..148d9c486e5
--- /dev/null
+++ b/sysusers-rpki-client.conf
@@ -0,0 +1 @@
+u rpki-client - "RPKI client unpriviliged user" /
diff --git a/tmpfiles-rpki-client.conf b/tmpfiles-rpki-client.conf
new file mode 100644
index 00000000000..ac748653b1d
--- /dev/null
+++ b/tmpfiles-rpki-client.conf
@@ -0,0 +1,2 @@
+d /var/cache/rpki-client 755 rpki-client rpki-client
+d /var/db/rpki-client 755 rpki-client rpki-client