- Merge preformatted manpage patch from Andre Lucas

<andre.lucas@dial.pipex.com>
This commit is contained in:
Damien Miller 2000-01-22 13:53:11 +11:00
parent 91427007bc
commit 670a4b8554
4 changed files with 57 additions and 27 deletions

View File

@ -1,6 +1,8 @@
20000122
- Fix compilation of bsd-snprintf.c on Solaris, fix from Ben Taylor
<bent@clark.net>
- Merge preformatted manpage patch from Andre Lucas
<andre.lucas@dial.pipex.com>
20000120
- Don't use getaddrinfo on AIX

View File

@ -4,6 +4,7 @@ bindir=@bindir@
sbindir=@sbindir@
libexecdir=@libexecdir@
mandir=@mandir@
mansubdir=@mansubdir@
sysconfdir=@sysconfdir@
piddir=@piddir@
srcdir=@srcdir@
@ -37,7 +38,9 @@ SSHOBJS= ssh.o sshconnect.o log-client.o readconf.o clientloop.o
SSHDOBJS= sshd.o auth-rhosts.o auth-krb4.o auth-pam.o auth-passwd.o auth-rsa.o auth-rh-rsa.o pty.o log-server.o login.o servconf.o serverloop.o bsd-login.o md5crypt.o
MANPAGES = scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 sshd.8
TROFFMAN = scp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 sshd.8
CATMAN = scp.0 ssh-add.0 ssh-agent.0 ssh-keygen.0 ssh.0 sshd.0
MANPAGES = @MANTYPE@
CONFIGFILES=sshd_config ssh_config
@ -87,30 +90,37 @@ distclean: clean
mrproper: distclean
veryclean: distclean
rm -f configure config.h.in
rm -f configure config.h.in *.0
catman-do:
@for f in $(TROFFMAN) ; do \
echo "$$f -> $${f%%.[18]}.0" ; \
nroff -mandoc $$f | cat -v | sed -e 's/.\^H//g' \
>$${f%%.[18]}.0 ; \
done
install: $(TARGETS)
$(INSTALL) -d $(bindir)
$(INSTALL) -d $(sbindir)
$(INSTALL) -d $(mandir)
$(INSTALL) -d $(mandir)/man1
$(INSTALL) -d $(mandir)/man8
$(INSTALL) -d $(mandir)/$(mansubdir)1
$(INSTALL) -d $(mandir)/$(mansubdir)8
$(INSTALL) -s ssh $(bindir)/ssh
$(INSTALL) -s scp $(bindir)/scp
$(INSTALL) -s ssh-add $(bindir)/ssh-add
$(INSTALL) -s ssh-agent $(bindir)/ssh-agent
$(INSTALL) -s ssh-keygen $(bindir)/ssh-keygen
$(INSTALL) -s sshd $(sbindir)/sshd
$(INSTALL) -m 644 ssh.1.out $(mandir)/man1/ssh.1
$(INSTALL) -m 644 scp.1.out $(mandir)/man1/scp.1
$(INSTALL) -m 644 ssh-add.1.out $(mandir)/man1/ssh-add.1
$(INSTALL) -m 644 ssh-agent.1.out $(mandir)/man1/ssh-agent.1
$(INSTALL) -m 644 ssh-keygen.1.out $(mandir)/man1/ssh-keygen.1
$(INSTALL) -m 644 sshd.8.out $(mandir)/man8/sshd.8
$(INSTALL) -m 644 ssh.[01].out $(mandir)/$(mansubdir)1/ssh.1
$(INSTALL) -m 644 scp.[01].out $(mandir)/$(mansubdir)1/scp.1
$(INSTALL) -m 644 ssh-add.[01].out $(mandir)/$(mansubdir)1/ssh-add.1
$(INSTALL) -m 644 ssh-agent.[01].out $(mandir)/$(mansubdir)1/ssh-agent.1
$(INSTALL) -m 644 ssh-keygen.[01].out $(mandir)/$(mansubdir)1/ssh-keygen.1
$(INSTALL) -m 644 sshd.[08].out $(mandir)/$(mansubdir)8/sshd.8
-rm -f $(bindir)/slogin
ln -s ssh $(bindir)/slogin
-rm -f $(mandir)/man1/slogin.1
ln -s ssh.1 $(mandir)/man1/slogin.1
-rm -f $(mandir)/$(mansubdir)1/slogin.1
ln -s ssh.1 $(mandir)/$(mansubdir)1/slogin.1
if [ ! -z "@GNOME_ASKPASS@" ] ; then \
$(INSTALL) -d $(libexecdir) ; \
@ -130,8 +140,8 @@ uninstallall: uninstall
-rmdir $(sysconfdir)
-rmdir $(bindir)
-rmdir $(sbindir)
-rmdir $(mandir)/man1
-rmdir $(mandir)/man8
-rmdir $(mandir)/$(mansubdir)1
-rmdir $(mandir)/$(mansubdir)8
-rmdir $(mandir)
-rmdir $(libexecdir)
@ -142,18 +152,13 @@ uninstall:
-rm -f $(bindir)/ssh-agent
-rm -f $(bindir)/ssh-keygen
-rm -f $(sbindir)/sshd
-rm -f $(mandir)/man1/ssh.1
-rm -f $(mandir)/man1/scp.1
-rm -f $(mandir)/man1/ssh-add.1
-rm -f $(mandir)/man1/ssh-agent.1
-rm -f $(mandir)/man1/ssh-keygen.1
-rm -f $(mandir)/man8/sshd.8
-rm -f $(mandir)/$(mansubdir)1/ssh.1
-rm -f $(mandir)/$(mansubdir)1/scp.1
-rm -f $(mandir)/$(mansubdir)1/ssh-add.1
-rm -f $(mandir)/$(mansubdir)1/ssh-agent.1
-rm -f $(mandir)/$(mansubdir)1/ssh-keygen.1
-rm -f $(mandir)/$(mansubdir)8/sshd.8
-rm -f $(bindir)/slogin
-rm -f $(mandir)/man1/slogin.1
-rm -f $(mandir)/$(mansubdir)1/slogin.1
-rm -f ${ASKPASS_PROGRAM}
-rmdir $(libexecdir)/ssh ;
preformat:
-rm -f catman
-mkdir catman
for x in $(MANPAGES) ; do man ./$${x}.in > catman/$${x}.in ; done

