net-dns/knot: fix deletion path for /var/run, indent

Package creates /var/run. The deletion path must be ${ED} instead of ${D}.
Remove recursively /var/run

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/44220
Closes: https://github.com/gentoo/gentoo/pull/44220
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT
2025-10-17 14:48:44 +02:00
committed by Sam James
parent da5e4d2f21
commit ffb46bb3f0
+2 -2
View File
@@ -66,7 +66,7 @@ RDEPEND="
geoip? ( dev-libs/libmaxminddb:= )
redis? ( >=dev-libs/hiredis-1.1.0:= )
systemd? ( sys-apps/systemd:= )
)
)
prometheus? (
dev-python/prometheus-client[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
@@ -207,7 +207,7 @@ src_install() {
default
if use daemon; then
rmdir "${D}/var/run/${PN}" "${D}/var/run/" || die
rm -r "${ED}"/var/run/ || die
newinitd "${FILESDIR}"/knot-3.init knot
newconfd "${FILESDIR}"/knot.confd knot