summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-11-09 10:28:04 +1100
committerDamien Miller <djm@mindrot.org>1999-11-09 10:28:04 +1100
commitc7b38ceed6030484c61c71ea9fafaca6b34a297e (patch)
tree4ad64e48a77da1772b19ab6578ad8877ab75ba3a
parente8d9068a36e2528dbaf48c192cd1f97e8beafdfe (diff)
- Autodetection of SSL/Crypto library location via autoconf
- Fixed location of ssh-askpass to follow autoconf - Integrated Makefile patch from Niels Kristian Bech Jensen <nkbj@image.dk> - Autodetection of RSAref library for US users - Minor doc updates
-rw-r--r--ChangeLog7
-rw-r--r--Makefile.in15
-rw-r--r--README2
-rw-r--r--TODO12
-rw-r--r--acconfig.h3
-rw-r--r--configure.in48
-rw-r--r--openssh.spec5
-rw-r--r--ssh-add.c6
-rw-r--r--ssh.h6
9 files changed, 73 insertions, 31 deletions
diff --git a/ChangeLog b/ChangeLog
index 4c70b22dc..368f1f674 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
119991109
2 - Autodetection of SSL/Crypto library location via autoconf
3 - Fixed location of ssh-askpass to follow autoconf
4 - Integrated Makefile patch from Niels Kristian Bech Jensen <nkbj@image.dk>
5 - Autodetection of RSAref library for US users
6 - Minor doc updates
7
119991108 819991108
2 - Removed debian/ directory. This is now being maintained separately. 9 - Removed debian/ directory. This is now being maintained separately.
3 - Added symlinks for slogin in RPM spec file 10 - Added symlinks for slogin in RPM spec file
diff --git a/Makefile.in b/Makefile.in
index 151131c6d..f182af3b3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -5,9 +5,12 @@ sbindir=@sbindir@
5libdir=@libdir@ 5libdir=@libdir@
6mandir=@mandir@ 6mandir=@mandir@
7 7
8SSH_PROGRAM=@bindir@/ssh
9ASKPASS_PROGRAM=@libdir@/ssh/ssh-askpass
10
8CC=@CC@ 11CC=@CC@
9OPT_FLAGS=-g 12PATHS=-DETCDIR=\"@sysconfdir@\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DASKPASS_PROGRAM=\"$(ASKPASS_PROGRAM)\"
10CFLAGS=$(OPT_FLAGS) -Wall -DETCDIR=\"@sysconfdir@\" -DSSH_PROGRAM=\"@bindir@/ssh\" @DEFS@ 13CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
11TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp 14TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp
12LFLAGS=-L. 15LFLAGS=-L.
13LIBS=-lssh @LIBS@ 16LIBS=-lssh @LIBS@
@@ -55,8 +58,9 @@ install:
55 install -d $(mandir) 58 install -d $(mandir)
56 install -d $(mandir)/man1 59 install -d $(mandir)/man1
57 install -d $(mandir)/man8 60 install -d $(mandir)/man8
61 install -d $(libdir)/ssh
58 install -s -c ssh $(bindir)/ssh 62 install -s -c ssh $(bindir)/ssh
59 ln -s ssh $(bindir)/slogin 63 ln -sf ssh $(bindir)/slogin
60 install -s -c scp $(bindir)/scp 64 install -s -c scp $(bindir)/scp
61 install -s -c ssh-add $(bindir)/ssh-add 65 install -s -c ssh-add $(bindir)/ssh-add
62 install -m755 -c ssh-askpass $(libdir)/ssh/ssh-askpass 66 install -m755 -c ssh-askpass $(libdir)/ssh/ssh-askpass
@@ -64,7 +68,7 @@ install:
64 install -s -c ssh-keygen $(bindir)/ssh-keygen 68 install -s -c ssh-keygen $(bindir)/ssh-keygen
65 install -s -c sshd $(sbindir)/sshd 69 install -s -c sshd $(sbindir)/sshd
66 install -m644 -c ssh.1 $(mandir)/man1/ssh.1 70 install -m644 -c ssh.1 $(mandir)/man1/ssh.1
67 ln -s ssh.1 $(mandir)/man1/slogin.1 71 ln -sf ssh.1 $(mandir)/man1/slogin.1
68 install -m644 -c scp.1 $(mandir)/man1/scp.1 72 install -m644 -c scp.1 $(mandir)/man1/scp.1
69 install -m644 -c ssh-add.1 $(mandir)/man1/ssh-add.1 73 install -m644 -c ssh-add.1 $(mandir)/man1/ssh-add.1
70 install -m644 -c ssh-agent.1 $(mandir)/man1/ssh-agent.1 74 install -m644 -c ssh-agent.1 $(mandir)/man1/ssh-agent.1
@@ -77,4 +81,5 @@ distclean: clean
77mrproper: distclean 81mrproper: distclean
78 82
79veryclean: distclean 83veryclean: distclean
80 rm -f configure 84 rm -f configure config.h.in
85
diff --git a/README b/README
index 0c61143d0..5ddc2ef8c 100644
--- a/README
+++ b/README
@@ -36,6 +36,8 @@ The OpenBSD team
36Dan Brosemer <odin@linuxfreak.com> - Autoconf and build fixes & Debian scripts 36Dan Brosemer <odin@linuxfreak.com> - Autoconf and build fixes & Debian scripts
37Niels Kristian Bech Jensen <nkbj@image.dk> - Makefile patch 37Niels Kristian Bech Jensen <nkbj@image.dk> - Makefile patch
38Nalin Dahyabhai <nalin.dahyabhai@pobox.com> - PAM environment patch 38Nalin Dahyabhai <nalin.dahyabhai@pobox.com> - PAM environment patch
39Phil Hands <phil@hands.com> - Debian scripts, assorted patches
40Niels Kristian Bech Jensen <nkbj@image.dk> - Makefile patches
39 41
40Miscellania - 42Miscellania -
41 43
diff --git a/TODO b/TODO
index 128f6df14..118ef2d04 100644
--- a/TODO
+++ b/TODO
@@ -1,7 +1,11 @@
1-- Replacement for setproctitle() 1- Replacement for setproctitle()
2 2
3-- Improve PAM support (a pam_lastlog module will cause sshd to exit) 3- Improve PAM support (a pam_lastlog module will cause sshd to exit)
4 4
5-- Better documentation 5- Better documentation
6 6
7-- Port to other platforms 7- Port to other platforms
8
9- Fix paths in manpages using autoconf
10
11- Enable libwrap support using autoconf switch
diff --git a/acconfig.h b/acconfig.h
index 7119b94ac..c859c253a 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -1,5 +1,8 @@
1/* config.h.in. Generated by hand, don't use autoheader. */ 1/* config.h.in. Generated by hand, don't use autoheader. */
2 2
3/* SSL directory. */
4#undef ssldir
5
3/* Define if your ssl headers are included with #include <ssl/header.h> */ 6/* Define if your ssl headers are included with #include <ssl/header.h> */
4#undef HAVE_SSL 7#undef HAVE_SSL
5 8
diff --git a/configure.in b/configure.in
index 8df3ffc76..a03c2af2c 100644
--- a/configure.in
+++ b/configure.in
@@ -6,6 +6,8 @@ AC_CONFIG_HEADER(config.h)
6dnl Checks for programs. 6dnl Checks for programs.
7AC_PROG_CC 7AC_PROG_CC
8AC_PROG_RANLIB 8AC_PROG_RANLIB
9AC_CHECK_PROG(AR, ar, ar)
10if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi
9 11
10dnl Checks for libraries. 12dnl Checks for libraries.
11dnl Replace `main' with a function in -lcrypto: 13dnl Replace `main' with a function in -lcrypto:
@@ -21,26 +23,42 @@ AC_CHECK_LIB(dl, dlopen, , )
21dnl check for pam 23dnl check for pam
22AC_CHECK_LIB(pam, pam_authenticate, , ) 24AC_CHECK_LIB(pam, pam_authenticate, , )
23 25
24dnl Check for stuff in path. 26dnl Check for OpenSSL/SSLeay directories.
25AC_CHECK_PROG(AR, ar, ar) 27AC_MSG_CHECKING([for OpenSSL/SSLeay directory])
26AC_CHECK_PROG(RANLIB, ranlib, ranlib) 28for dir in /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg ; do
29 ssldir="$dir"
30 if test -f "$dir/include/openssl/crypto.h"; then
31 AC_DEFINE(HAVE_OPENSSL)
32 break
33 fi
34 if test -f "$dir/include/ssl/crypto.h"; then
35 AC_DEFINE(HAVE_SSL)
36 break
37 fi
38 if test -f "$dir/include/crypto.h"; then
39 break
40 fi
41done
42AC_MSG_RESULT($ssldir)
43AC_SUBST(ssldir)
44AC_DEFINE_UNQUOTED(ssldir, "$ssldir")
45if test "$ssldir" != "/usr"; then
46 CFLAGS="$CFLAGS -I$ssldir/include"
47 LIBS="$LIBS -L$ssldir/lib"
48fi
49LIBS="$LIBS -lssl -lcrypto"
27 50
28dnl Check for ssl headers 51dnl Check for RSAref library.
29AC_CHECK_HEADER(openssl/bn.h, [AC_DEFINE(HAVE_OPENSSL)], [AC_CHECK_HEADER(ssl/bn.h, [AC_DEFINE(HAVE_SSL)], [AC_MSG_ERROR([*** ssl library missing - please install first ***])])]) 52AC_MSG_CHECKING([for RSAref library])
53saved_LIBS="$LIBS"
54LIBS="$saved_LIBS -lRSAglue -lrsaref"
55AC_TRY_LINK([], [],
56[AC_MSG_RESULT(yes); ],
57[AC_MSG_RESULT(no)]; LIBS="$saved_LIBS")
30 58
31dnl Checks for header files. 59dnl Checks for header files.
32AC_CHECK_HEADERS(pty.h) 60AC_CHECK_HEADERS(pty.h)
33 61
34dnl Checks for typedefs, structures, and compiler characteristics.
35AC_C_CONST
36AC_TYPE_UID_T
37AC_C_INLINE
38AC_TYPE_MODE_T
39AC_TYPE_OFF_T
40AC_TYPE_SIZE_T
41AC_STRUCT_ST_BLKSIZE
42AC_HEADER_TIME
43
44dnl Checks for library functions. 62dnl Checks for library functions.
45AC_PROG_GCC_TRADITIONAL 63AC_PROG_GCC_TRADITIONAL
46AC_CHECK_FUNCS(openpty strlcpy mkdtemp arc4random setproctitle) 64AC_CHECK_FUNCS(openpty strlcpy mkdtemp arc4random setproctitle)
diff --git a/openssh.spec b/openssh.spec
index 1f87a6be3..c0d45bc25 100644
--- a/openssh.spec
+++ b/openssh.spec
@@ -1,6 +1,6 @@
1Summary: OpenSSH free Secure Shell (SSH) implementation 1Summary: OpenSSH free Secure Shell (SSH) implementation
2Name: openssh 2Name: openssh
3Version: 1.2pre8 3Version: 1.2pre9
4Release: 1 4Release: 1
5Packager: Damien Miller <djm@ibs.com.au> 5Packager: Damien Miller <djm@ibs.com.au>
6Source0: openssh-%{version}-linux.tar.gz 6Source0: openssh-%{version}-linux.tar.gz
@@ -39,8 +39,7 @@ patented algorithms to seperate libraries (OpenSSL).
39 39
40%build 40%build
41 41
42./configure --prefix=/usr --sysconfdir=/etc/ssh 42CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --sysconfdir=/etc/ssh
43make OPT_FLAGS="$RPM_OPT_FLAGS"
44 43
45%install 44%install
46rm -rf $RPM_BUILD_ROOT 45rm -rf $RPM_BUILD_ROOT
diff --git a/ssh-add.c b/ssh-add.c
index 07c33d87b..fb237ce2e 100644
--- a/ssh-add.c
+++ b/ssh-add.c
@@ -14,7 +14,7 @@ Adds an identity to the authentication server, or removes an identity.
14*/ 14*/
15 15
16#include "includes.h" 16#include "includes.h"
17RCSID("$Id: ssh-add.c,v 1.4 1999/11/08 05:15:55 damien Exp $"); 17RCSID("$Id: ssh-add.c,v 1.5 1999/11/08 23:28:04 damien Exp $");
18 18
19#include "rsa.h" 19#include "rsa.h"
20#include "ssh.h" 20#include "ssh.h"
@@ -112,9 +112,9 @@ add_file(AuthenticationConnection *ac, const char *filename)
112 filename, saved_comment); 112 filename, saved_comment);
113 /* skip the prompt if it won't fit */ 113 /* skip the prompt if it won't fit */
114 if (tmp < 0 || tmp >= BUFSIZE) 114 if (tmp < 0 || tmp >= BUFSIZE)
115 tmp=execlp("/usr/lib/ssh/ssh-askpass", "ssh-askpass", 0); 115 tmp=execlp(ASKPASS_PROGRAM, "ssh-askpass", 0);
116 else 116 else
117 tmp=execlp("/usr/lib/ssh/ssh-askpass", "ssh-askpass", buf, 0); 117 tmp=execlp(ASKPASS_PROGRAM, "ssh-askpass", buf, 0);
118 if (tmp==-1) 118 if (tmp==-1)
119 { 119 {
120 fprintf(stderr, "Executing ssh-askpass failed: %s\n", 120 fprintf(stderr, "Executing ssh-askpass failed: %s\n",
diff --git a/ssh.h b/ssh.h
index 1fd17c1aa..ddcb5381b 100644
--- a/ssh.h
+++ b/ssh.h
@@ -13,7 +13,7 @@ Generic header file for ssh.
13 13
14*/ 14*/
15 15
16/* RCSID("$Id: ssh.h,v 1.7 1999/11/08 05:15:55 damien Exp $"); */ 16/* RCSID("$Id: ssh.h,v 1.8 1999/11/08 23:28:04 damien Exp $"); */
17 17
18#ifndef SSH_H 18#ifndef SSH_H
19#define SSH_H 19#define SSH_H
@@ -93,6 +93,10 @@ only by root, whereas ssh_config should be world-readable. */
93#define LOGIN_PROGRAM "/usr/bin/login" 93#define LOGIN_PROGRAM "/usr/bin/login"
94#endif /* LOGIN_PROGRAM */ 94#endif /* LOGIN_PROGRAM */
95 95
96#ifndef ASKPASS_PROGRAM
97#define ASKPASS_PROGRAM "/usr/lib/ssh/ssh-askpass"
98#endif /* ASKPASS_PROGRAM */
99
96/* The process id of the daemon listening for connections is saved 100/* The process id of the daemon listening for connections is saved
97 here to make it easier to kill the correct daemon when necessary. */ 101 here to make it easier to kill the correct daemon when necessary. */
98#define SSH_DAEMON_PID_FILE PIDDIR "/sshd.pid" 102#define SSH_DAEMON_PID_FILE PIDDIR "/sshd.pid"