View File

@ -30,6 +30,9 @@
/* Define if using the Dante SOCKS library. */
#undef HAVE_DANTE
/* Define if you want to install preformatted manpages.*/
#undef MANTYPE
/* Define if your ssl headers are included with #include <ssl/header.h> */
#undef HAVE_SSL

View File

@ -99,6 +99,8 @@ case "$host" in
AC_MSG_RESULT(no)
AC_DEFINE(DISABLE_SHADOW)
fi
MANTYPE='$(CATMAN)'
mansubdir=cat
;;
*-*-irix5*)
no_libsocket=1
@ -147,7 +149,7 @@ if test -z "$no_libnsl" ; then
fi
dnl Checks for header files.
AC_CHECK_HEADERS(bstring.h endian.h lastlog.h login.h maillock.h netdb.h netgroup.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h util.h utmp.h utmpx.h)
AC_CHECK_HEADERS(bstring.h endian.h lastlog.h login.h maillock.h netdb.h netgroup.h paths.h poll.h pty.h shadow.h security/pam_appl.h sys/bitypes.h sys/bsdtty.h sys/cdefs.h sys/poll.h sys/select.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h stddef.h util.h utmp.h utmpx.h)
dnl Checks for library functions.
AC_CHECK_FUNCS(arc4random bindresvport_af freeaddrinfo gai_strerror getaddrinfo getpagesize getnameinfo innetgr md5_crypt mkdtemp openpty rresvport_af setenv seteuid setlogin setproctitle setreuid snprintf strlcat strlcpy updwtmpx vsnprintf _getpty)
@ -523,6 +525,24 @@ AC_ARG_WITH(dante,
fi
]
)
AC_ARG_WITH(catman,
[ --with-catman=man|cat Install preformatted manpages[no]],
[
MANTYPE='$(CATMAN)'
if test x"$withval" != x"yes" ; then
mansubdir=$withval
else
mansubdir=cat
fi
], [
if test -z "$MANTYPE" ; then
MANTYPE='$(TROFFMAN)'
mansubdir=man
fi
]
)
AC_SUBST(MANTYPE)
AC_SUBST(mansubdir)
if test -z "$no_dev_ptmx" ; then
AC_CHECK_FILE("/dev/ptmx", AC_DEFINE_UNQUOTED(HAVE_DEV_PTMX))