commit:     7cb8559a91b2c1d8508b877e711ded939f0c0bef
Author:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 15 12:22:48 2022 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Sat Jan 15 12:32:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cb8559a

net-nds/gssproxy: create /var/lib/gssproxy/rcache

without that directory present krb nfs mounts fail with very confusing
and hard to debug messages.
systemd unit sets Environment=KRB5RCACHEDIR=/var/lib/gssproxy/rcache
but does not create it.
Let's do it in ebuild and openrc service.
Fedora's rpm spec also creates it mkdir -p %{buildroot}%{gpstatedir}/rcache
https://src.fedoraproject.org/rpms/gssproxy/blob/rawhide/f/gssproxy.spec

Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 net-nds/gssproxy/files/gssproxy                                      | 1 +
 net-nds/gssproxy/{gssproxy-0.8.4.ebuild => gssproxy-0.8.4-r1.ebuild} | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/net-nds/gssproxy/files/gssproxy b/net-nds/gssproxy/files/gssproxy
index 750e7623cdcc..34e4983b384f 100644
--- a/net-nds/gssproxy/files/gssproxy
+++ b/net-nds/gssproxy/files/gssproxy
@@ -12,4 +12,5 @@ depend() {
 
 start_pre() {
        checkpath -d -m 0755 /var/lib/gssproxy
+       checkpath -d -m 0755 /var/lib/gssproxy/rcache
 }

diff --git a/net-nds/gssproxy/gssproxy-0.8.4.ebuild 
b/net-nds/gssproxy/gssproxy-0.8.4-r1.ebuild
similarity index 97%
rename from net-nds/gssproxy/gssproxy-0.8.4.ebuild
rename to net-nds/gssproxy/gssproxy-0.8.4-r1.ebuild
index dd5999942c52..df211a14dbf6 100644
--- a/net-nds/gssproxy/gssproxy-0.8.4.ebuild
+++ b/net-nds/gssproxy/gssproxy-0.8.4-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -82,6 +82,7 @@ src_install() {
        newins examples/mech gssproxy.conf
 
        keepdir /var/lib/gssproxy
+       keepdir /var/lib/gssproxy/rcache
 
        # The build installs a bunch of empty dirs, so prune them.
        find "${ED}" -depth -type d -empty -delete || die

Reply via email to