@@ -13,6 +13,12 @@ sbin_PROGRAMS = cifs.upcall
cifs_upcall_SOURCES = cifs.upcall.c data_blob.c asn1.c spnego.c util.c
cifs_upcall_LDADD = -ltalloc -lkeyutils $(KRB5_LDADD)
man_MANS += cifs.upcall.8
+
+cifs.upcall.8: cifs.upcall.8.in
+ sed 's,\@sbindir\@,$(sbindir),' < $(srcdir)/cifs.upcall.8.in > cifs.upcall.8
+
+clean-local:
+ rm -f cifs.upcall.8
endif
if CONFIG_CIFSCREDS
similarity index 97%
rename from cifs.upcall.8
rename to cifs.upcall.8.in
@@ -78,8 +78,8 @@ To make this program useful for CIFS, you\'ll need to set up entries for them in
.nf
#OPERATION TYPE D C PROGRAM ARG1 ARG2\&.\&.\&.
#========= ============= = = ================================
-create cifs\&.spnego * * /usr/local/sbin/cifs\&.upcall %k
-create dns_resolver * * /usr/local/sbin/cifs\&.upcall %k
+create cifs\&.spnego * * @sbindir@/cifs\&.upcall %k
+create dns_resolver * * @sbindir@/cifs\&.upcall %k
.fi
.if n \{\
.RE
@@ -24,6 +24,7 @@ AC_ARG_ENABLE(cifscreds,
# Checks for programs.
AC_PROG_CC
+AC_PROG_SED
AC_GNU_SOURCE
# Checks for header files.