Skip to content

Commit 918fb6d

Browse files
author
Günther Deschner
committed
Add --with-gpstate-path=PATH configure switch.
Signed-off-by: Günther Deschner <[email protected]> Reviewed-by: Simo Sorce <[email protected]>
1 parent 50a7856 commit 918fb6d

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

proxy/Makefile.am

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ logpath = @logpath@
2727
pubconfpath = @pubconfpath@
2828
pkgconfigdir = $(libdir)/pkgconfig
2929

30-
gpstatedir = $(localstatedir)/lib/gssproxy
31-
gpclidir = $(gpstatedir)/clients
30+
gpstatedir = @gpstatedir@
31+
gpclidir = @gpstatedir@/clients
3232

3333
AM_CFLAGS =
3434
if WANT_AUX_INFO

proxy/conf_macros.m4

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,23 @@ AC_DEFUN([WITH_CC_PATH],
219219
AC_DEFINE_UNQUOTED(CCACHE_PATH, "$config_ccpath", [Where to store ccache files for gssproxy])
220220
])
221221

222+
AC_DEFUN([WITH_GPSTATE_PATH],
223+
[ AC_ARG_WITH([gpstate-path],
224+
[AC_HELP_STRING([--with-gpstate-path=PATH],
225+
[Where to create default socket for gssproxy [/var/lib/gssproxy]]
226+
)
227+
]
228+
)
229+
config_gpstatepath="\"VARDIR\"/lib/gssproxy"
230+
gpstatedir="${localstatedir}/lib/gssproxy"
231+
if test x"$with_gpstate_path" != x; then
232+
config_gpstatepath=$with_gpstate_path
233+
gpstatepath=$with_gpstate_path
234+
fi
235+
AC_SUBST(gpstatedir)
236+
AC_DEFINE_UNQUOTED(GPSTATE_PATH, "$config_gpstatepath", [Where to store ccache files for gssproxy])
237+
])
238+
222239
AC_DEFUN([WITH_GSSIDEBUG],
223240
[ AC_ARG_WITH([gssidebug],
224241
[AC_HELP_STRING([--with-gssidebug],

proxy/configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ WITH_MANPAGES
6666
WITH_XML_CATALOG
6767
WITH_SELINUX
6868
WITH_GSSIDEBUG
69+
WITH_GPSTATE_PATH
6970

7071
m4_include([external/pkg.m4])
7172
m4_include([external/libpopt.m4])

proxy/examples/gssproxy.conf.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
[service/nfs]
44
mechs = krb5
55
cred_store = keytab:/etc/krb5.keytab
6-
cred_store = ccache:FILE:@gpclidir@/krb5cc_%U
7-
cred_store = client_keytab:@gpclidir@/%U.keytab
6+
cred_store = ccache:FILE:@gpstatedir@/clients/krb5cc_%U
7+
cred_store = client_keytab:@gpstatedir@/clients/%U.keytab
88
trusted = yes
99
kernel_nfsd = yes
1010
euid = 0

0 commit comments

Comments
 (0)