diff options
author | Damien Miller <djm@mindrot.org> | 1999-11-09 10:28:04 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-11-09 10:28:04 +1100 |
commit | c7b38ceed6030484c61c71ea9fafaca6b34a297e (patch) | |
tree | 4ad64e48a77da1772b19ab6578ad8877ab75ba3a | |
parent | e8d9068a36e2528dbaf48c192cd1f97e8beafdfe (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-- | ChangeLog | 7 | ||||
-rw-r--r-- | Makefile.in | 15 | ||||
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | TODO | 12 | ||||
-rw-r--r-- | acconfig.h | 3 | ||||
-rw-r--r-- | configure.in | 48 | ||||
-rw-r--r-- | openssh.spec | 5 | ||||
-rw-r--r-- | ssh-add.c | 6 | ||||
-rw-r--r-- | ssh.h | 6 |
9 files changed, 73 insertions, 31 deletions
@@ -1,3 +1,10 @@ | |||
1 | 19991109 | ||
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 | |||
1 | 19991108 | 8 | 19991108 |
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@ | |||
5 | libdir=@libdir@ | 5 | libdir=@libdir@ |
6 | mandir=@mandir@ | 6 | mandir=@mandir@ |
7 | 7 | ||
8 | SSH_PROGRAM=@bindir@/ssh | ||
9 | ASKPASS_PROGRAM=@libdir@/ssh/ssh-askpass | ||
10 | |||
8 | CC=@CC@ | 11 | CC=@CC@ |
9 | OPT_FLAGS=-g | 12 | PATHS=-DETCDIR=\"@sysconfdir@\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DASKPASS_PROGRAM=\"$(ASKPASS_PROGRAM)\" |
10 | CFLAGS=$(OPT_FLAGS) -Wall -DETCDIR=\"@sysconfdir@\" -DSSH_PROGRAM=\"@bindir@/ssh\" @DEFS@ | 13 | CFLAGS=@CFLAGS@ $(PATHS) @DEFS@ |
11 | TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp | 14 | TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp |
12 | LFLAGS=-L. | 15 | LFLAGS=-L. |
13 | LIBS=-lssh @LIBS@ | 16 | LIBS=-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 | |||
77 | mrproper: distclean | 81 | mrproper: distclean |
78 | 82 | ||
79 | veryclean: distclean | 83 | veryclean: distclean |
80 | rm -f configure | 84 | rm -f configure config.h.in |
85 | |||
@@ -36,6 +36,8 @@ The OpenBSD team | |||
36 | Dan Brosemer <odin@linuxfreak.com> - Autoconf and build fixes & Debian scripts | 36 | Dan Brosemer <odin@linuxfreak.com> - Autoconf and build fixes & Debian scripts |
37 | Niels Kristian Bech Jensen <nkbj@image.dk> - Makefile patch | 37 | Niels Kristian Bech Jensen <nkbj@image.dk> - Makefile patch |
38 | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> - PAM environment patch | 38 | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> - PAM environment patch |
39 | Phil Hands <phil@hands.com> - Debian scripts, assorted patches | ||
40 | Niels Kristian Bech Jensen <nkbj@image.dk> - Makefile patches | ||
39 | 41 | ||
40 | Miscellania - | 42 | Miscellania - |
41 | 43 | ||
@@ -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) | |||
6 | dnl Checks for programs. | 6 | dnl Checks for programs. |
7 | AC_PROG_CC | 7 | AC_PROG_CC |
8 | AC_PROG_RANLIB | 8 | AC_PROG_RANLIB |
9 | AC_CHECK_PROG(AR, ar, ar) | ||
10 | if test "$GCC" = "yes"; then CFLAGS="$CFLAGS -Wall"; fi | ||
9 | 11 | ||
10 | dnl Checks for libraries. | 12 | dnl Checks for libraries. |
11 | dnl Replace `main' with a function in -lcrypto: | 13 | dnl Replace `main' with a function in -lcrypto: |
@@ -21,26 +23,42 @@ AC_CHECK_LIB(dl, dlopen, , ) | |||
21 | dnl check for pam | 23 | dnl check for pam |
22 | AC_CHECK_LIB(pam, pam_authenticate, , ) | 24 | AC_CHECK_LIB(pam, pam_authenticate, , ) |
23 | 25 | ||
24 | dnl Check for stuff in path. | 26 | dnl Check for OpenSSL/SSLeay directories. |
25 | AC_CHECK_PROG(AR, ar, ar) | 27 | AC_MSG_CHECKING([for OpenSSL/SSLeay directory]) |
26 | AC_CHECK_PROG(RANLIB, ranlib, ranlib) | 28 | for 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 | ||
41 | done | ||
42 | AC_MSG_RESULT($ssldir) | ||
43 | AC_SUBST(ssldir) | ||
44 | AC_DEFINE_UNQUOTED(ssldir, "$ssldir") | ||
45 | if test "$ssldir" != "/usr"; then | ||
46 | CFLAGS="$CFLAGS -I$ssldir/include" | ||
47 | LIBS="$LIBS -L$ssldir/lib" | ||
48 | fi | ||
49 | LIBS="$LIBS -lssl -lcrypto" | ||
27 | 50 | ||
28 | dnl Check for ssl headers | 51 | dnl Check for RSAref library. |
29 | AC_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 ***])])]) | 52 | AC_MSG_CHECKING([for RSAref library]) |
53 | saved_LIBS="$LIBS" | ||
54 | LIBS="$saved_LIBS -lRSAglue -lrsaref" | ||
55 | AC_TRY_LINK([], [], | ||
56 | [AC_MSG_RESULT(yes); ], | ||
57 | [AC_MSG_RESULT(no)]; LIBS="$saved_LIBS") | ||
30 | 58 | ||
31 | dnl Checks for header files. | 59 | dnl Checks for header files. |
32 | AC_CHECK_HEADERS(pty.h) | 60 | AC_CHECK_HEADERS(pty.h) |
33 | 61 | ||
34 | dnl Checks for typedefs, structures, and compiler characteristics. | ||
35 | AC_C_CONST | ||
36 | AC_TYPE_UID_T | ||
37 | AC_C_INLINE | ||
38 | AC_TYPE_MODE_T | ||
39 | AC_TYPE_OFF_T | ||
40 | AC_TYPE_SIZE_T | ||
41 | AC_STRUCT_ST_BLKSIZE | ||
42 | AC_HEADER_TIME | ||
43 | |||
44 | dnl Checks for library functions. | 62 | dnl Checks for library functions. |
45 | AC_PROG_GCC_TRADITIONAL | 63 | AC_PROG_GCC_TRADITIONAL |
46 | AC_CHECK_FUNCS(openpty strlcpy mkdtemp arc4random setproctitle) | 64 | AC_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 @@ | |||
1 | Summary: OpenSSH free Secure Shell (SSH) implementation | 1 | Summary: OpenSSH free Secure Shell (SSH) implementation |
2 | Name: openssh | 2 | Name: openssh |
3 | Version: 1.2pre8 | 3 | Version: 1.2pre9 |
4 | Release: 1 | 4 | Release: 1 |
5 | Packager: Damien Miller <djm@ibs.com.au> | 5 | Packager: Damien Miller <djm@ibs.com.au> |
6 | Source0: openssh-%{version}-linux.tar.gz | 6 | Source0: 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 | 42 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --sysconfdir=/etc/ssh |
43 | make OPT_FLAGS="$RPM_OPT_FLAGS" | ||
44 | 43 | ||
45 | %install | 44 | %install |
46 | rm -rf $RPM_BUILD_ROOT | 45 | rm -rf $RPM_BUILD_ROOT |
@@ -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" |
17 | RCSID("$Id: ssh-add.c,v 1.4 1999/11/08 05:15:55 damien Exp $"); | 17 | RCSID("$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", |
@@ -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" |