net-misc/routinator: add 0.14.1

Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2025-01-22 18:00:32 +01:00
parent c159e9c64a
commit 6de31e4194
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC
4 changed files with 103 additions and 2 deletions

View file

@ -1,4 +1,4 @@
BDEPEND=|| ( dev-lang/rust-bin:1.83.0 dev-lang/rust:1.83.0 dev-lang/rust-bin:1.82.0 dev-lang/rust:1.82.0 dev-lang/rust-bin:1.81.0 dev-lang/rust:1.81.0 dev-lang/rust-bin:1.80.1 dev-lang/rust:1.80.1 dev-lang/rust-bin:1.79.0 dev-lang/rust:1.79.0 dev-lang/rust-bin:1.78.0 dev-lang/rust:1.78.0 dev-lang/rust-bin:1.77.1 dev-lang/rust:1.77.1 dev-lang/rust-bin:1.76.0 dev-lang/rust:1.76.0 dev-lang/rust-bin:1.75.0 dev-lang/rust:1.75.0 dev-lang/rust-bin:1.74.1 dev-lang/rust:1.74.1 dev-lang/rust-bin:1.71.1 dev-lang/rust:1.71.1 )
BDEPEND=|| ( dev-lang/rust-bin:1.84.0 dev-lang/rust:1.84.0 dev-lang/rust-bin:1.83.0 dev-lang/rust:1.83.0 dev-lang/rust-bin:1.82.0 dev-lang/rust:1.82.0 dev-lang/rust-bin:1.81.0 dev-lang/rust:1.81.0 dev-lang/rust-bin:1.80.1 dev-lang/rust:1.80.1 dev-lang/rust-bin:1.79.0 dev-lang/rust:1.79.0 dev-lang/rust-bin:1.78.0 dev-lang/rust:1.78.0 dev-lang/rust-bin:1.77.1 dev-lang/rust:1.77.1 dev-lang/rust-bin:1.76.0 dev-lang/rust:1.76.0 dev-lang/rust-bin:1.75.0 dev-lang/rust:1.75.0 dev-lang/rust-bin:1.74.1 dev-lang/rust:1.74.1 dev-lang/rust-bin:1.71.1 dev-lang/rust:1.71.1 )
DEFINED_PHASES=compile configure install postinst setup test unpack
DEPEND=acct-group/routinator acct-user/routinator
DESCRIPTION=An RPKI relying party software
@ -11,5 +11,5 @@ LICENSE=BSD
RDEPEND=acct-group/routinator acct-user/routinator
SLOT=0
SRC_URI=https://github.com/NLnetLabs/routinator/archive/refs/tags/v0.14.0.tar.gz -> routinator-0.14.0.tar.gz https://herbizarre.swordarmor.fr/garbage/routinator-0.14.0-vendor.tar.xz
_eclasses_=toolchain-funcs fa554cc3cff825d21dfe3f24841e29cf multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe multiprocessing 1e32df7deee68372153dca65f4a7c21f rust 55e231f09fddb09cbbaa254cf234368b rust-toolchain 3f822985d9297438ed2443aa1fbdf33e cargo b5f350ebe96460cff090d0f2ae7e698a
_eclasses_=toolchain-funcs 14648d8795f7779e11e1bc7cf08b7536 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe multiprocessing 1e32df7deee68372153dca65f4a7c21f rust 44c8464f6266787f32aab8b1f056a28b rust-toolchain 3f822985d9297438ed2443aa1fbdf33e cargo b5f350ebe96460cff090d0f2ae7e698a
_md5_=b6fcaba2e0666fe85ebe30777c3415ea

View file

@ -0,0 +1,15 @@
BDEPEND=|| ( dev-lang/rust-bin:1.84.0 dev-lang/rust:1.84.0 dev-lang/rust-bin:1.83.0 dev-lang/rust:1.83.0 dev-lang/rust-bin:1.82.0 dev-lang/rust:1.82.0 dev-lang/rust-bin:1.81.0 dev-lang/rust:1.81.0 dev-lang/rust-bin:1.80.1 dev-lang/rust:1.80.1 dev-lang/rust-bin:1.79.0 dev-lang/rust:1.79.0 dev-lang/rust-bin:1.78.0 dev-lang/rust:1.78.0 dev-lang/rust-bin:1.77.1 dev-lang/rust:1.77.1 dev-lang/rust-bin:1.76.0 dev-lang/rust:1.76.0 dev-lang/rust-bin:1.75.0 dev-lang/rust:1.75.0 dev-lang/rust-bin:1.74.1 dev-lang/rust:1.74.1 )
DEFINED_PHASES=compile configure install postinst setup test unpack
DEPEND=acct-group/routinator acct-user/routinator
DESCRIPTION=An RPKI relying party software
EAPI=8
HOMEPAGE=https://github.com/NLnetLabs/routinator
INHERIT=cargo
IUSE=rta debug
KEYWORDS=~amd64
LICENSE=BSD
RDEPEND=acct-group/routinator acct-user/routinator
SLOT=0
SRC_URI=https://github.com/NLnetLabs/routinator/archive/refs/tags/v0.14.1.tar.gz -> routinator-0.14.1.tar.gz https://herbizarre.swordarmor.fr/garbage/routinator-0.14.1-vendor.tar.xz
_eclasses_=toolchain-funcs 14648d8795f7779e11e1bc7cf08b7536 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic f14aba975c94ccaa9f357a27e3b17ffe multiprocessing 1e32df7deee68372153dca65f4a7c21f rust 44c8464f6266787f32aab8b1f056a28b rust-toolchain 3f822985d9297438ed2443aa1fbdf33e cargo b5f350ebe96460cff090d0f2ae7e698a
_md5_=f3c29c017626eb5f775198f7f1029d56

