Gentoo Archives: gentoo-commits

From: Alarig Le Lay <alarig@××××××××××.fr>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/rpki-client/, net-misc/rpki-client/files/
Date: Sun, 03 May 2020 20:54:23
Message-Id: 1588539247.075f159d38dba3037debd40fbdfc82c1e421c9b4.AlarigLeLay@gentoo
1 commit: 075f159d38dba3037debd40fbdfc82c1e421c9b4
2 Author: Alarig Le Lay <alarig <AT> swordarmor <DOT> fr>
3 AuthorDate: Sun May 3 20:54:07 2020 +0000
4 Commit: Alarig Le Lay <alarig <AT> swordarmor <DOT> fr>
5 CommitDate: Sun May 3 20:54:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=075f159d
7
8 net-misc/rpki-client: New ebuild
9
10 RPKI client implementation
11
12 Package-Manager: Portage-2.3.89, Repoman-2.3.20
13 Signed-off-by: Alarig Le Lay <alarig <AT> swordarmor.fr>
14
15 net-misc/rpki-client/Manifest | 1 +
16 .../files/rpki-client-0.2.0-Makefile.patch | 19 ++++++++++
17 net-misc/rpki-client/metadata.xml | 8 ++++
18 net-misc/rpki-client/rpki-client-0.3.0.ebuild | 43 ++++++++++++++++++++++
19 4 files changed, 71 insertions(+)
20
21 diff --git a/net-misc/rpki-client/Manifest b/net-misc/rpki-client/Manifest
22 new file mode 100644
23 index 0000000..b50be42
24 --- /dev/null
25 +++ b/net-misc/rpki-client/Manifest
26 @@ -0,0 +1 @@
27 +DIST rpki-client-0.3.0.tar.gz 81002 BLAKE2B acc428d14cfcfd0733236061d4b7bccce2fc898829ffc34603918e7cee1c7bf48496388c667027c9a3c319f41c46c58bd06e73088e2f2f80958dd5db34e1d5a6 SHA512 4169198074bd3e81008e34838a868313faa450c4fdf5bc827a5229a8ca4fbaa22fedd45d4dde59be0f15d8b80a27eb287a5e29eacc4a2c4a57e9c9e344ac3bbf
28
29 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
30 new file mode 100644
31 index 0000000..25ff4a5
32 --- /dev/null
33 +++ b/net-misc/rpki-client/files/rpki-client-0.2.0-Makefile.patch
34 @@ -0,0 +1,19 @@
35 +--- Makefile 2019-06-16 16:32:45.000000000 +0200
36 ++++ Makefile 2019-12-07 17:14:01.888076319 +0100
37 +@@ -30,12 +30,12 @@
38 + test-tal
39 +
40 + # Linux.
41 +-#LDADD += `pkg-config --libs openssl` -lresolv
42 +-#CFLAGS += `pkg-config --cflags openssl`
43 ++LDADD += `pkg-config --libs openssl` -lresolv
44 ++CFLAGS += `pkg-config --cflags openssl`
45 +
46 + # OpenBSD.
47 +-CFLAGS += -I/usr/local/include/eopenssl
48 +-LDADD += /usr/local/lib/eopenssl/libssl.a /usr/local/lib/eopenssl/libcrypto.a
49 ++#CFLAGS += -I/usr/local/include/eopenssl
50 ++#LDADD += /usr/local/lib/eopenssl/libssl.a /usr/local/lib/eopenssl/libcrypto.a
51 +
52 + all: $(BINS)
53 +
54
55 diff --git a/net-misc/rpki-client/metadata.xml b/net-misc/rpki-client/metadata.xml
56 new file mode 100644
57 index 0000000..17361c3
58 --- /dev/null
59 +++ b/net-misc/rpki-client/metadata.xml
60 @@ -0,0 +1,8 @@
61 +<?xml version="1.0" encoding="UTF-8"?>
62 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
63 +<pkgmetadata>
64 + <maintainer type="person">
65 + <email>alarig@××××××××××.fr</email>
66 + <name>Alarig Le Lay</name>
67 + </maintainer>
68 +</pkgmetadata>
69
70 diff --git a/net-misc/rpki-client/rpki-client-0.3.0.ebuild b/net-misc/rpki-client/rpki-client-0.3.0.ebuild
71 new file mode 100644
72 index 0000000..ca194cc
73 --- /dev/null
74 +++ b/net-misc/rpki-client/rpki-client-0.3.0.ebuild
75 @@ -0,0 +1,43 @@
76 +# Copyright 2020 Gentoo Authors
77 +# Distributed under the terms of the GNU General Public License v2
78 +
79 +EAPI=7
80 +
81 +inherit eutils
82 +
83 +VERSION="VERSION_${PV//./_}"
84 +
85 +DESCRIPTION="RPKI client implementation"
86 +HOMEPAGE="https://github.com/kristapsdz/rpki-client"
87 +SRC_URI="https://github.com/kristapsdz/${PN}/archive/${VERSION}.tar.gz -> ${P}.tar.gz"
88 +
89 +LICENSE="ISC"
90 +SLOT="0"
91 +KEYWORDS="~amd64 ~x86"
92 +IUSE=""
93 +
94 +DEPEND="
95 + acct-group/_rpki-client
96 + acct-user/_rpki-client
97 +"
98 +RDEPEND="${DEPEND}"
99 +BDEPEND=""
100 +
101 +src_configure() {
102 + ./configure CPPFLAGS="`pkg-config --cflags openssl`" \
103 + LDFLAGS="`pkg-config --libs-only-L openssl`" \
104 + LDADD="`pkg-config --libs openssl` -lresolv"
105 +}
106 +
107 +src_unpack() {
108 + unpack ${A}
109 + mv "${WORKDIR}/${PN}-${VERSION}" "${S}"
110 +}
111 +
112 +src_install() {
113 + emake DESTDIR="${D}" BINDIR="/usr/bin" MANDIR="/usr/share/man" install
114 + insinto /usr/share/${PN}
115 + doins tals/*
116 + keepdir /var/cache/${PN}/
117 + fowners -R _rpki-client /var/cache/${PN}/
118 +}