aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlarig Le Lay <alarig@swordarmor.fr>2024-05-26 19:00:26 +0200
committerAlarig Le Lay <alarig@swordarmor.fr>2024-05-26 19:00:43 +0200
commit584fdc12359792cc96dc4f24dd3296c02aa37087 (patch)
tree25a40355f99c8d50b3000100b0127fbd13fe0f4a /net-misc
parentx11-misc/ksnip: drop 1.9.2, 1.10.0-r1 (diff)
downloadguru-584fdc12359792cc96dc4f24dd3296c02aa37087.tar.gz
guru-584fdc12359792cc96dc4f24dd3296c02aa37087.tar.bz2
guru-584fdc12359792cc96dc4f24dd3296c02aa37087.zip
net-misc/FORT-validator: add 1.6.1
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.1.ebuild71
-rw-r--r--net-misc/FORT-validator/Manifest1
2 files changed, 72 insertions, 0 deletions
diff --git a/net-misc/FORT-validator/FORT-validator-1.6.1.ebuild b/net-misc/FORT-validator/FORT-validator-1.6.1.ebuild
new file mode 100644
index 000000000..5370813c5
--- /dev/null
+++ b/net-misc/FORT-validator/FORT-validator-1.6.1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+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
+ net-misc/curl
+"
+RDEPEND="
+ ${DEPEND}
+ net-misc/rsync
+"
+
+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 a81ee821f..c2e9fffd4 100644
--- a/net-misc/FORT-validator/Manifest
+++ b/net-misc/FORT-validator/Manifest
@@ -1,2 +1,3 @@
DIST fort-1.5.3.tar.gz 564257 BLAKE2B f0a6c9899c968f6697c79c0f541275874bc7aa23d6e42113d4be23b6338eb3007557a0260e601575719b90b8e87c4483bb13a40a6ac0724e17cf8157ce40d6ba SHA512 1b97bec1b031cd717d4012b0faec36785ba5c8e06ca46b4a017a08c3f2a038d2224c740a6b84f1c853c996c203af9ac975506d5c0e379a7cab82554318136a99
DIST fort-1.5.4.tar.gz 563138 BLAKE2B bd2a680a41b678bbf49d762fdd1f0f20e2c8bbf3fa80cb57c996d39ad39118ead3ebed7737bdef7478effbb6fa6e7fb39cd3c945a495f613a010dd79bea4f5d6 SHA512 44ec8dd28ab087f1d78f999c53b5dee8f13a6fc9bdf590d3261d640488b118e14970d88c5c5851e602a8119704378088230b8137978ef3caf6bab909af36408e
+DIST fort-1.6.1.tar.gz 547724 BLAKE2B 362299bf0a190b9d8cf6f658f2830435ceb78c4bc181e6735e2291f2d766018e9402cc596c20ef4b98aca43ac1c8edfee8369f237f0b9c1e657cf31ae2d023b0 SHA512 84ad18e730fca7ac67c028dc5b05a5b5d175eaa4eb2edade238ae16064c2f83865e263e767d37938c975578236edd8cba0b8604099a9e3ccef13250d2feb46dd