summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-06-04 13:30:36 -0700
committerMichael Forney <mforney@mforney.org>2016-06-04 13:30:36 -0700
commit7bfa28f6f19790b5d67860b06c5f9ba64b9fa488 (patch)
tree66699c122d721a331e33cc826918915434cd11cb /core
parenta7ef9b40add8eee7154d398753f1bcdfbc751cb5 (diff)
openssh: Build sshd
Diffstat (limited to 'core')
-rw-r--r--core/openssh/config.h17
-rw-r--r--core/openssh/gen.rc25
2 files changed, 37 insertions, 5 deletions
diff --git a/core/openssh/config.h b/core/openssh/config.h
index a6b0dfdd..5c665db2 100644
--- a/core/openssh/config.h
+++ b/core/openssh/config.h
@@ -1,5 +1,17 @@
#include <config-posix.h>
+#define ASKPASS_PROGRAM "/bin/ssh-askpass"
+#define LOGIN_PROGRAM "/bin/login"
+#define _PATH_BTMP "/var/log/btmp"
+#define _PATH_PASSWD_PROG "/bin/passwd"
+#define _PATH_SFTP_SERVER "/libexec/sftp-server"
+#define _PATH_SSH_ASKPASS_DEFAULT "/bin/ssh-askpass"
+#define _PATH_SSH_KEY_SIGN "/libexec/ssh-keysign"
+#define _PATH_SSH_PIDDIR "/run"
+#define _PATH_SSH_PKCS11_HELPER "/libexec/ssh-pkcs11-helper"
+#define _PATH_SSH_PROGRAM "/bin/ssh"
+#define _PATH_XAUTH "/dev/null/xauth"
+
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* #undef AIX_GETNAMEINFO_HACK */
/* #undef AIX_LOGINFAILED_4ARG */
@@ -61,7 +73,7 @@
#define HAVE_ADDR_V6_IN_UTMPX 1
#define HAVE_ARC4RANDOM 1
#define HAVE_ARC4RANDOM_BUF 1
-#define HAVE_ARC4RANDOM_STIR 1
+/* #undef HAVE_ARC4RANDOM_STIR */
#define HAVE_ARC4RANDOM_UNIFORM 1
#define HAVE_ASPRINTF 1
/* #undef HAVE_ATTRIBUTE__BOUNDED__ */
@@ -459,9 +471,6 @@
#endif
/* #undef _FILE_OFFSET_BITS */
/* #undef _LARGE_FILES */
-#define _PATH_BTMP "/var/log/btmp"
-#define _PATH_PASSWD_PROG "/bin/passwd"
-#define _PATH_SSH_PIDDIR "/var/run"
/* #undef __res_state */
#ifndef __cplusplus
/* #undef inline */
diff --git a/core/openssh/gen.rc b/core/openssh/gen.rc
index 2f6b567d..a51c08f2 100644
--- a/core/openssh/gen.rc
+++ b/core/openssh/gen.rc
@@ -73,6 +73,29 @@ exe ssh\
core/openbsd/libbsd.a\
core/zlib/libz.a\
)
-
file bin/ssh '$outdir'/ssh 755
file share/man/man1/ssh.1 '$srcdir'/ssh.1 644
+
+exe sshd\
+ sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c\
+ audit.c audit-bsm.c audit-linux.c platform.c\
+ sshpty.c sshlogin.c servconf.c serverloop.c\
+ auth.c auth1.c auth2.c auth-options.c session.c\
+ auth-chall.c auth2-chall.c groupaccess.c\
+ auth-skey.c auth-bsdauth.c auth2-hostbased.c auth2-kbdint.c\
+ auth2-none.c auth2-passwd.c auth2-pubkey.c\
+ monitor_mm.c monitor.c monitor_wrap.c auth-krb5.c\
+ auth2-gss.c gss-serv.c gss-serv-krb5.c\
+ loginrec.c auth-pam.c auth-shadow.c auth-sia.c md5crypt.c\
+ sftp-server.c sftp-common.c\
+ sandbox-null.c sandbox-rlimit.c sandbox-systrace.c sandbox-darwin.c\
+ sandbox-seccomp-filter.c sandbox-capsicum.c sandbox-pledge.c\
+ sandbox-solaris.c\
+ libssh.a libopenbsd-compat.a\
+ '$builddir'/^(\
+ core/libressl/^(libssl.a libcrypto.a)\
+ core/openbsd/libbsd.a\
+ core/zlib/libz.a\
+ )
+file bin/sshd '$outdir'/sshd 755
+file share/man/man8/sshd.8 '$srcdir'/sshd.8 644