summaryrefslogtreecommitdiff
path: root/data/openssh
diff options
context:
space:
mode:
Diffstat (limited to 'data/openssh')
-rw-r--r--data/openssh/dirent.diff29
-rw-r--r--data/openssh/make.sh2
-rw-r--r--data/openssh/sshd_config4
3 files changed, 33 insertions, 2 deletions
diff --git a/data/openssh/dirent.diff b/data/openssh/dirent.diff
new file mode 100644
index 000000000..3808d5073
--- /dev/null
+++ b/data/openssh/dirent.diff
@@ -0,0 +1,29 @@
+diff -ru openssh-4.7p1/configure.ac openssh-4.7p1+iPhone/configure.ac
+--- openssh-4.7p1/configure.ac 2007-08-10 04:36:12.000000000 +0000
++++ openssh-4.7p1+iPhone/configure.ac 2008-02-09 09:58:08.000000000 +0000
+@@ -1023,24 +1023,7 @@
+ AC_CHECK_DECLS(GLOB_NOMATCH, , , [#include <glob.h>])
+
+ AC_MSG_CHECKING([whether struct dirent allocates space for d_name])
+-AC_RUN_IFELSE(
+- [AC_LANG_SOURCE([[
+-#include <sys/types.h>
+-#include <dirent.h>
+-int main(void){struct dirent d;exit(sizeof(d.d_name)<=sizeof(char));}
+- ]])],
+- [AC_MSG_RESULT(yes)],
+- [
+- AC_MSG_RESULT(no)
+- AC_DEFINE(BROKEN_ONE_BYTE_DIRENT_D_NAME, 1,
+- [Define if your struct dirent expects you to
+- allocate extra space for d_name])
+- ],
+- [
+- AC_MSG_WARN([cross compiling: assuming BROKEN_ONE_BYTE_DIRENT_D_NAME])
+- AC_DEFINE(BROKEN_ONE_BYTE_DIRENT_D_NAME)
+- ]
+-)
++AC_MSG_RESULT(yes)
+
+ AC_MSG_CHECKING([for /proc/pid/fd directory])
+ if test -d "/proc/$$/fd" ; then
diff --git a/data/openssh/make.sh b/data/openssh/make.sh
index 6b93f1a83..e56d762e0 100644
--- a/data/openssh/make.sh
+++ b/data/openssh/make.sh
@@ -1,5 +1,7 @@
pkg:extract
cd *
+pkg:patch
+autoconf
pkg:configure --disable-strip --sysconfdir=/etc/ssh
make
pkg:install INSTALL_SSH_RAND_HELPER=yes
diff --git a/data/openssh/sshd_config b/data/openssh/sshd_config
index 1da855090..41edb7d47 100644
--- a/data/openssh/sshd_config
+++ b/data/openssh/sshd_config
@@ -85,8 +85,8 @@ HostKey /etc/ssh/ssh_host_dsa_key
#UsePAM no
#AllowTcpForwarding yes
-#GatewayPorts no
-#X11Forwarding no
+GatewayPorts clientspecified
+X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes