3f47a21
Change the absolute paths included in the man pages so that the correct
3f47a21
values can be dropped in by config.status.  After applying this patch,
3f47a21
these files should be renamed to their ".in" counterparts, and then the
3f47a21
configure script should be rebuilt.
3f47a21
    appl/bsd/klogind.M
3f47a21
    appl/bsd/kshd.M
3f47a21
    appl/bsd/login.M
3f47a21
    appl/bsd/rcp.M
3f47a21
    appl/bsd/rlogin.M
3f47a21
    appl/bsd/rsh.M
3f47a21
    appl/bsd/v4rcp.M
3f47a21
    appl/gssftp/ftpd/ftpd.M
3f47a21
    appl/gssftp/ftp/ftp.M
3f47a21
    appl/sample/sclient/sclient.M
3f47a21
    appl/sample/sserver/sserver.M
3f47a21
    appl/telnet/telnetd/telnetd.8
3f47a21
    appl/telnet/telnet/telnet.1
3f47a21
    clients/kcpytkt/kcpytkt.M
3f47a21
    clients/kdeltkt/kdeltkt.M
3f47a21
    clients/kdestroy/kdestroy.M
3f47a21
    clients/kinit/kinit.M
3f47a21
    clients/klist/klist.M
3f47a21
    clients/kpasswd/kpasswd.M
3f47a21
    clients/ksu/ksu.M
3f47a21
    clients/kvno/kvno.M
3f47a21
    config-files/kdc.conf.M
3f47a21
    config-files/krb5.conf.M
3f47a21
    gen-manpages/k5login.M
3f47a21
    gen-manpages/kerberos.M
3f47a21
    kadmin/cli/k5srvutil.M
3f47a21
    kadmin/cli/kadmin.local.M
3f47a21
    kadmin/cli/kadmin.M
3f47a21
    kadmin/dbutil/kdb5_util.M
3f47a21
    kadmin/ktutil/ktutil.M
3f47a21
    kadmin/passwd/kpasswd.M
3f47a21
    kadmin/server/kadmind.M
3f47a21
    kdc/fakeka.M
3f47a21
    kdc/krb5kdc.M
3f47a21
    krb524/k524init.M
3f47a21
    krb524/krb524d.M
3f47a21
    krb5-config.M
3f47a21
    plugins/kdb/ldap/ldap_util/kdb5_ldap_util.M
3f47a21
    slave/kpropd.M
3f47a21
    slave/kprop.M
3f47a21
    tests/create/kdb5_mkdums.M
3f47a21
    util/et/com_err.3
3f47a21
    util/et/compile_et.1
3f47a21
    util/profile/profile.5
3f47a21
    util/send-pr/send-pr.1
3f47a21
Index: configure.in
3f47a21
===================================================================
3f47a21
--- configure.in	(revision 19589)
3f47a21
+++ configure.in	(working copy)
3f47a21
@@ -986,6 +986,73 @@
3f47a21
 AC_CONFIG_SUBDIRS(appl/libpty appl/bsd appl/gssftp appl/telnet)
3f47a21
 
3f47a21
 AC_CONFIG_FILES(krb5-config, [chmod +x krb5-config])
