commit:     2e5c6a7c3db8570caaa4af14dd2837ab1cdd7576
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Sun Oct 12 06:34:56 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 18 13:17:45 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e5c6a7c

net-misc/kea: fix pidfile path

pidfile path is hardcoded from the config-file' name
remove the variable KEA_PIDFILE and fix the path

even if custom KEA_PIDFILE can fix it, do a revbump
to avoid wasting time debugging

Closes: https://bugs.gentoo.org/963875
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/44142
Closes: https://github.com/gentoo/gentoo/pull/44142
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/kea/files/kea-confd-r3                        | 1 -
 net-misc/kea/files/kea-initd-r3                        | 3 +--
 net-misc/kea/{kea-3.0.1.ebuild => kea-3.0.1-r1.ebuild} | 0
 3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/net-misc/kea/files/kea-confd-r3 b/net-misc/kea/files/kea-confd-r3
index a8844bae730b..91919ede7f58 100644
--- a/net-misc/kea/files/kea-confd-r3
+++ b/net-misc/kea/files/kea-confd-r3
@@ -5,4 +5,3 @@ KEA_SVC="@KEA_SVC@"
 #KEA_USER=dhcp
 #KEA_GROUP=dhcp
 #KEA_CONFIG=/etc/kea/kea-@[email protected]
-#KEA_PIDFILE=/run/kea/kea-@[email protected]@[email protected]

diff --git a/net-misc/kea/files/kea-initd-r3 b/net-misc/kea/files/kea-initd-r3
index d499c6c193d9..f4d131914d5b 100644
--- a/net-misc/kea/files/kea-initd-r3
+++ b/net-misc/kea/files/kea-initd-r3
@@ -5,13 +5,12 @@
 : ${KEA_USER:=dhcp}
 : ${KEA_GROUP:=dhcp}
 : ${KEA_CONFIG:=/etc/kea/${RC_SVCNAME}.conf}
-: ${KEA_PIDFILE:=/run/kea/${RC_SVCNAME}.kea-${KEA_SVC}.pid}
 
 description="kea ${KEA_SVC} services"
 command="/usr/sbin/kea-${KEA_SVC}"
 command_args="-c ${KEA_CONFIG}"
 command_user="${KEA_USER}:${KEA_GROUP}"
-pidfile="${KEA_PIDFILE}"
+pidfile="/run/kea/$(basename ${KEA_CONFIG%.*}).kea-${KEA_SVC}.pid"
 required_files="${KEA_CONFIG}"
 start_stop_daemon_args="--background"
 

diff --git a/net-misc/kea/kea-3.0.1.ebuild b/net-misc/kea/kea-3.0.1-r1.ebuild
similarity index 100%
rename from net-misc/kea/kea-3.0.1.ebuild
rename to net-misc/kea/kea-3.0.1-r1.ebuild

Reply via email to