Re: symlinks for pcnfsd and talkd executables

"Jeremy C. Reed" <[email protected]>
Newsgroups gmane.os.netbsd.devel.userlevel,gmane.os.netbsd.devel.general
Message-ID <[email protected]>
On Thu, 25 Sep 2008, Thor Lancelot Simon wrote:

> > We have manual pages for pcnfsd and talkd. They have alternative names 
> > too, but these are the first and official names for the manual pages.
> > 
> > Is the following okay to commit?
> 
> Please do not add new names for these executables in the filesystem.
> The manual pages are present under both names to help administrators
> familiar with the executables' old names on other systems to find them,
> so I do not think it is a good idea to remove the manual page links either.

Okay. The following patch fixes the header for the manual pages and also 
installs them so the first file installed matches the correct manual page 
name. (This helps me as my postscript book doesn't duplicate manual 
pages and I want to have the correct "name" represented in the correct 
alphabetical order.)

Index: usr.sbin/rpc.pcnfsd/Makefile
===================================================================
RCS file: /cvsroot/src/usr.sbin/rpc.pcnfsd/Makefile,v
retrieving revision 1.18
diff -u -r1.18 Makefile
--- usr.sbin/rpc.pcnfsd/Makefile	29 Aug 2008 00:02:25 -0000	1.18
+++ usr.sbin/rpc.pcnfsd/Makefile	25 Sep 2008 22:31:50 -0000
@@ -3,8 +3,9 @@
 .include <bsd.own.mk>
 
 PROG=	rpc.pcnfsd
-MAN=	pcnfsd.8
-MLINKS= pcnfsd.8 rpc.pcnfsd.8
+MAN=	rpc.pcnfsd.8
+BUILDSYMLINKS+=	pcnfsd.8 rpc.pcnfsd.8
+MLINKS= rpc.pcnfsd.8 pcnfsd.8
 CPPFLAGS += -DUSER_CACHE -DWTMP -I. -DSUPPORT_UTMP -DSUPPORT_UTMPX
 
 .if (${USE_YP} != "no")
Index: usr.sbin/rpc.pcnfsd/pcnfsd.8
===================================================================
RCS file: /cvsroot/src/usr.sbin/rpc.pcnfsd/pcnfsd.8,v
retrieving revision 1.7
diff -u -r1.7 pcnfsd.8
--- usr.sbin/rpc.pcnfsd/pcnfsd.8	19 Jan 2002 11:45:00 -0000	1.7
+++ usr.sbin/rpc.pcnfsd/pcnfsd.8	25 Sep 2008 22:31:50 -0000
@@ -1,6 +1,6 @@
 .\"	$NetBSD: pcnfsd.8,v 1.7 2002/01/19 11:45:00 wiz Exp $
 .\" @(#) @(#)pcnfsd.8c	1.1 9/3/91;
-.TH PCNFSD 8 "25 April 1991"
+.TH RPC.PCNFSD 8 "25 April 1991"
 .SH NAME
 pcnfsd, rpc.pcnfsd \- (PC)NFS authentication and print request server
 .SH SYNOPSIS
Index: libexec/talkd/Makefile
===================================================================
RCS file: /cvsroot/src/libexec/talkd/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- libexec/talkd/Makefile	24 Mar 2004 21:20:26 -0000	1.12
+++ libexec/talkd/Makefile	25 Sep 2008 22:31:50 -0000
@@ -5,8 +5,9 @@
 
 PROG=	ntalkd
 SRCS=	talkd.c announce.c process.c table.c print.c utmpentry.c
-MAN=	talkd.8
-MLINKS+=talkd.8 ntalkd.8
+MAN=	ntalkd.8
+BUILDSYMLINKS+= talkd.8 ntalkd.8
+MLINKS+=ntalkd.8 talkd.8
 DPADD+=${LIBUTIL}
 LDADD+=-lutil
 
Index: libexec/talkd/talkd.8
===================================================================
RCS file: /cvsroot/src/libexec/talkd/talkd.8,v
retrieving revision 1.9
diff -u -r1.9 talkd.8
--- libexec/talkd/talkd.8	24 Mar 2004 05:32:42 -0000	1.9
+++ libexec/talkd/talkd.8	25 Sep 2008 22:31:50 -0000
@@ -29,7 +29,7 @@
 .\"     @(#)talkd.8	8.2 (Berkeley) 12/11/93
 .\"
 .Dd March 23, 2004
-.Dt TALKD 8
+.Dt NTALKD 8
 .Os
 .Sh NAME
 .Nm ntalkd ,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.