diff options
author | 2024-05-30 14:19:03 +0200 | |
---|---|---|
committer | 2024-05-30 14:19:06 +0200 | |
commit | 3b4a8f315821f9a00515ad6225325ff27dad8c20 (patch) | |
tree | 1967fcdc4750885a1d51ee7fb51338d4e1e11a0d /net-misc | |
parent | net-misc/FORT-validator: drop 1.5.3 (diff) | |
download | guru-3b4a8f315821f9a00515ad6225325ff27dad8c20.tar.gz guru-3b4a8f315821f9a00515ad6225325ff27dad8c20.tar.bz2 guru-3b4a8f315821f9a00515ad6225325ff27dad8c20.zip |
net-misc/FORT-validator: add 1.6.2
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/FORT-validator/FORT-validator-1.6.2.ebuild | 71 | ||||
-rw-r--r-- | net-misc/FORT-validator/Manifest | 1 |
2 files changed, 72 insertions, 0 deletions
diff --git a/net-misc/FORT-validator/FORT-validator-1.6.2.ebuild b/net-misc/FORT-validator/FORT-validator-1.6.2.ebuild new file mode 100644 index 0000000000..89351a5ade --- /dev/null +++ b/net-misc/FORT-validator/FORT-validator-1.6.2.ebuild @@ -0,0 +1,71 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools fcaps systemd + +MY_PN="fort" + +DESCRIPTION="FORT validator is an open source RPKI validator" +HOMEPAGE="https://fortproject.net/validator?2" +SRC_URI="https://github.com/NICMx/${PN}/releases/download/${PV}/fort-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="caps" + +DEPEND=" + acct-group/fort + acct-user/fort + caps? ( sys-libs/libcap ) + dev-libs/jansson + dev-libs/libxml2 + dev-libs/openssl[rfc3779] + net-misc/curl +" +RDEPEND=" + ${DEPEND} + net-misc/rsync +" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + default + # Don't strip CFLAGS + sed -i 's/fort_CFLAGS =/fort_CFLAGS = ${CFLAGS} /' src/Makefile.am || die + # Don't test network + sed -i '/http/d' test/Makefile.am || die + eautoreconf +} + +src_install() { + newinitd "${FILESDIR}/${MY_PN}-1.5-initd" ${MY_PN} + newconfd "${FILESDIR}/${MY_PN}-1.5-confd" ${MY_PN} + + emake DESTDIR="${ED}" install + insinto /usr/share/${MY_PN}/ + insopts -m0644 -o "${MY_PN}" + diropts -m0755 -o "${MY_PN}" + doins -r examples/tal/ + + dodoc -r examples/ + + insinto /etc/fort + newins "${FILESDIR}/fort-config.json" config.json + + systemd_dounit "${FILESDIR}/${MY_PN}-1.5.service" +} + +pkg_postinst() { + fcaps cap_net_bind_service usr/bin/fort + + einfo "" + einfo "You have to init the TALs before the first run. To do so, run " + einfo "" + einfo " su -s /bin/sh -c '${EROOT}/usr/bin/${MY_PN} --init-tals --tal /usr/share/${MY_PN}/tal/' fort" + einfo "" + einfo "as root." +} diff --git a/net-misc/FORT-validator/Manifest b/net-misc/FORT-validator/Manifest index d273fecf6c..d2722de1ed 100644 --- a/net-misc/FORT-validator/Manifest +++ b/net-misc/FORT-validator/Manifest @@ -1,2 +1,3 @@ DIST fort-1.5.4.tar.gz 563138 BLAKE2B bd2a680a41b678bbf49d762fdd1f0f20e2c8bbf3fa80cb57c996d39ad39118ead3ebed7737bdef7478effbb6fa6e7fb39cd3c945a495f613a010dd79bea4f5d6 SHA512 44ec8dd28ab087f1d78f999c53b5dee8f13a6fc9bdf590d3261d640488b118e14970d88c5c5851e602a8119704378088230b8137978ef3caf6bab909af36408e DIST fort-1.6.1.tar.gz 547724 BLAKE2B 362299bf0a190b9d8cf6f658f2830435ceb78c4bc181e6735e2291f2d766018e9402cc596c20ef4b98aca43ac1c8edfee8369f237f0b9c1e657cf31ae2d023b0 SHA512 84ad18e730fca7ac67c028dc5b05a5b5d175eaa4eb2edade238ae16064c2f83865e263e767d37938c975578236edd8cba0b8604099a9e3ccef13250d2feb46dd +DIST fort-1.6.2.tar.gz 477582 BLAKE2B 38c302414d27c16fa0b217e717dfa7997b57bbf67f3b8864d718f465e96393879c3b656eec1b7141d99b76bb1493ad528bf6eb188a004be63f242ac6e7eb98db SHA512 403158ad65d0b3516c1b14963765c4809f07f9a3c9f20862250800416b5a0617f22d9c874d285c06975e988c3edef9b5c91bfd9c4f5798dd1c5d538458f195d6 |