From fa6ed64b7f20a55deb2fec41fe41113ed9371618 Mon Sep 17 00:00:00 2001 From: alarig Date: Wed, 11 Mar 2020 09:49:04 +0100 Subject: [PATCH] net-misc/FORT-validator: systemd unit, because needed to MR on github --- net-misc/FORT-validator/FORT-validator-1.2.0.ebuild | 4 +++- net-misc/FORT-validator/files/fort.service | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/net-misc/FORT-validator/FORT-validator-1.2.0.ebuild b/net-misc/FORT-validator/FORT-validator-1.2.0.ebuild index 33033f5..82f564d 100644 --- a/net-misc/FORT-validator/FORT-validator-1.2.0.ebuild +++ b/net-misc/FORT-validator/FORT-validator-1.2.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit autotools fcaps +inherit autotools fcaps systemd DESCRIPTION="FORT validator is an open source RPKI validator." HOMEPAGE="https://fortproject.net/validator?2" @@ -54,6 +54,8 @@ src_install() { exeinto "/usr/libexec/${MY_PN}" doexe fort_setup.sh + + systemd_dounit "${FILESDIR}/${PN}.service" } pkg_postinst() { diff --git a/net-misc/FORT-validator/files/fort.service b/net-misc/FORT-validator/files/fort.service index 4c13aa2..4f24f8d 100644 --- a/net-misc/FORT-validator/files/fort.service +++ b/net-misc/FORT-validator/files/fort.service @@ -16,6 +16,7 @@ PrivateTmp=yes ProtectKernelTunables=yes ProtectControlGroups=yes ProtectKernelModules=yes +CacheDirectory=fort ReadWritePaths=/var/lib/fort/ ConfigurationDirectory=fort ConfigurationDirectory=tals