From patchwork Thu Dec 9 14:37:20 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 394562 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB9EZk5J005656 for ; Thu, 9 Dec 2010 14:37:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754080Ab0LIOh0 (ORCPT ); Thu, 9 Dec 2010 09:37:26 -0500 Received: from mail-gx0-f180.google.com ([209.85.161.180]:64963 "EHLO mail-gx0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753800Ab0LIOh0 (ORCPT ); Thu, 9 Dec 2010 09:37:26 -0500 Received: by gxk19 with SMTP id 19so1435391gxk.11 for ; Thu, 09 Dec 2010 06:37:25 -0800 (PST) Received: by 10.90.104.16 with SMTP id b16mr12226151agc.110.1291905445204; Thu, 09 Dec 2010 06:37:25 -0800 (PST) Received: from salusa.poochiereds.net (cpe-071-070-153-003.nc.res.rr.com [71.70.153.3]) by mx.google.com with ESMTPS id b26sm2018297anb.33.2010.12.09.06.37.24 (version=SSLv3 cipher=RC4-MD5); Thu, 09 Dec 2010 06:37:24 -0800 (PST) From: Jeff Layton To: linux-cifs@vger.kernel.org Subject: [PATCH] cifs-utils: rewrite hardcoded paths in manpages Date: Thu, 9 Dec 2010 09:37:20 -0500 Message-Id: <1291905440-12866-1-git-send-email-jlayton@samba.org> X-Mailer: git-send-email 1.7.3.2 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 09 Dec 2010 14:37:27 +0000 (UTC) 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 similarity index 97% rename from cifs.upcall.8 rename to 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.