From 00197ff2dc9217b929d23d215e2d57396c301f1f11432070ed0f0c85c04e9db5 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 16 Apr 2021 13:57:06 +0000 Subject: [PATCH] Accepting request 883022 from home:Smar:branches:network:dhcp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By default Kea stores memfile lease files in /var/lib/kea. This ensures that this directory exists. I noticed that this directory may get implicitly created by %pre script if kea user doesn’t already exist. If it *does* exist, that did not get created. This change ensures that that directory will exist. Also now it is known that this directory belongs to kea, instead of just having random directory around. OBS-URL: https://build.opensuse.org/request/show/883022 OBS-URL: https://build.opensuse.org/package/show/network:dhcp/kea?expand=0&rev=26 --- kea.changes | 6 ++++++ kea.spec | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/kea.changes b/kea.changes index 10eccbb..09a5f37 100644 --- a/kea.changes +++ b/kea.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 5 10:02:22 UTC 2021 - Samu Voutilainen + +- Own directory /var/lib/kea, as that is used as default for + memfile lease store. + ------------------------------------------------------------------- Tue Nov 10 08:04:38 UTC 2020 - Jan Engelhardt diff --git a/kea.spec b/kea.spec index 093eb3a..3c9929a 100644 --- a/kea.spec +++ b/kea.spec @@ -1,7 +1,7 @@ # # spec file for package kea # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -445,6 +445,7 @@ systemd-tmpfiles --create kea.conf || : %_sbindir/perfdhcp %_datadir/kea/ %_unitdir/*.service +%dir %_localstatedir/lib/kea %_prefix/lib/tmpfiles.d/ %attr(0775,keadhcp,keadhcp) %_localstatedir/log/kea/