aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlarig Le Lay <alarig@swordarmor.fr>2020-05-03 22:54:07 +0200
committerAlarig Le Lay <alarig@swordarmor.fr>2020-05-03 22:54:07 +0200
commit075f159d38dba3037debd40fbdfc82c1e421c9b4 (patch)
tree17dca67e0301fe0008590ae3f519352aed0333c4 /net-misc
parentacct-user/_rpki-client: New ebuild (diff)
downloadguru-075f159d38dba3037debd40fbdfc82c1e421c9b4.tar.gz
guru-075f159d38dba3037debd40fbdfc82c1e421c9b4.tar.bz2
guru-075f159d38dba3037debd40fbdfc82c1e421c9b4.zip
net-misc/rpki-client: New ebuild
RPKI client implementation Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/rpki-client/Manifest1
-rw-r--r--net-misc/rpki-client/files/rpki-client-0.2.0-Makefile.patch19
-rw-r--r--net-misc/rpki-client/metadata.xml8
-rw-r--r--net-misc/rpki-client/rpki-client-0.3.0.ebuild43
4 files changed, 71 insertions, 0 deletions
diff --git a/net-misc/rpki-client/Manifest b/net-misc/rpki-client/Manifest
new file mode 100644
index 00000000..b50be42e
--- /dev/null
+++ b/net-misc/rpki-client/Manifest
@@ -0,0 +1 @@
+DIST rpki-client-0.3.0.tar.gz 81002 BLAKE2B acc428d14cfcfd0733236061d4b7bccce2fc898829ffc34603918e7cee1c7bf48496388c667027c9a3c319f41c46c58bd06e73088e2f2f80958dd5db34e1d5a6 SHA512 4169198074bd3e81008e34838a868313faa450c4fdf5bc827a5229a8ca4fbaa22fedd45d4dde59be0f15d8b80a27eb287a5e29eacc4a2c4a57e9c9e344ac3bbf
diff --git a/net-misc/rpki-client/files/rpki-client-0.2.0-Makefile.patch b/net-misc/rpki-client/files/rpki-client-0.2.0-Makefile.patch
new file mode 100644
index 00000000..25ff4a54
--- /dev/null
+++ b/net-misc/rpki-client/files/rpki-client-0.2.0-Makefile.patch
@@ -0,0 +1,19 @@
+--- Makefile 2019-06-16 16:32:45.000000000 +0200
++++ Makefile 2019-12-07 17:14:01.888076319 +0100
+@@ -30,12 +30,12 @@
+ test-tal
+
+ # Linux.
+-#LDADD += `pkg-config --libs openssl` -lresolv
+-#CFLAGS += `pkg-config --cflags openssl`
++LDADD += `pkg-config --libs openssl` -lresolv
++CFLAGS += `pkg-config --cflags openssl`
+
+ # OpenBSD.
+-CFLAGS += -I/usr/local/include/eopenssl
+-LDADD += /usr/local/lib/eopenssl/libssl.a /usr/local/lib/eopenssl/libcrypto.a
++#CFLAGS += -I/usr/local/include/eopenssl
++#LDADD += /usr/local/lib/eopenssl/libssl.a /usr/local/lib/eopenssl/libcrypto.a
+
+ all: $(BINS)
+
diff --git a/net-misc/rpki-client/metadata.xml b/net-misc/rpki-client/metadata.xml
new file mode 100644
index 00000000..17361c39
--- /dev/null
+++ b/net-misc/rpki-client/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>alarig@swordarmor.fr</email>
+ <name>Alarig Le Lay</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-misc/rpki-client/rpki-client-0.3.0.ebuild b/net-misc/rpki-client/rpki-client-0.3.0.ebuild
new file mode 100644
index 00000000..ca194cc3
--- /dev/null
+++ b/net-misc/rpki-client/rpki-client-0.3.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils
+
+VERSION="VERSION_${PV//./_}"
+
+DESCRIPTION="RPKI client implementation"
+HOMEPAGE="https://github.com/kristapsdz/rpki-client"
+SRC_URI="https://github.com/kristapsdz/${PN}/archive/${VERSION}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ acct-group/_rpki-client
+ acct-user/_rpki-client
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_configure() {
+ ./configure CPPFLAGS="`pkg-config --cflags openssl`" \
+ LDFLAGS="`pkg-config --libs-only-L openssl`" \
+ LDADD="`pkg-config --libs openssl` -lresolv"
+}
+
+src_unpack() {
+ unpack ${A}
+ mv "${WORKDIR}/${PN}-${VERSION}" "${S}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" BINDIR="/usr/bin" MANDIR="/usr/share/man" install
+ insinto /usr/share/${PN}
+ doins tals/*
+ keepdir /var/cache/${PN}/
+ fowners -R _rpki-client /var/cache/${PN}/
+}