summaryrefslogtreecommitdiffstats
path: root/openwrt/package/openssh
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-10-07 11:57:20 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-10-07 11:57:20 +0000
commit725611a466f2edf12f809d22339b22223af4afe7 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /openwrt/package/openssh
parentf4dd5a6d7c4ebea48cd6292744cb9def6037de80 (diff)
move old kamikaze out of trunk - will put buildroot-ng in there as soon as all the developers are ready
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@4944 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/openssh')
-rw-r--r--openwrt/package/openssh/Config.in117
-rw-r--r--openwrt/package/openssh/Makefile126
-rwxr-xr-xopenwrt/package/openssh/files/S50sshd15
-rw-r--r--openwrt/package/openssh/ipkg/openssh-client-utils.control5
-rw-r--r--openwrt/package/openssh/ipkg/openssh-client.conffiles1
-rw-r--r--openwrt/package/openssh/ipkg/openssh-client.control5
-rw-r--r--openwrt/package/openssh/ipkg/openssh-server.conffiles1
-rw-r--r--openwrt/package/openssh/ipkg/openssh-server.control5
-rw-r--r--openwrt/package/openssh/ipkg/openssh-server.postinst32
-rw-r--r--openwrt/package/openssh/ipkg/openssh-sftp-client.control5
-rw-r--r--openwrt/package/openssh/ipkg/openssh-sftp-server.control5
-rw-r--r--openwrt/package/openssh/patches/100-openssl-cipher.patch11
-rw-r--r--openwrt/package/openssh/patches/cross-compile.patch103
13 files changed, 0 insertions, 431 deletions
diff --git a/openwrt/package/openssh/Config.in b/openwrt/package/openssh/Config.in
deleted file mode 100644
index 387ee51fc..000000000
--- a/openwrt/package/openssh/Config.in
+++ /dev/null
@@ -1,117 +0,0 @@
-menu "openssh........................... A free implementation of the Secure Shell protocol"
-
-config BR2_COMPILE_OPENSSH
- tristate
- default n
- depends BR2_PACKAGE_OPENSSH_CLIENT || BR2_PACKAGE_OPENSSH_SERVER || BR2_PACKAGE_OPENSSH_SFTP_CLIENT || BR2_PACKAGE_OPENSSH_SFTP_SERVER
-
-config BR2_PACKAGE_OPENSSH_CLIENT
- prompt "openssh-client.................... OpenSSH client"
- tristate
- default m if CONFIG_DEVEL
- select BR2_COMPILE_OPENSSH
- select BR2_PACKAGE_LIBOPENSSL
- select BR2_PACKAGE_ZLIB
- help
- OpenSSH is a FREE version of the SSH protocol suite of network
- connectivity tools that increasing numbers of people on the Internet
- are coming to rely on. Many users of telnet, rlogin, ftp, and other
- such programs might not realize that their password is transmitted
- across the Internet unencrypted, but it is. OpenSSH encrypts all
- traffic (including passwords) to effectively eliminate eavesdropping,
- connection hijacking, and other network-level attacks. Additionally,
- OpenSSH provides a myriad of secure tunneling capabilities, as well
- as a variety of authentication methods.
-
- http://www.openssh.com/
-
- Depends: openssl
-
-config BR2_PACKAGE_OPENSSH_CLIENT_UTILS
- prompt "openssh-client-utils............ OpenSSH client utilities"
- tristate
- default m if CONFIG_DEVEL
- depends BR2_PACKAGE_OPENSSH_CLIENT
- help
- OpenSSH is a FREE version of the SSH protocol suite of network
- connectivity tools that increasing numbers of people on the Internet
- are coming to rely on. Many users of telnet, rlogin, ftp, and other
- such programs might not realize that their password is transmitted
- across the Internet unencrypted, but it is. OpenSSH encrypts all
- traffic (including passwords) to effectively eliminate eavesdropping,
- connection hijacking, and other network-level attacks. Additionally,
- OpenSSH provides a myriad of secure tunneling capabilities, as well
- as a variety of authentication methods.
-
- http://www.openssh.com/
-
- Depends: openssl
-
-config BR2_PACKAGE_OPENSSH_SERVER
- prompt "openssh-server.................... OpenSSH server"
- tristate
- default m if CONFIG_DEVEL
- select BR2_COMPILE_OPENSSH
- select BR2_PACKAGE_LIBOPENSSL
- select BR2_PACKAGE_ZLIB
- help
- OpenSSH is a FREE version of the SSH protocol suite of network
- connectivity tools that increasing numbers of people on the Internet
- are coming to rely on. Many users of telnet, rlogin, ftp, and other
- such programs might not realize that their password is transmitted
- across the Internet unencrypted, but it is. OpenSSH encrypts all
- traffic (including passwords) to effectively eliminate eavesdropping,
- connection hijacking, and other network-level attacks. Additionally,
- OpenSSH provides a myriad of secure tunneling capabilities, as well
- as a variety of authentication methods.
-
- http://www.openssh.com/
-
- Depends: openssl
-
-config BR2_PACKAGE_OPENSSH_SFTP_CLIENT
- prompt "openssh-sftp-client............... OpenSSH SFTP client"
- tristate
- default m if CONFIG_DEVEL
- select BR2_COMPILE_OPENSSH
- select BR2_PACKAGE_LIBOPENSSL
- select BR2_PACKAGE_ZLIB
- help
- OpenSSH is a FREE version of the SSH protocol suite of network
- connectivity tools that increasing numbers of people on the Internet
- are coming to rely on. Many users of telnet, rlogin, ftp, and other
- such programs might not realize that their password is transmitted
- across the Internet unencrypted, but it is. OpenSSH encrypts all
- traffic (including passwords) to effectively eliminate eavesdropping,
- connection hijacking, and other network-level attacks. Additionally,
- OpenSSH provides a myriad of secure tunneling capabilities, as well
- as a variety of authentication methods.
-
- http://www.openssh.com/
-
- Depends: openssl
-
-
-config BR2_PACKAGE_OPENSSH_SFTP_SERVER
- prompt "openssh-sftp-server............... OpenSSH SFTP server"
- tristate
- default m if CONFIG_DEVEL
- select BR2_COMPILE_OPENSSH
- select BR2_PACKAGE_LIBOPENSSL
- select BR2_PACKAGE_ZLIB
- help
- OpenSSH is a FREE version of the SSH protocol suite of network
- connectivity tools that increasing numbers of people on the Internet
- are coming to rely on. Many users of telnet, rlogin, ftp, and other
- such programs might not realize that their password is transmitted
- across the Internet unencrypted, but it is. OpenSSH encrypts all
- traffic (including passwords) to effectively eliminate eavesdropping,
- connection hijacking, and other network-level attacks. Additionally,
- OpenSSH provides a myriad of secure tunneling capabilities, as well
- as a variety of authentication methods.
-
- http://www.openssh.com/
-
- Depends: openssl
-
-endmenu
diff --git a/openwrt/package/openssh/Makefile b/openwrt/package/openssh/Makefile
deleted file mode 100644
index a720de7b8..000000000
--- a/openwrt/package/openssh/Makefile
+++ /dev/null
@@ -1,126 +0,0 @@
-# $Id$
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=openssh
-PKG_VERSION:=4.2p1
-PKG_RELEASE:=2
-PKG_MD5SUM:=df899194a340c933944b193477c628fa
-
-PKG_SOURCE_URL:=ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \
- ftp://openbsd.wiretapped.net/pub/OpenBSD/OpenSSH/portable/ \
- ftp://ftp.belnet.be/packages/openbsd/OpenSSH/portable/ \
- ftp://ftp.de.openbsd.org/pub/unix/OpenBSD/OpenSSH/portable/
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_CAT:=zcat
-
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
-PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
-
-include $(TOPDIR)/package/rules.mk
-
-PKG_DEPEND:="openssl"
-
-$(eval $(call PKG_template,OPENSSH_CLIENT,openssh-client,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
-$(eval $(call PKG_template,OPENSSH_CLIENT_UTILS,openssh-client-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
-$(eval $(call PKG_template,OPENSSH_SERVER,openssh-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
-$(eval $(call PKG_template,OPENSSH_SFTP_CLIENT,openssh-sftp-client,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
-$(eval $(call PKG_template,OPENSSH_SFTP_SERVER,openssh-sftp-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
-
-$(PKG_BUILD_DIR)/.configured:
- (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
- $(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS)" \
- CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
- LD="$(TARGET_CC)" \
- LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
- ./configure \
- --target=$(GNU_TARGET_NAME) \
- --host=$(GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --program-prefix="" \
- --program-suffix="" \
- --prefix=/usr \
- --exec-prefix=/usr \
- --bindir=/usr/bin \
- --datadir=/usr/share \
- --includedir=/usr/include \
- --infodir=/usr/share/info \
- --libdir=/usr/lib \
- --libexecdir=/usr/lib \
- --localstatedir=/var \
- --mandir=/usr/share/man \
- --sbindir=/usr/sbin \
- --sysconfdir=/etc/ssh \
- $(DISABLE_LARGEFILE) \
- $(DISABLE_NLS) \
- --enable-shared \
- --disable-static \
- --disable-debug \
- --disable-strip \
- --disable-etc-default-login \
- --disable-lastlog \
- --disable-utmp \
- --disable-utmpx \
- --disable-wtmp \
- --disable-wtmpx \
- --without-bsd-auth \
- --without-kerberos5 \
- --without-pam \
- --without-x \
- );
- touch $@
-
-$(PKG_BUILD_DIR)/.built:
- rm -rf $(PKG_INSTALL_DIR)
- mkdir -p $(PKG_INSTALL_DIR)
- $(MAKE) -C $(PKG_BUILD_DIR) \
- DESTDIR="$(PKG_INSTALL_DIR)" \
- all install
- touch $@
-
-$(IPKG_OPENSSH_CLIENT):
- install -m0755 -d $(IDIR_OPENSSH_CLIENT)/etc/ssh
- chmod 0700 $(IDIR_OPENSSH_CLIENT)/etc/ssh
- $(CP) $(PKG_INSTALL_DIR)/etc/ssh/ssh_config $(IDIR_OPENSSH_CLIENT)/etc/ssh/
- install -m0755 -d $(IDIR_OPENSSH_CLIENT)/usr/bin
- $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh $(IDIR_OPENSSH_CLIENT)/usr/bin/
- $(CP) $(PKG_INSTALL_DIR)/usr/bin/scp $(IDIR_OPENSSH_CLIENT)/usr/bin/
- $(RSTRIP) $(IDIR_OPENSSH_CLIENT)
- $(IPKG_BUILD) $(IDIR_OPENSSH_CLIENT) $(PACKAGE_DIR)
-
-$(IPKG_OPENSSH_CLIENT_UTILS):
- install -m0755 -d $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin
- $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh-add $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/
- $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh-agent $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/
- $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh-keyscan $(IDIR_OPENSSH_CLIENT_UTILS)/usr/bin/
- $(RSTRIP) $(IDIR_OPENSSH_CLIENT_UTILS)
- $(IPKG_BUILD) $(IDIR_OPENSSH_CLIENT_UTILS) $(PACKAGE_DIR)
-
-$(IPKG_OPENSSH_SERVER):
- install -m0755 -d $(IDIR_OPENSSH_SERVER)/etc/ssh
- chmod 0700 $(IDIR_OPENSSH_SERVER)/etc/ssh
- $(CP) $(PKG_INSTALL_DIR)/etc/ssh/sshd_config $(IDIR_OPENSSH_SERVER)/etc/ssh/
- install -m0755 -d $(IDIR_OPENSSH_SERVER)/etc/init.d
- install -m0755 ./files/S50sshd $(IDIR_OPENSSH_SERVER)/etc/init.d/
- install -m0755 -d $(IDIR_OPENSSH_SERVER)/usr/bin
- $(CP) $(PKG_INSTALL_DIR)/usr/bin/ssh-keygen $(IDIR_OPENSSH_SERVER)/usr/bin/
- install -m0755 -d $(IDIR_OPENSSH_SERVER)/usr/sbin
- $(CP) $(PKG_INSTALL_DIR)/usr/sbin/sshd $(IDIR_OPENSSH_SERVER)/usr/sbin/
- $(RSTRIP) $(IDIR_OPENSSH_SERVER)
- $(IPKG_BUILD) $(IDIR_OPENSSH_SERVER) $(PACKAGE_DIR)
-
-$(IPKG_OPENSSH_SFTP_CLIENT):
- install -m0755 -d $(IDIR_OPENSSH_SFTP_CLIENT)/usr/bin
- $(CP) $(PKG_INSTALL_DIR)/usr/bin/sftp $(IDIR_OPENSSH_SFTP_CLIENT)/usr/bin/
- $(RSTRIP) $(IDIR_OPENSSH_SFTP_CLIENT)
- $(IPKG_BUILD) $(IDIR_OPENSSH_SFTP_CLIENT) $(PACKAGE_DIR)
-
-$(IPKG_OPENSSH_SFTP_SERVER):
- install -m0755 -d $(IDIR_OPENSSH_SFTP_SERVER)/usr/lib
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/sftp-server $(IDIR_OPENSSH_SFTP_SERVER)/usr/lib/
- install -m0755 -d $(IDIR_OPENSSH_SFTP_SERVER)/usr/libexec
- ln -sf ../lib/sftp-server $(IDIR_OPENSSH_SFTP_SERVER)/usr/libexec/sftp-server
- $(RSTRIP) $(IDIR_OPENSSH_SFTP_SERVER)
- $(IPKG_BUILD) $(IDIR_OPENSSH_SFTP_SERVER) $(PACKAGE_DIR)
-
diff --git a/openwrt/package/openssh/files/S50sshd b/openwrt/package/openssh/files/S50sshd
deleted file mode 100755
index 2ea168394..000000000
--- a/openwrt/package/openssh/files/S50sshd
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-for type in rsa dsa; do {
- # check for keys
- key=/etc/ssh/ssh_host_${type}_key
- [ ! -f $key ] && {
- # generate missing keys
- [ -x /usr/bin/ssh-keygen ] && {
- /usr/bin/ssh-keygen -N '' -t $type -f $key 2>&- >&- && exec $0 $*
- } &
- exit 0
- }
-}; done
-mkdir -p /var/empty
-/usr/sbin/sshd
diff --git a/openwrt/package/openssh/ipkg/openssh-client-utils.control b/openwrt/package/openssh/ipkg/openssh-client-utils.control
deleted file mode 100644
index d34db0ddf..000000000
--- a/openwrt/package/openssh/ipkg/openssh-client-utils.control
+++ /dev/null
@@ -1,5 +0,0 @@
-Package: openssh-client-utils
-Priority: optional
-Section: net
-Depends: zlib, libopenssl
-Description: OpenSSH client utilities
diff --git a/openwrt/package/openssh/ipkg/openssh-client.conffiles b/openwrt/package/openssh/ipkg/openssh-client.conffiles
deleted file mode 100644
index 489e8267f..000000000
--- a/openwrt/package/openssh/ipkg/openssh-client.conffiles
+++ /dev/null
@@ -1 +0,0 @@
-/etc/ssh/ssh_config \ No newline at end of file
diff --git a/openwrt/package/openssh/ipkg/openssh-client.control b/openwrt/package/openssh/ipkg/openssh-client.control
deleted file mode 100644
index 183b7f152..000000000
--- a/openwrt/package/openssh/ipkg/openssh-client.control
+++ /dev/null
@@ -1,5 +0,0 @@
-Package: openssh-client
-Priority: optional
-Section: net
-Depends: zlib, libopenssl
-Description: OpenSSH client
diff --git a/openwrt/package/openssh/ipkg/openssh-server.conffiles b/openwrt/package/openssh/ipkg/openssh-server.conffiles
deleted file mode 100644
index 6f0cfbcbe..000000000
--- a/openwrt/package/openssh/ipkg/openssh-server.conffiles
+++ /dev/null
@@ -1 +0,0 @@
-/etc/ssh/sshd_config \ No newline at end of file
diff --git a/openwrt/package/openssh/ipkg/openssh-server.control b/openwrt/package/openssh/ipkg/openssh-server.control
deleted file mode 100644
index d070f732d..000000000
--- a/openwrt/package/openssh/ipkg/openssh-server.control
+++ /dev/null
@@ -1,5 +0,0 @@
-Package: openssh-server
-Priority: optional
-Section: net
-Depends: zlib, libopenssl
-Description: OpenSSH server
diff --git a/openwrt/package/openssh/ipkg/openssh-server.postinst b/openwrt/package/openssh/ipkg/openssh-server.postinst
deleted file mode 100644
index b6e167f69..000000000
--- a/openwrt/package/openssh/ipkg/openssh-server.postinst
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh
-
-name=sshd
-id=99
-
-# do not change below
-# check if we are on real system
-if [ -z "${IPKG_INSTROOT}" ]; then
- # create copies of passwd and group, if we use squashfs
- rootfs=`mount |awk '/root/ { print $5 }'`
- if [ "$rootfs" = "squashfs" ]; then
- if [ -h /etc/group ]; then
- rm /etc/group
- cp /rom/etc/group /etc/group
- fi
- if [ -h /etc/passwd ]; then
- rm /etc/passwd
- cp /rom/etc/passwd /etc/passwd
- fi
- fi
-fi
-
-echo ""
-if [ -z "$(grep ^\\${name}: ${IPKG_INSTROOT}/etc/group)" ]; then
- echo "adding group $name to /etc/group"
- echo "${name}:x:${id}:" >> ${IPKG_INSTROOT}/etc/group
-fi
-
-if [ -z "$(grep ^\\${name}: ${IPKG_INSTROOT}/etc/passwd)" ]; then
- echo "adding user $name to /etc/passwd"
- echo "${name}:x:${id}:${id}:${name}:/var/empty/.${name}:/bin/false" >> ${IPKG_INSTROOT}/etc/passwd
-fi
diff --git a/openwrt/package/openssh/ipkg/openssh-sftp-client.control b/openwrt/package/openssh/ipkg/openssh-sftp-client.control
deleted file mode 100644
index 705a3854a..000000000
--- a/openwrt/package/openssh/ipkg/openssh-sftp-client.control
+++ /dev/null
@@ -1,5 +0,0 @@
-Package: openssh-sftp-client
-Priority: optional
-Section: net
-Depends: zlib, libopenssl
-Description: OpenSSH SFTP client
diff --git a/openwrt/package/openssh/ipkg/openssh-sftp-server.control b/openwrt/package/openssh/ipkg/openssh-sftp-server.control
deleted file mode 100644
index 8c17fcc5b..000000000
--- a/openwrt/package/openssh/ipkg/openssh-sftp-server.control
+++ /dev/null
@@ -1,5 +0,0 @@
-Package: openssh-sftp-server
-Priority: optional
-Section: net
-Depends: zlib, libopenssl
-Description: OpenSSH SFTP server
diff --git a/openwrt/package/openssh/patches/100-openssl-cipher.patch b/openwrt/package/openssh/patches/100-openssl-cipher.patch
deleted file mode 100644
index f8eb177c2..000000000
--- a/openwrt/package/openssh/patches/100-openssl-cipher.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -Nur openssh-4.2p1/cipher.c openssh-4.2p1.patched/cipher.c
---- openssh-4.2p1/cipher.c 2005-07-17 09:02:10.000000000 +0200
-+++ openssh-4.2p1.patched/cipher.c 2006-03-26 12:43:41.000000000 +0200
-@@ -67,7 +67,6 @@
-
- { "3des-cbc", SSH_CIPHER_SSH2, 8, 24, 0, EVP_des_ede3_cbc },
- { "blowfish-cbc", SSH_CIPHER_SSH2, 8, 16, 0, EVP_bf_cbc },
-- { "cast128-cbc", SSH_CIPHER_SSH2, 8, 16, 0, EVP_cast5_cbc },
- { "arcfour", SSH_CIPHER_SSH2, 8, 16, 0, EVP_rc4 },
- { "arcfour128", SSH_CIPHER_SSH2, 8, 16, 1536, EVP_rc4 },
- { "arcfour256", SSH_CIPHER_SSH2, 8, 32, 1536, EVP_rc4 },
diff --git a/openwrt/package/openssh/patches/cross-compile.patch b/openwrt/package/openssh/patches/cross-compile.patch
deleted file mode 100644
index 7178e32ac..000000000
--- a/openwrt/package/openssh/patches/cross-compile.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-diff -Nur openssh-4.0p1/configure openssh-4.0p1.patched/configure
---- openssh-4.0p1/configure 2005-03-09 05:54:16.000000000 +0100
-+++ openssh-4.0p1.patched/configure 2005-06-02 13:35:06.000000000 +0200
-@@ -5524,7 +5524,7 @@
- *-*-linux*)
- no_dev_ptmx=1
- check_for_libcrypt_later=1
-- check_for_openpty_ctty_bug=1
-+ check_for_openpty_ctty_bug=0
- cat >>confdefs.h <<\_ACEOF
- #define DONT_TRY_OTHER_AF 1
- _ACEOF
-@@ -12810,90 +12810,6 @@
- fi
- fi
-
--if test ! -z "$check_for_openpty_ctty_bug"; then
-- echo "$as_me:$LINENO: checking if openpty correctly handles controlling tty" >&5
--echo $ECHO_N "checking if openpty correctly handles controlling tty... $ECHO_C" >&6
-- if test "$cross_compiling" = yes; then
-- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
--See \`config.log' for more details." >&5
--echo "$as_me: error: cannot run test program while cross compiling
--See \`config.log' for more details." >&2;}
-- { (exit 1); exit 1; }; }
--else
-- cat >conftest.$ac_ext <<_ACEOF
--/* confdefs.h. */
--_ACEOF
--cat confdefs.h >>conftest.$ac_ext
--cat >>conftest.$ac_ext <<_ACEOF
--/* end confdefs.h. */
--
--#include <stdio.h>
--#include <sys/fcntl.h>
--#include <sys/types.h>
--#include <sys/wait.h>
--
--int
--main()
--{
-- pid_t pid;
-- int fd, ptyfd, ttyfd, status;
--
-- pid = fork();
-- if (pid < 0) { /* failed */
-- exit(1);
-- } else if (pid > 0) { /* parent */
-- waitpid(pid, &status, 0);
-- if (WIFEXITED(status))
-- exit(WEXITSTATUS(status));
-- else
-- exit(2);
-- } else { /* child */
-- close(0); close(1); close(2);
-- setsid();
-- openpty(&ptyfd, &ttyfd, NULL, NULL, NULL);
-- fd = open("/dev/tty", O_RDWR | O_NOCTTY);
-- if (fd >= 0)
-- exit(3); /* Acquired ctty: broken */
-- else
-- exit(0); /* Did not acquire ctty: OK */
-- }
--}
--
--_ACEOF
--rm -f conftest$ac_exeext
--if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
-- (eval $ac_link) 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
-- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-- (eval $ac_try) 2>&5
-- ac_status=$?
-- echo "$as_me:$LINENO: \$? = $ac_status" >&5
-- (exit $ac_status); }; }; then
--
-- echo "$as_me:$LINENO: result: yes" >&5
--echo "${ECHO_T}yes" >&6
--
--else
-- echo "$as_me: program exited with status $ac_status" >&5
--echo "$as_me: failed program was:" >&5
--sed 's/^/| /' conftest.$ac_ext >&5
--
--( exit $ac_status )
--
-- echo "$as_me:$LINENO: result: no" >&5
--echo "${ECHO_T}no" >&6
-- cat >>confdefs.h <<\_ACEOF
--#define SSHD_ACQUIRES_CTTY 1
--_ACEOF
--
--
--
--fi
--rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
--fi
--fi
-
- if test "x$ac_cv_func_getaddrinfo" = "xyes" -a "x$check_for_hpux_broken_getaddrinfo" = "x1"; then
- echo "$as_me:$LINENO: checking if getaddrinfo seems to work" >&5