summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-01-03 06:02:51 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-01-03 06:02:51 +0000
commit3ad650a88d44bd189b1489256e872d561739e13a (patch)
treecae1d5e9785a3a0ef21982f2d3b496b922dccd55
parent70c4dce2fe0759cd0eb0b15f9a48f4607f651287 (diff)
- (bal) UnixWare 2.0 fixes by Tim Rice <tim@multitalents.net>
- (bal) Disable sftp-server if no 64bit int support exists. Based on patch by Tim Rice <tim@multitalents.net> - (bal) Makefile.in changes to uninstall: target to remove sftp-server and sftp-server.8 manpage.
-rw-r--r--ChangeLog5
-rw-r--r--Makefile.in13
-rw-r--r--configure.in41
3 files changed, 45 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 009e4870a..6ffcd01d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,11 @@
10 strict_host_key_checking for host_status != HOST_CHANGED && 10 strict_host_key_checking for host_status != HOST_CHANGED &&
11 ip_status == HOST_CHANGED 11 ip_status == HOST_CHANGED
12 - (bal) authfile.c: Synced CVS ID tag 12 - (bal) authfile.c: Synced CVS ID tag
13 - (bal) UnixWare 2.0 fixes by Tim Rice <tim@multitalents.net>
14 - (bal) Disable sftp-server if no 64bit int support exists. Based on
15 patch by Tim Rice <tim@multitalents.net>
16 - (bal) Makefile.in changes to uninstall: target to remove sftp-server
17 and sftp-server.8 manpage.
13 18
1420010102 1920010102
15 - (bal) OpenBSD CVS Update 20 - (bal) OpenBSD CVS Update
diff --git a/Makefile.in b/Makefile.in
index e1c1c8157..c22d5eff8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -33,7 +33,9 @@ SSH_MODE= @SSHMODE@
33 33
34INSTALL_SSH_PRNG_CMDS=@INSTALL_SSH_PRNG_CMDS@ 34INSTALL_SSH_PRNG_CMDS=@INSTALL_SSH_PRNG_CMDS@
35 35
36TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-agent$(EXEEXT) scp$(EXEEXT) sftp-server$(EXEEXT) 36@NO_SFTP@SFTP-SERVER=sftp-server$(EXEEXT)
37
38TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-agent$(EXEEXT) scp$(EXEEXT) $(SFTP-SERVER)
37 39
38LIBSSH_OBJS=atomicio.o authfd.o authfile.o bufaux.o buffer.o canohost.o channels.o cipher.o cli.o compat.o compress.o crc32.o cygwin_util.o deattack.o dispatch.o hmac.o hostfile.o key.o kex.o log.o match.o mpaux.o nchan.o packet.o radix.o rijndael.o entropy.o readpass.o rsa.o ssh-dss.o ssh-rsa.o tildexpand.o ttymodes.o uidswap.o util.o uuencode.o xmalloc.o 40LIBSSH_OBJS=atomicio.o authfd.o authfile.o bufaux.o buffer.o canohost.o channels.o cipher.o cli.o compat.o compress.o crc32.o cygwin_util.o deattack.o dispatch.o hmac.o hostfile.o key.o kex.o log.o match.o mpaux.o nchan.o packet.o radix.o rijndael.o entropy.o readpass.o rsa.o ssh-dss.o ssh-rsa.o tildexpand.o ttymodes.o uidswap.o util.o uuencode.o xmalloc.o
39 41
@@ -155,7 +157,7 @@ install-files:
155 $(INSTALL) -m 0755 -s ssh-keygen $(DESTDIR)$(bindir)/ssh-keygen 157 $(INSTALL) -m 0755 -s ssh-keygen $(DESTDIR)$(bindir)/ssh-keygen
156 $(INSTALL) -m 0775 -s ssh-keyscan $(DESTDIR)$(bindir)/ssh-keyscan 158 $(INSTALL) -m 0775 -s ssh-keyscan $(DESTDIR)$(bindir)/ssh-keyscan
157 $(INSTALL) -m 0755 -s sshd $(DESTDIR)$(sbindir)/sshd 159 $(INSTALL) -m 0755 -s sshd $(DESTDIR)$(sbindir)/sshd
158 $(INSTALL) -m 0755 -s sftp-server $(DESTDIR)$(libexecdir)/sftp-server 160 @NO_SFTP@$(INSTALL) -m 0755 -s sftp-server $(DESTDIR)$(libexecdir)/sftp-server
159 $(INSTALL) -m 644 ssh.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 161 $(INSTALL) -m 644 ssh.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1
160 $(INSTALL) -m 644 scp.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 162 $(INSTALL) -m 644 scp.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1
161 $(INSTALL) -m 644 ssh-add.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 163 $(INSTALL) -m 644 ssh-add.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1
@@ -163,7 +165,7 @@ install-files:
163 $(INSTALL) -m 644 ssh-keygen.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 165 $(INSTALL) -m 644 ssh-keygen.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1
164 $(INSTALL) -m 644 ssh-keyscan.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 166 $(INSTALL) -m 644 ssh-keyscan.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1
165 $(INSTALL) -m 644 sshd.[08].out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 167 $(INSTALL) -m 644 sshd.[08].out $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
166 $(INSTALL) -m 644 sftp-server.[08].out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8 168 @NO_SFTP@$(INSTALL) -m 644 sftp-server.[08].out $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8
167 -rm -f $(DESTDIR)$(bindir)/slogin 169 -rm -f $(DESTDIR)$(bindir)/slogin
168 ln -s ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin 170 ln -s ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin
169 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 171 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
@@ -233,6 +235,7 @@ uninstallall: uninstall
233 -rmdir $(DESTDIR)$(libexecdir) 235 -rmdir $(DESTDIR)$(libexecdir)
234 236
235uninstall: 237uninstall:
238 -rm -f $(DESTDIR)$(bindir)/slogin
236 -rm -f $(DESTDIR)$(bindir)/ssh$(EXEEXT) 239 -rm -f $(DESTDIR)$(bindir)/ssh$(EXEEXT)
237 -rm -f $(DESTDIR)$(bindir)/scp$(EXEEXT) 240 -rm -f $(DESTDIR)$(bindir)/scp$(EXEEXT)
238 -rm -f $(DESTDIR)$(bindir)/ssh-add$(EXEEXT) 241 -rm -f $(DESTDIR)$(bindir)/ssh-add$(EXEEXT)
@@ -240,6 +243,7 @@ uninstall:
240 -rm -f $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT) 243 -rm -f $(DESTDIR)$(bindir)/ssh-keygen$(EXEEXT)
241 -rm -f $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT) 244 -rm -f $(DESTDIR)$(bindir)/ssh-keyscan$(EXEEXT)
242 -rm -f $(DESTDIR)$(sbindir)/sshd$(EXEEXT) 245 -rm -f $(DESTDIR)$(sbindir)/sshd$(EXEEXT)
246 -rm -r $(DESTDIR)$(libexecdir)/sftp-server$(EXEEXT)
243 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1 247 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh.1
244 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1 248 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/scp.1
245 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1 249 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-add.1
@@ -247,7 +251,6 @@ uninstall:
247 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1 251 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keygen.1
248 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1 252 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/ssh-keyscan.1
249 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8 253 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sshd.8
250 -rm -f $(DESTDIR)$(bindir)/slogin 254 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/sftp-server.8
251 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1 255 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)1/slogin.1
252 -rm -f $(DESTDIR)${ASKPASS_PROGRAM} 256 -rm -f $(DESTDIR)${ASKPASS_PROGRAM}
253 -rmdir $(DESTDIR)$(libexecdir)/ssh ;
diff --git a/configure.in b/configure.in
index 262b62a69..dd68daeb1 100644
--- a/configure.in
+++ b/configure.in
@@ -188,7 +188,6 @@ mips-sony-bsd|mips-sony-newsos4)
188 LDFLAGS="$LDFLAGS -L/usr/local/lib" 188 LDFLAGS="$LDFLAGS -L/usr/local/lib"
189 MANTYPE='$(CATMAN)' 189 MANTYPE='$(CATMAN)'
190 mansubdir=cat 190 mansubdir=cat
191 LIBS="$LIBS -lgen -lsocket -lnsl -lresolv"
192 enable_suid_ssh=no 191 enable_suid_ssh=no
193 ;; 192 ;;
194*-*-sysv5*) 193*-*-sysv5*)
@@ -196,7 +195,6 @@ mips-sony-bsd|mips-sony-newsos4)
196 LDFLAGS="$LDFLAGS -L/usr/local/lib" 195 LDFLAGS="$LDFLAGS -L/usr/local/lib"
197 MANTYPE='$(CATMAN)' 196 MANTYPE='$(CATMAN)'
198 mansubdir=cat 197 mansubdir=cat
199 LIBS="$LIBS -lgen -lsocket"
200 enable_suid_ssh=no 198 enable_suid_ssh=no
201 ;; 199 ;;
202*-*-sysv*) 200*-*-sysv*)
@@ -219,13 +217,14 @@ mips-sony-bsd|mips-sony-newsos4)
219 rsh_path="/usr/bin/rcmd" 217 rsh_path="/usr/bin/rcmd"
220 AC_DEFINE(HAVE_SCO_PROTECTED_PW) 218 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
221 AC_DEFINE(DISABLE_SHADOW) 219 AC_DEFINE(DISABLE_SHADOW)
220 AC_DEFINE(HAVE_BOGUS_SYS_QUEUE_H)
222 ;; 221 ;;
223*-*-sco3.2v5*) 222*-*-sco3.2v5*)
224 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 223 CPPFLAGS="$CPPFLAGS -I/usr/local/include"
225 LDFLAGS="$LDFLAGS -L/usr/local/lib" 224 LDFLAGS="$LDFLAGS -L/usr/local/lib"
226 MANTYPE='$(CATMAN)' 225 MANTYPE='$(CATMAN)'
227 mansubdir=cat 226 mansubdir=cat
228 LIBS="$LIBS -lgen -lsocket -lprot -lx -ltinfo -lm" 227 LIBS="$LIBS -lprot -lx -ltinfo -lm"
229 no_dev_ptmx=1 228 no_dev_ptmx=1
230 rsh_path="/usr/bin/rcmd" 229 rsh_path="/usr/bin/rcmd"
231 AC_DEFINE(HAVE_SCO_PROTECTED_PW) 230 AC_DEFINE(HAVE_SCO_PROTECTED_PW)
@@ -284,6 +283,14 @@ AC_ARG_WITH(libs,
284 283
285 284
286# Checks for libraries. 285# Checks for libraries.
286if test -z "$no_libsocket" ; then
287 AC_CHECK_LIB(nsl, yp_match, , )
288fi
289if test -z "$no_libnsl" ; then
290 AC_CHECK_LIB(socket, main, , )
291fi
292
293AC_CHECK_LIB(gen, getspnam, LIBS="$LIBS -lgen")
287AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***])) 294AC_CHECK_LIB(z, deflate, ,AC_MSG_ERROR([*** zlib missing - please install first ***]))
288AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil") 295AC_CHECK_LIB(util, login, AC_DEFINE(HAVE_LIBUTIL_LOGIN) LIBS="$LIBS -lutil")
289 296
@@ -295,12 +302,13 @@ AC_CHECK_FUNC(regcomp,
295 ] 302 ]
296) 303)
297 304
298if test -z "$no_libsocket" ; then 305dnl UnixWare 2.x
299 AC_CHECK_LIB(nsl, yp_match, , ) 306AC_CHECK_FUNC(strcasecmp,
300fi 307 [], [ AC_CHECK_LIB(resolv, strcasecmp, LIBS="$LIBS -lresolv") ]
301if test -z "$no_libnsl" ; then 308)
302 AC_CHECK_LIB(socket, main, , ) 309AC_CHECK_FUNC(utimes,
303fi 310 [], [ AC_CHECK_LIB(c89, utimes, LIBS="$LIBS -lc89") ]
311)
304 312
305# Checks for header files. 313# Checks for header files.
306AC_CHECK_HEADERS(bstring.h endian.h floatingpoint.h getopt.h lastlog.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.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/queue.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h sys/un.h stddef.h time.h ttyent.h usersec.h util.h utmp.h utmpx.h vis.h) 314AC_CHECK_HEADERS(bstring.h endian.h floatingpoint.h getopt.h lastlog.h limits.h login.h login_cap.h maillock.h netdb.h netgroup.h netinet/in_systm.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/queue.h sys/select.h sys/stat.h sys/stropts.h sys/sysmacros.h sys/time.h sys/ttcompat.h sys/un.h stddef.h time.h ttyent.h usersec.h util.h utmp.h utmpx.h vis.h)
@@ -801,6 +809,15 @@ if test "x$ac_cv_have_struct_addrinfo" = "xyes" ; then
801 AC_DEFINE(HAVE_STRUCT_ADDRINFO) 809 AC_DEFINE(HAVE_STRUCT_ADDRINFO)
802fi 810fi
803 811
812# If we don't have int64_t then we can't compile sftp-server. So don't
813# even attempt to do it.
814if test "x$ac_cv_have_int64_t" = "xno" -a \
815 "x$ac_cv_sizeof_long_int" != "x8" -a \
816 "x$ac_cv_sizeof_long_long_int" = "x0" ; then
817 NO_SFTP='#'
818 AC_SUBST(NO_SFTP)
819fi
820
804dnl Checks for structure members 821dnl Checks for structure members
805OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP) 822OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmp.h, HAVE_HOST_IN_UTMP)
806OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX) 823OSSH_CHECK_HEADER_FOR_FIELD(ut_host, utmpx.h, HAVE_HOST_IN_UTMPX)
@@ -1633,3 +1650,9 @@ if test ! -z "$BUILTIN_RNG" ; then
1633 echo "/dev/random in future versions of their OS." 1650 echo "/dev/random in future versions of their OS."
1634 echo "" 1651 echo ""
1635fi 1652fi
1653
1654if test ! -z "$NO_SFTP"; then
1655 echo "sftp-server will be disabled. Your compiler does not support"
1656 echo "64bit integers."
1657 echo ""
1658fi