net-misc/FORT-validator/files: drop unused files from FILESDIR

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
Lucio Sauer
2024-06-03 03:13:53 +02:00
parent 5d8e3eb901
commit caa82c8f37
4 changed files with 0 additions and 105 deletions

View File

@@ -1,29 +0,0 @@
diff --git a/test/http_test.c b/test/http_test.c
index 765b722..c904440 100644
--- a/test/http_test.c
+++ b/test/http_test.c
@@ -57,23 +57,7 @@ local_download(char const *url, long *response_code, struct response *resp)
START_TEST(http_fetch_normal)
{
- struct response resp;
- long response_code;
- char const *url = "https://rrdp.ripe.net/notification.xml";
-
- init_response(&resp);
- response_code = 0;
-
- ck_assert_int_eq(http_init(), 0);
- ck_assert_int_eq(local_download(url, &response_code, &resp), 0);
- ck_assert_int_gt(resp.size, 0);
-
- http_cleanup();
- free(resp.content);
- if (response_code == 0)
- ck_abort_msg("NO response code received");
- else if (response_code >= HTTP_BAD_REQUEST)
- ck_abort_msg("Received response code %ld", response_code);
+
}
END_TEST

View File

@@ -1,15 +0,0 @@
# /etc/init.d/fort
# Options to pass to the fort process
# See man fort for options
# If you want to use commands arguments instead of the configuration file and
# not the default TAL directory, please remove the comment for FORT_BASEDIR as
# well
#FORT_BASEDIR="/var/lib/fort/"
#FORT_OPTS="--tal /usr/share/fort/tal/ \
# --local-repository ${FORT_BASEDIR}
# --log.output syslog
# --server.address ::"
FORT_OPTS="--configuration-file /etc/fort/config.json"

View File

@@ -1,26 +0,0 @@
#!/sbin/openrc-run
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="fort validator daemon"
description="FORT validator is an open source RPKI validator."
command=/usr/bin/fort
command_args="${FORT_OPTS}"
command_user="fort"
pidfile="/run/${RC_SVCNAME}.pid"
command_background=true
depend() {
need net
}
start_pre() {
if [ -z "${FORT_BASEDIR}" ]; then
FORT_BASEDIR=$(awk -F '"' '/local-repository/ { print $4 }' \
/etc/fort/config.json)
FORT_BASEDIR="${FORT_BASEDIR:-/var/cache/fort/repository/}"
fi
checkpath -d -m 0755 -o fort:fort "$(dirname "${FORT_BASEDIR}")"
checkpath -d -m 0755 -o fort:fort "${FORT_BASEDIR}"
}

View File

@@ -1,35 +0,0 @@
[Unit]
Description=FORT RPKI validator
Documentation=man:fort(8)
Documentation=https://nicmx.github.io/FORT-validator/
[Service]
ExecStart=/usr/bin/fort --configuration-file /etc/fort/config.json
Type=simple
User=fort
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
ProtectSystem=strict
ProtectHome=yes
PrivateDevices=yes
PrivateTmp=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
ProtectKernelModules=yes
CacheDirectory=fort
ReadWritePaths=/var/lib/fort/
ConfigurationDirectory=fort
ConfigurationDirectory=tals
StateDirectory=fort
NoNewPrivileges=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=yes
RestrictRealtime=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
SystemCallArchitectures=native
SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service
[Install]
WantedBy=multi-user.target