Gentoo Archives: gentoo-commits

From: Theo Anderson <telans@××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/FORT-validator/
Date: Sat, 26 Dec 2020 09:10:01
Message-Id: 1608973771.e07d9fbc9bd5ce21a4885ccdbc58620eac2c1f17.telans@gentoo
1 commit: e07d9fbc9bd5ce21a4885ccdbc58620eac2c1f17
2 Author: Theo Anderson <telans <AT> posteo <DOT> de>
3 AuthorDate: Sat Dec 26 01:51:16 2020 +0000
4 Commit: Theo Anderson <telans <AT> posteo <DOT> de>
5 CommitDate: Sat Dec 26 09:09:31 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e07d9fbc
7
8 net-misc/FORT-validator: bump to 1.4.2; use sed instead of patch
9
10 Package-Manager: Portage-3.0.12, Repoman-3.0.2
11 Signed-off-by: Theo Anderson <telans <AT> posteo.de>
12
13 .../FORT-validator/FORT-validator-1.4.2.ebuild | 78 ++++++++++++++++++++++
14 net-misc/FORT-validator/Manifest | 1 +
15 2 files changed, 79 insertions(+)
16
17 diff --git a/net-misc/FORT-validator/FORT-validator-1.4.2.ebuild b/net-misc/FORT-validator/FORT-validator-1.4.2.ebuild
18 new file mode 100644
19 index 00000000..25374596
20 --- /dev/null
21 +++ b/net-misc/FORT-validator/FORT-validator-1.4.2.ebuild
22 @@ -0,0 +1,78 @@
23 +# Copyright 2020 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +inherit autotools fcaps systemd
29 +
30 +MY_PN="fort"
31 +
32 +DESCRIPTION="FORT validator is an open source RPKI validator"
33 +HOMEPAGE="https://fortproject.net/validator?2"
34 +SRC_URI="https://github.com/NICMx/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
35 +
36 +LICENSE="MIT"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +IUSE="caps libressl"
40 +
41 +DEPEND="
42 + acct-group/fort
43 + acct-user/fort
44 + caps? ( sys-libs/libcap )
45 + dev-libs/jansson
46 + libressl? ( dev-libs/libressl:0= )
47 + !libressl? ( dev-libs/openssl:0= )
48 +"
49 +RDEPEND="
50 + ${DEPEND}
51 + net-misc/rsync
52 +"
53 +BDEPEND="
54 + sys-devel/autoconf
55 + sys-devel/automake
56 +"
57 +
58 +src_prepare() {
59 + default
60 + # Don't strip CFLAGS
61 + sed -i 's/fort_CFLAGS =/fort_CFLAGS = ${CFLAGS} /' src/Makefile.am || die
62 + # Don't test network
63 + sed -i '/http/d' test/Makefile.am || die
64 + eautoreconf
65 +}
66 +
67 +src_install() {
68 + newinitd "${FILESDIR}/${MY_PN}-initd" ${MY_PN}
69 + newconfd "${FILESDIR}/${MY_PN}-confd" ${MY_PN}
70 +
71 + emake DESTDIR="${ED}" install
72 + insinto /usr/share/${MY_PN}/
73 + insopts -m0644 -o "${MY_PN}"
74 + diropts -m0755 -o "${MY_PN}"
75 + doins -r examples/tal/
76 +
77 + dodoc -r examples/
78 +
79 + insinto /etc/fort
80 + newins "${FILESDIR}/fort-config.json" config.json
81 +
82 + exeinto "/usr/libexec/${MY_PN}"
83 + doexe fort_setup.sh
84 +
85 + systemd_dounit "${FILESDIR}/${MY_PN}.service"
86 +}
87 +
88 +pkg_postinst() {
89 + fcaps cap_net_bind_service usr/bin/fort
90 +
91 + einfo ""
92 + einfo "ARIN TAL is disabled by default because the ARIN Relying Party"
93 + einfo "Agreement must be accepted beforehead. Start fort, run"
94 + einfo ""
95 + einfo " su -s /bin/sh -c '${EROOT}/usr/libexec/${MY_PN}/fort_setup.sh /usr/share/${MY_PN}/tal/' fort"
96 + einfo ""
97 + einfo "as root and restart fort to enable it."
98 + einfo "The configuration file generation will provide a config file, but a"
99 + einfo "simpler one is shiped with the ebuid. Use the one you prefer."
100 +}
101
102 diff --git a/net-misc/FORT-validator/Manifest b/net-misc/FORT-validator/Manifest
103 index 817dd6d4..89dcf1bb 100644
104 --- a/net-misc/FORT-validator/Manifest
105 +++ b/net-misc/FORT-validator/Manifest
106 @@ -1,3 +1,4 @@
107 DIST FORT-validator-1.3.0.tar.gz 444918 BLAKE2B 3a8fb8cce5c71d22ab402d6b6a1478f173641a3876bad04e9fde4373d2a6b49395ff692aa048579886a82a799ed7849fc51d86c798b0b0ea9c594b4eb532b367 SHA512 0aed86979e6b9c3142cc9a53d13a619dbe22a3e05bcc26f30fda5048ac3e9d31b83307fbd4a68543eaf948954dbaba54edbce9b90ab0189d15c3629b220d094c
108 DIST FORT-validator-1.4.0.tar.gz 468621 BLAKE2B f531f06136e8052ca8a001c91c8209bba7f0da6dcbb8cbccf9d7b3d39e2366951f48f254614def4749a8eb3f83bf01afaf9e2b013eecbc8fcd0c4274c4c3496a SHA512 dfbd94c9fbd8a4eac9f43030ebfa005febc01e4a39fccdd58fbfcc79aadfe0eeb2f8a2f4836c8d14c3e957f58e91466650ff1a266144f4b4f731495f8a74e460
109 DIST FORT-validator-1.4.1.tar.gz 468737 BLAKE2B d1cbe115ba4d5e650d83e5793773028d545d7e56e8a7247ddc10673e0925ff278ebbc35f1161423d6f2b0bea6c8cb3416d8d87afea8c414bb69b5b95b9c8bf06 SHA512 aac4039bfad71fe9d9747abf8b2121d8b801c07feac83238c994b406241d2fefcf46bebc899298be84fddb90bbc345b117613a4bd4d45fbb38da89d1040ed393
110 +DIST FORT-validator-1.4.2.tar.gz 471694 BLAKE2B 9c5f3a2a6b79dbd62248e125d665d31561c2efee0b7df31215d16d55b56b56dee8dd6e5c34e9d01e36e82383dec49d6bb59fc3f078be000f166f46c4c08ead33 SHA512 c06c5552282584c0c671cec04d11a6072c5d19b3cc5a6e140088e6774c9b03a5fb00e9929e3f278f61207083f10f332282dba2c9395a28e78c190599c077c9fd