net-analyzer/icinga2: switch to /run more completely
authorMatthew Thode <prometheanfire@gentoo.org>
Mon, 16 Dec 2019 17:37:06 +0000 (11:37 -0600)
committerMatthew Thode <prometheanfire@gentoo.org>
Mon, 16 Dec 2019 17:37:21 +0000 (11:37 -0600)
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
net-analyzer/icinga2/icinga2-9999.ebuild

index 31e997e9e6a5c2fd8d41fc2fb6ceac2a450fcadd..39558b4834ec38a7897d6dbc6657e350816ddcdf 100644 (file)
@@ -70,6 +70,7 @@ src_configure() {
                -DICINGA2_USER=icinga
                -DICINGA2_GROUP=icingacmd
                -DICINGA2_COMMAND_GROUP=icingacmd
+               -DICINGA2_RUNDIR=/run
                -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=yes
                -DUSE_SYSTEMD=$(usex systemd ON OFF)
                -DLOGROTATE_HAS_SU=ON
@@ -135,7 +136,7 @@ src_install() {
        keepdir /var/lib/icinga2/api/log
        keepdir /var/spool/icinga2/perfdata
 
-       rm -r "${D}/var/run" || die "failed to remove /var/run"
+       rm -r "${D}/run" || die "failed to remove /run"
        rm -r "${D}/var/cache" || die "failed to remove /var/cache"
 
        fowners root:icinga /etc/icinga2