diff options
author | Jeff Layton <jlayton@samba.org> | 2010-12-09 09:37:52 -0500 |
---|---|---|
committer | Jeff Layton <jlayton@samba.org> | 2010-12-09 09:37:52 -0500 |
commit | 68691e68937ab9dc7f2d570da7e38659f25d41c1 (patch) | |
tree | e93b2de6362bc840e28fa6d4da2c817ea764a7ad | |
parent | 0f588214bc07682b522ac14814b4d97a9b6455d4 (diff) | |
download | cifs-utils-68691e68937ab9dc7f2d570da7e38659f25d41c1.tar.gz cifs-utils-68691e68937ab9dc7f2d570da7e38659f25d41c1.tar.bz2 cifs-utils-68691e68937ab9dc7f2d570da7e38659f25d41c1.zip |
cifs-utils: rewrite hardcoded paths in manpages
Currently the manpages (particularly cifs.upcall.8) have hardcoded
paths in them that need to be manually adjusted. Replace those
paths with @sbindir@ and add a makefile target that will use sed
to replace those paths with the ones set by autoconf.
Signed-off-by: Jeff Layton <jlayton@samba.org>
-rw-r--r-- | Makefile.am | 6 | ||||
-rw-r--r-- | cifs.upcall.8.in (renamed from cifs.upcall.8) | 4 | ||||
-rw-r--r-- | configure.ac | 1 |
3 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 38a16fe..cbfa846 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/cifs.upcall.8 b/cifs.upcall.8.in index 3207f6f..bef1ee6 100644 --- a/cifs.upcall.8 +++ b/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 diff --git a/configure.ac b/configure.ac index a04596c..093b48d 100644 --- a/configure.ac +++ b/configure.ac @@ -24,6 +24,7 @@ AC_ARG_ENABLE(cifscreds, # Checks for programs. AC_PROG_CC +AC_PROG_SED AC_GNU_SOURCE # Checks for header files. |