From 075f159d38dba3037debd40fbdfc82c1e421c9b4 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Sun, 3 May 2020 22:54:07 +0200 Subject: [PATCH] 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 --- net-misc/rpki-client/Manifest | 1 + .../files/rpki-client-0.2.0-Makefile.patch | 19 ++++++++ net-misc/rpki-client/metadata.xml | 8 ++++ net-misc/rpki-client/rpki-client-0.3.0.ebuild | 43 +++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 net-misc/rpki-client/Manifest create mode 100644 net-misc/rpki-client/files/rpki-client-0.2.0-Makefile.patch create mode 100644 net-misc/rpki-client/metadata.xml create mode 100644 net-misc/rpki-client/rpki-client-0.3.0.ebuild diff --git a/net-misc/rpki-client/Manifest b/net-misc/rpki-client/Manifest new file mode 100644 index 0000000000..b50be42edb --- /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 0000000000..25ff4a549e --- /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 0000000000..17361c3983 --- /dev/null +++ b/net-misc/rpki-client/metadata.xml @@ -0,0 +1,8 @@ + + + + + alarig@swordarmor.fr + Alarig Le Lay + + 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 0000000000..ca194cc3a3 --- /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}/ +}