View file

@ -1,2 +1,4 @@
DIST routinator-0.14.0-vendor.tar.xz 24755432 BLAKE2B 4ed0cd63f173587f133daf0c9733cc9447992d6cd627a402fc0f47ba82d1979635ba3f3c7cf88c06cac79dff0c7bf32cea6ac9466bcc72900999fc89013affb7 SHA512 6028e01cf5c6a55298c6c2ab064ec4060da836d67cf9eeedaa415908ea71dc57810e2b63c58a5b0227ad50fe19bb529700042b62f39e3285804fda35464ba8cc
DIST routinator-0.14.0.tar.gz 5549551 BLAKE2B 142b25739258a6f993a7029888199c3f6ed84d410a345bb8d4d2069e19c8781e431922acb4cb95ef6f1a304810b2679bd1f54adabd36b3380ba3e558ce385905 SHA512 d1d9feb66052332dd0149ee841849c049686c4d7db0570568a34db4a98370294d2441674bc06f4ea57160be98f0cfec2d01cafb12cea7819fbb2d5d5d8b9bb8d
DIST routinator-0.14.1-vendor.tar.xz 23709216 BLAKE2B 2e2ac77c17c08a0adc7bdf7e6adf923536ed594d2c6a07fb80fa066ed4fea942a1a2b7554c09bc137109c4c2b8764f9953c6b550b2ba783386304182e77a89bf SHA512 5a2a793f8c3dbc6ce6f35e041dd254c954a71ee95854da2c2294ab15d85381b053a7d06148f6b73dc0a2e237343503bda75bc34d4fdd1fee35470859ea8adc40
DIST routinator-0.14.1.tar.gz 5550812 BLAKE2B df0ed0b16c6abbd93dbf9d3fc350c271647d9dba513856e91caa8e2f22add531a2fdc3dcd12fb274d46809f1e57c5fc344526440ded13a2fe3dd53708145ff9a SHA512 92db7d0c031a6a3ea2fae5d978caa3028a133e8dcb92e1cdc8b62e181c270df4d3a019d355c199b735589a9eafc837b9b6b43c2a2dd0a6a9d548fdda8e93075c

View file

@ -0,0 +1,84 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Auto-Generated by cargo-ebuild 0.2.0
EAPI=8
RUST_MIN_VER="1.74.0"
CRATES=" "
inherit cargo
MY_PV=${PV/_/-}
DESCRIPTION="An RPKI relying party software"
HOMEPAGE="https://github.com/NLnetLabs/routinator"
MY_GITHUB_AUTHOR="NLnetLabs"
SRC_URI="
https://github.com/${MY_GITHUB_AUTHOR}/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz
https://herbizarre.swordarmor.fr/garbage/${P}-vendor.tar.xz
"
S="${WORKDIR}/${PN}-${MY_PV}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="rta"
DEPEND="
acct-group/routinator
acct-user/routinator
"
RDEPEND="${DEPEND}"
src_unpack() {
default
cargo_gen_config
ln -s "${WORKDIR}/vendor/" "${WORKDIR}/${P}/vendor" || die
sed -i "${ECARGO_HOME}/config.toml" -e '/source.crates-io/d' || die
sed -i "${ECARGO_HOME}/config.toml" -e '/replace-with = "gentoo"/d' || die
sed -i "${ECARGO_HOME}/config.toml" -e '/local-registry = "\/nonexistent"/d' || die
cat "${WORKDIR}/vendor/vendor-config.toml" >> "${ECARGO_HOME}/config.toml" || die
}
src_configure() {
local myfeatures=(
$(usev rta)
)
cargo_src_configure
}
src_install() {
newinitd "${FILESDIR}/${PN}-initd" ${PN}
cargo_src_install
doman doc/routinator.1
insinto /etc
doins "${FILESDIR}/${PN}.conf"
}
pkg_postinst() {
einfo ""
einfo "ARIN TAL is disabled by default because the ARIN Relying Party"
einfo "Agreement must be accepted beforehead. Read"
einfo "https://www.arin.net/resources/manage/rpki/rpa.pdf and if you agree"
einfo "with it, run"
einfo ""
einfo " su -s /bin/sh -c '${EROOT}/usr/bin/routinator --base-dir=/var/lib/routinator init -f --accept-arin-rpa' routinator"
einfo ""
einfo "as root to enable it."
einfo "If you changed values in /etc/conf.d/routinator please update it"
einfo "accordinadly in the command line."
einfo ""
# https://github.com/NLnetLabs/routinator/pull/510
# https://github.com/NLnetLabs/routinator/pull/543
if [ "${PV}" = "0.9.0" ]; then
su -l routinator -s /bin/sh -c \
"${EROOT}/usr/bin/routinator --base-dir=/var/lib/routinator init"
fi
}