3f47a21
+
3f47a21
+mansysconfdir=$sysconfdir
3f47a21
+mansysconfdir=`eval echo $mansysconfdir | sed -e "s,NONE,$prefix,g"`
3f47a21
+mansysconfdir=`eval echo $mansysconfdir | sed -e "s,NONE,$ac_default_prefix,g"`
3f47a21
+mansbindir=$sbindir
3f47a21
+mansbindir=`eval echo $mansbindir | sed -e "s,NONE,$exec_prefix,g"`
3f47a21
+mansbindir=`eval echo $mansbindir | sed -e "s,NONE,$prefix,g"`
3f47a21
+mansbindir=`eval echo $mansbindir | sed -e "s,NONE,$ac_default_prefix,g"`
3f47a21
+manlocalstatedir=$localstatedir
3f47a21
+manlocalstatedir=`eval echo $manlocalstatedir | sed -e "s,NONE,$prefix,g"`
3f47a21
+manlocalstatedir=`eval echo $manlocalstatedir | sed -e "s,NONE,$ac_default_prefix,g"`
3f47a21
+manlibexecdir=$libexecdir
3f47a21
+manlibexecdir=`eval echo $manlibexecdir | sed -e "s,NONE,$exec_prefix,g"`
3f47a21
+manlibexecdir=`eval echo $manlibexecdir | sed -e "s,NONE,$prefix,g"`
3f47a21
+manlibexecdir=`eval echo $manlibexecdir | sed -e "s,NONE,$ac_default_prefix,g"`
3f47a21
+AC_SUBST(mansysconfdir)
3f47a21
+AC_SUBST(mansbindir)
3f47a21
+AC_SUBST(manlocalstatedir)
3f47a21
+AC_SUBST(manlibexecdir)
3f47a21
+AC_OUTPUT([
3f47a21
+	appl/bsd/klogind.M
3f47a21
+	appl/bsd/kshd.M
3f47a21
+	appl/bsd/login.M
3f47a21
+	appl/bsd/rcp.M
3f47a21
+	appl/bsd/rlogin.M
3f47a21
+	appl/bsd/rsh.M
3f47a21
+	appl/bsd/v4rcp.M
3f47a21
+	appl/gssftp/ftpd/ftpd.M
3f47a21
+	appl/gssftp/ftp/ftp.M
3f47a21
+	appl/sample/sclient/sclient.M
3f47a21
+	appl/sample/sserver/sserver.M
3f47a21
+	appl/telnet/telnetd/telnetd.8
3f47a21
+	appl/telnet/telnet/telnet.1
3f47a21
+	clients/kcpytkt/kcpytkt.M
3f47a21
+	clients/kdeltkt/kdeltkt.M
3f47a21
+	clients/kdestroy/kdestroy.M
3f47a21
+	clients/kinit/kinit.M
3f47a21
+	clients/klist/klist.M
3f47a21
+	clients/kpasswd/kpasswd.M
3f47a21
+	clients/ksu/ksu.M
3f47a21
+	clients/kvno/kvno.M
3f47a21
+	config-files/kdc.conf.M
3f47a21
+	config-files/krb5.conf.M
3f47a21
+	gen-manpages/k5login.M
3f47a21
+	gen-manpages/kerberos.M
3f47a21
+	kadmin/cli/k5srvutil.M
3f47a21
+	kadmin/cli/kadmin.local.M
3f47a21
+	kadmin/cli/kadmin.M
3f47a21
+	kadmin/dbutil/kdb5_util.M
3f47a21
+	kadmin/ktutil/ktutil.M
3f47a21
+	kadmin/passwd/kpasswd.M
3f47a21
+	kadmin/server/kadmind.M
3f47a21
+	kdc/fakeka.M
3f47a21
+	kdc/krb5kdc.M
3f47a21
+	krb524/k524init.M
3f47a21
+	krb524/krb524d.M
3f47a21
+	krb5-config.M
3f47a21
+	plugins/kdb/ldap/ldap_util/kdb5_ldap_util.M
3f47a21
+	slave/kpropd.M
3f47a21
+	slave/kprop.M
3f47a21
+	tests/create/kdb5_mkdums.M
3f47a21
+	util/et/com_err.3
3f47a21
+	util/et/compile_et.1
3f47a21
+	util/profile/profile.5
3f47a21
+	util/send-pr/send-pr.1
3f47a21
+])
3f47a21
+
3f47a21
 V5_AC_OUTPUT_MAKEFILE(.
3f47a21
 
3f47a21
 	util util/support util/profile util/send-pr
3f47a21
Index: appl/sample/sserver/sserver.M
3f47a21
===================================================================
3f47a21
--- appl/sample/sserver/sserver.M	(revision 19589)
3f47a21
+++ appl/sample/sserver/sserver.M	(working copy)
3f47a21
@@ -59,7 +59,7 @@
3f47a21
 using a line in
3f47a21
 /etc/inetd.conf that looks like this:
3f47a21
 .PP
3f47a21
-sample  stream  tcp     nowait  root /usr/local/sbin/sserver	sserver
3f47a21
+sample  stream  tcp     nowait  root @mansbindir@/sserver	sserver
3f47a21
 .PP
3f47a21
 Since \fBsample\fP is normally not a port defined in /etc/services, you will
3f47a21
 usually have to add a line to /etc/services which looks like this:
3f47a21
Index: appl/bsd/klogind.M
3f47a21
===================================================================
3f47a21
--- appl/bsd/klogind.M	(revision 19589)
3f47a21
+++ appl/bsd/klogind.M	(working copy)
3f47a21
@@ -27,7 +27,7 @@
3f47a21
 the port indicated in /etc/inetd.conf.  A typical /etc/inetd.conf
3f47a21
 configuration line for \fIklogind\fP might be:
3f47a21
 
3f47a21
-klogin stream tcp nowait root /usr/cygnus/sbin/klogind klogind -e5c
3f47a21
+klogin stream tcp nowait root @mansbindir@/klogind klogind -e5c
3f47a21
 
3f47a21
 When a service request is received, the following protocol is initiated:
3f47a21
 
3f47a21
Index: appl/bsd/kshd.M
3f47a21
===================================================================
3f47a21
--- appl/bsd/kshd.M	(revision 19589)
3f47a21
+++ appl/bsd/kshd.M	(working copy)
3f47a21
@@ -8,7 +8,7 @@
3f47a21
 .SH NAME
3f47a21
 kshd \- kerberized remote shell server
3f47a21
 .SH SYNOPSIS
3f47a21
-.B /usr/local/sbin/kshd 
3f47a21
+.B @mansbindir@/kshd 
3f47a21
 [
3f47a21
 .B \-kr45ec
3f47a21
 ]
3f47a21
@@ -30,7 +30,7 @@
3f47a21
 on the port indicated in /etc/inetd.conf.  A typical /etc/inetd.conf
3f47a21
 configuration line for \fIkrshd\fP might be:
3f47a21
 
3f47a21
-kshell	stream	tcp	nowait	root	/usr/local/sbin/kshd	kshd -5c
3f47a21
+kshell	stream	tcp	nowait	root	@mansbindir@/kshd	kshd -5c
3f47a21
 
3f47a21
 When a service request is received, the following protocol is initiated:
3f47a21
 
3f47a21
Index: appl/telnet/telnetd/telnetd.8
3f47a21
===================================================================
3f47a21
--- appl/telnet/telnetd/telnetd.8	(revision 19589)
3f47a21
+++ appl/telnet/telnetd/telnetd.8	(working copy)
3f47a21
@@ -37,7 +37,7 @@
3f47a21
 .SM DARPA TELNET
3f47a21
 protocol server
3f47a21
 .SH SYNOPSIS
3f47a21
-.B /usr/libexec/telnetd
3f47a21
+.B @manlibexecdir@/telnetd
3f47a21
 [\fB\-a\fP \fIauthmode\fP] [\fB\-B\fP] [\fB\-D\fP] [\fIdebugmode\fP]
3f47a21
 [\fB\-e\fP] [\fB\-h\fP] [\fB\-I\fP\fIinitid\fP] [\fB\-l\fP]
3f47a21
 [\fB\-k\fP] [\fB\-n\fP] [\fB\-r\fP\fIlowpty-highpty\fP] [\fB\-s\fP]
3f47a21
Index: kadmin/cli/kadmin.M
3f47a21
===================================================================
3f47a21
--- kadmin/cli/kadmin.M	(revision 19589)
3f47a21
+++ kadmin/cli/kadmin.M	(working copy)
3f47a21
@@ -826,9 +826,9 @@
3f47a21
 .RS
3f47a21
 .TP
3f47a21
 EXAMPLE:
3f47a21
-kadmin: ktremove -k /usr/local/var/krb5kdc/kadmind.keytab kadmin/admin
3f47a21
+kadmin: ktremove -k @manlocalstatedir@/krb5kdc/kadmind.keytab kadmin/admin
3f47a21
 Entry for principal kadmin/admin with kvno 3 removed
3f47a21
-	from keytab WRFILE:/usr/local/var/krb5kdc/kadmind.keytab.
3f47a21
+	from keytab WRFILE:@manlocalstatedir@/krb5kdc/kadmind.keytab.
3f47a21
 kadmin:
3f47a21
 .RE
3f47a21
 .fi
3f47a21
@@ -870,7 +870,7 @@
3f47a21
 .SH HISTORY
3f47a21
 The
3f47a21
 .B kadmin
3f47a21
-prorgam was originally written by Tom Yu at MIT, as an interface to the
3f47a21
+program was originally written by Tom Yu at MIT, as an interface to the
3f47a21
 OpenVision Kerberos administration program.
3f47a21
 .SH SEE ALSO
3f47a21
 .IR kerberos (1),
3f47a21
Index: config-files/kdc.conf.M
3f47a21
===================================================================
3f47a21
--- config-files/kdc.conf.M	(revision 19589)
3f47a21
+++ config-files/kdc.conf.M	(working copy)
3f47a21
@@ -82,14 +82,14 @@
3f47a21
 .B string
3f47a21
 specifies the location of the access control list (acl) file that
3f47a21
 kadmin uses to determine which principals are allowed which permissions
3f47a21
-on the database. The default value is /usr/local/var/krb5kdc/kadm5.acl.
3f47a21
+on the database. The default value is @manlocalstatedir@/krb5kdc/kadm5.acl.
3f47a21
 
3f47a21
 .IP admin_keytab
3f47a21
 This
3f47a21
 .B string
3f47a21
 Specifies the location of the keytab file that kadmin uses to
3f47a21
 authenticate to the database.  The default value is
3f47a21
-/usr/local/var/krb5kdc/kadm5.keytab.
3f47a21
+@manlocalstatedir@/krb5kdc/kadm5.keytab.
3f47a21
 
3f47a21
 .IP database_name
3f47a21
 This
3f47a21
@@ -239,7 +239,7 @@
3f47a21
 realm names and the [capaths] section of its krb5.conf file
3f47a21
 
3f47a21
 .SH FILES 
3f47a21
-/usr/local/var/krb5kdc/kdc.conf
3f47a21
+@manlocalstatedir@/krb5kdc/kdc.conf
3f47a21
 
3f47a21
 .SH SEE ALSO
3f47a21
 krb5.conf(5), krb5kdc(8)
3f47a21
Index: slave/kprop.M
3f47a21
===================================================================
3f47a21
--- slave/kprop.M	(revision 19589)
3f47a21
+++ slave/kprop.M	(working copy)
3f47a21
@@ -39,7 +39,7 @@
3f47a21
 This is done by transmitting the dumped database file to the slave
3f47a21
 server over an encrypted, secure channel.  The dump file must be created
3f47a21
 by kdb5_util, and is normally KPROP_DEFAULT_FILE
3f47a21
-(/usr/local/var/krb5kdc/slave_datatrans).
3f47a21
+(@manlocalstatedir@/krb5kdc/slave_datatrans).
3f47a21
 .SH OPTIONS
3f47a21
 .TP
3f47a21
 \fB\-r\fP \fIrealm\fP
3f47a21
@@ -51,7 +51,7 @@
3f47a21
 \fB\-f\fP \fIfile\fP
3f47a21
 specifies the filename where the dumped principal database file is to be
3f47a21
 found; by default the dumped database file is KPROP_DEFAULT_FILE
3f47a21
-(normally /usr/local/var/krb5kdc/slave_datatrans).
3f47a21
+(normally @manlocalstatedir@/krb5kdc/slave_datatrans).
3f47a21
 .TP
3f47a21
 \fB\-P\fP \fIport\fP
3f47a21
 specifies the port to use to contact the
3f47a21
Index: slave/kpropd.M
3f47a21
===================================================================
3f47a21
--- slave/kpropd.M	(revision 19589)
3f47a21
+++ slave/kpropd.M	(working copy)
3f47a21
@@ -69,7 +69,7 @@
3f47a21
 This is done by adding a line to the inetd.conf file which looks like
3f47a21
 this:
3f47a21
 
3f47a21
-kprop	stream	tcp	nowait	root	/usr/local/sbin/kpropd	kpropd
3f47a21
+kprop	stream	tcp	nowait	root	@mansbindir@/kpropd	kpropd
3f47a21
 
3f47a21
 However, kpropd can also run as a standalone deamon, if the
3f47a21
 .B \-S
3f47a21
@@ -87,13 +87,13 @@
3f47a21
 \fB\-f\fP \fIfile\fP
3f47a21
 specifies the filename where the dumped principal database file is to be
3f47a21
 stored; by default the dumped database file is KPROPD_DEFAULT_FILE
3f47a21
-(normally /usr/local/var/krb5kdc/from_master).
3f47a21
+(normally @manlocalstatedir@/krb5kdc/from_master).
3f47a21
 .TP
3f47a21
 .B \-p
3f47a21
 allows the user to specify the pathname to the
3f47a21
 .IR kdb5_util (8)
3f47a21
 program; by default the pathname used is KPROPD_DEFAULT_KDB5_UTIL
3f47a21
-(normally /usr/local/sbin/kdb5_util).
3f47a21
+(normally @mansbindir@/kdb5_util).
3f47a21
 .TP
3f47a21
 .B \-S
3f47a21
 turn on standalone mode.  Normally, kpropd is invoked out of
3f47a21
@@ -124,14 +124,14 @@
3f47a21
 allows the user to specify the path to the
3f47a21
 .KR kpropd.acl
3f47a21
 file; by default the path used is KPROPD_ACL_FILE
3f47a21
-(normally /usr/local/var/krb5kdc/kpropd.acl).
3f47a21
+(normally @manlocalstatedir@/krb5kdc/kpropd.acl).
3f47a21
 .SH FILES
3f47a21
 .TP "\w'kpropd.acl\ \ 'u"
3f47a21
 kpropd.acl
3f47a21
 Access file for
3f47a21
 .BR kpropd ;
3f47a21
 the default location is KPROPD_ACL_FILE (normally
3f47a21
-/usr/local/var/krb5kdc/kpropd.acl).
3f47a21
+@manlocalstatedir@/krb5kdc/kpropd.acl).
3f47a21
 Each entry is a line containing the principal of a host from which the
3f47a21
 local machine will allow Kerberos database propagation via kprop.
3f47a21
 .SH SEE ALSO