init and conf for routinator

This commit is contained in:
Alarig Le Lay 2019-12-31 18:21:19 +01:00
parent 95c9d1e92f
commit 7b1c815f57
4 changed files with 44 additions and 1 deletions

View file

@ -1,3 +1,5 @@
AUX routinator-confd 251 BLAKE2B d0615fac4e0f747469fd3eaf1287abd1490b67f270e75819d6c1b76754b223907c5c9f12571cec17e1007867f523d8622c0697508757d34d9b311b90ed8be30e SHA512 8c2c4883b9f365398f666b4c949291b68a15856fda0e42e6c362aab21c07bfe73c2ca971abe6415d4e0a0779038cfc1f95812d0bedb12c51459e63be972bd07f
AUX routinator-initd 712 BLAKE2B 4f67d2d470371563aae32fb7fdeecd56faf37f7cf0d3d40a2dfba37ce1621b0a28fa84936d4c72947495e34ba7eba270ccf67c2956acd12aff8fb8b11d23ca6f SHA512 d22973e02f3f1a86b8f1cec2001253b5e6c062e04790dd81470783c166511189721051ef7ebed65a130036c17dde80820f8cbcf112fc272ca990c0b3e7e19493
DIST adler32-1.0.4.crate 5105 BLAKE2B 344a5258e77328a24a545e32f9bc653fa25b7ea43803ed7861db261bce227aa1599520a42acea3de1f2acebb8fa9fad251e2688413b752eafe2401ca1a2ee34a SHA512 5990e1e277a1c3aae5adef5e4601b807a756a40e88578bb91f1c70d70babfa97fb3f2c1b963482ec8e18c16d5e722bf90fb42f9646c8dd840373f28965a2d123
DIST aho-corasick-0.7.6.crate 108953 BLAKE2B d713366d0783e1ffbe65408e4d38ef9f12276f61043c768265de5d47e446a378306096a70252c9a49a6e7d3b97a09f30405a3d8df6b40dc2dfeb7407ed574c95 SHA512 120aa28e72279f561d7f51657aa0800dd46504cd92f758f848284e5f3695be6f5e24056a66b0f2d971c527277e92ae938e2357ade37b5cbe1c93913a5dc308b1
DIST ansi_term-0.11.0.crate 17087 BLAKE2B 9bd35c045a01ce4c6c4a5db1b4f15e9412bb97426eec19d4421dffbec633de8d13452c13c1dc1b30998690b78d7ed38311aca700087f13a81f66bd1d5d7300c4 SHA512 a637466a380748f939b3af090b8c0333f35581925bc03f4dda9b3f95d338836403cf5487ae3af9ff68f8245a837f8ab061aabe57a126a6a2c20f2e972c77d1fa
@ -194,4 +196,4 @@ DIST winapi-i686-pc-windows-gnu-0.4.0.crate 2918815 BLAKE2B 4d357e4d30f955297217
DIST winapi-x86_64-pc-windows-gnu-0.4.0.crate 2947998 BLAKE2B 2ad1ea8b5fa07d544e910ccba043ae925269b76b26c9da356305b34b86741dd8b9aff0b9ffe3d562db4fcd7d7c46a11ce9e3168b782b1d89ae6881742b7ede82 SHA512 4a654af6a5d649dc87e00497245096b35a2894ae66f155cb62389902c3b93ddcc5cf7d0d8b9dd97b291d2d80bc686af2298e80abef6ac69883f4a54e79712513
DIST winreg-0.6.2.crate 19338 BLAKE2B d866995d54b69077efc1bb900235a4c00d9e69779cb365ad2fc97686a6c13de6a91d6204856ea35a18b86a7f32e8d4ac1ea2d2c096d7dd3e42f78400752cd3e2 SHA512 a2b6a7a0fcdb1f81dab62e1626089b6fd753a2233f9496505420ccb7997765c34293ce07b724b8179646345e0f6819eca88a6c167a03d8439a386fe53e184102
DIST ws2_32-sys-0.2.1.crate 4697 BLAKE2B 52a7a3f57bcd73156730ada4d78fe12a54a498c9064e0928e09de13a95bd9237f884538e5f9368b47a7ac3c425f0f798c26bad85f20bed4ea26c2fa16c779b97 SHA512 18356861fc595efe7d0180afb8ce7649da35a4f9ba456271d2068679ab258a861af32a2e016e241fbfbf5f6ef0eb33127b26eabfc11428af39506538faa4821f
EBUILD routinator-0.6.4.ebuild 3700 BLAKE2B 40fd50ffb854325a19b66e53afe91fa770f9f2c973d94506efab1c3f8289dbad9c948a2e219dd7dea589be5a7aeb3c93cefbfa715687fc0d10c2a839dffa1b37 SHA512 19e01680c4e671d0882044fdeb4301bc97b5f86e65feab3f1c7a914fc11143fecfc9fe5276ec2672c923208238b5ccc5bd4d2156548b3662c1d1b42c5a477b31
EBUILD routinator-0.6.4.ebuild 3803 BLAKE2B 9f066dff65c93e25fa275a33e623ba9e44031c924534a93ce6c26419ee59dd4eb7a8e58b7d707a31beaafc5d90d5ce642720ba3db0db304ef4980278fc51b6bd SHA512 448ef719ce054001d5c0e16d4ffbc38a689ef44b6b5c2d579dad6dff7e356ddf0d058e0bc25ffba405623d07bb7df3b04e7045fa7e483a2d18ca73d59c274211

View file

@ -0,0 +1,8 @@
# /etc/init.d/routinator
# Options to pass to the routinator process
# See routinator man for options
ROUTINATOR_BASEDIR="/var/lib/routinator"
ROUTINATOR_OPTS="--rtr=[::]:323 --pid-file=/run/routinator --user=routinator
--group=routinator --detach"

View file

@ -0,0 +1,28 @@
#!/sbin/openrc-run
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="routinator daemon"
description="An RPKI relying party software"
command=/usr/bin/routinator
command_args="${ROUTINATOR_OPTS}"
depend() {
need net
}
start_pre() {
checkpath -d -m 0750 -o routinator:routinator /var/lib/routinator
if [ ! -d "${ROUTINATOR_BASEDIR}/repository" ] || \
[ ! -d "${ROUTINATOR_BASEDIR}/tals" ]; then
${command} --base-dir=${ROUTINATOR_BASEDIR} init \
--decline-arin-rpa
fi
}
start() {
ebegin "Starting ${name}"
start-stop-daemon --start --exec ${command} -- --syslog \
--base-dir=${ROUTINATOR_BASEDIR} server ${command_args}
eend $?
}

View file

@ -222,3 +222,8 @@ pkg_setup() {
enewgroup routinator
enewuser routinator -1 /bin/sh /var/lib/routinator routinator
}
src_install() {
newinitd "${FILESDIR}/${PN}-initd" ${PN}
newconfd "${FILESDIR}/${PN}-confd" ${PN}
}