Module Name: src Committed By: adam Date: Sun Nov 21 19:19:23 UTC 2010
Modified Files: src/crypto/external/bsd/openssh: Makefile.inc src/crypto/external/bsd/openssh/bin: Makefile src/crypto/external/bsd/openssh/bin/sftp: Makefile src/crypto/external/bsd/openssh/bin/ssh: Makefile src/crypto/external/bsd/openssh/bin/ssh-agent: Makefile src/crypto/external/bsd/openssh/bin/ssh-keygen: Makefile src/crypto/external/bsd/openssh/bin/sshd: Makefile src/crypto/external/bsd/openssh/lib: Makefile shlib_version Added Files: src/crypto/external/bsd/openssh/bin/ssh-pkcs11-helper: Makefile Log Message: Updated custom makefiles for OpenSSH 5.6 To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/crypto/external/bsd/openssh/Makefile.inc cvs rdiff -u -r1.2 -r1.3 src/crypto/external/bsd/openssh/bin/Makefile cvs rdiff -u -r1.2 -r1.3 src/crypto/external/bsd/openssh/bin/sftp/Makefile cvs rdiff -u -r1.1 -r1.2 src/crypto/external/bsd/openssh/bin/ssh/Makefile cvs rdiff -u -r1.1 -r1.2 \ src/crypto/external/bsd/openssh/bin/ssh-agent/Makefile cvs rdiff -u -r1.1 -r1.2 \ src/crypto/external/bsd/openssh/bin/ssh-keygen/Makefile cvs rdiff -u -r0 -r1.1 \ src/crypto/external/bsd/openssh/bin/ssh-pkcs11-helper/Makefile cvs rdiff -u -r1.1 -r1.2 src/crypto/external/bsd/openssh/bin/sshd/Makefile cvs rdiff -u -r1.4 -r1.5 src/crypto/external/bsd/openssh/lib/Makefile cvs rdiff -u -r1.3 -r1.4 src/crypto/external/bsd/openssh/lib/shlib_version Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/external/bsd/openssh/Makefile.inc diff -u src/crypto/external/bsd/openssh/Makefile.inc:1.1 src/crypto/external/bsd/openssh/Makefile.inc:1.2 --- src/crypto/external/bsd/openssh/Makefile.inc:1.1 Sat Dec 19 18:00:26 2009 +++ src/crypto/external/bsd/openssh/Makefile.inc Sun Nov 21 19:19:21 2010 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.inc,v 1.1 2009/12/19 18:00:26 christos Exp $ +# $NetBSD: Makefile.inc,v 1.2 2010/11/21 19:19:21 adam Exp $ WARNS?= 1 # XXX -Wshadow -Wcast-qual @@ -8,7 +8,10 @@ SSHDIST?= ${NETBSDSRCDIR}/crypto/external/bsd/openssh/dist -CPPFLAGS+=-I${SSHDIST} -DHAVE_LOGIN_CAP -DHAVE_MMAP -DHAVE_OPENPTY +CPPFLAGS+=-I${SSHDIST} -DHAVE_LOGIN_CAP -DHAVE_MMAP -DHAVE_OPENPTY -DENABLE_PKCS11 +.if !defined(NOPIC) +CPPFLAGS+=-DHAVE_DLOPEN +.endif .PATH: ${SSHDIST} .if (${USE_PAM} != "no") @@ -24,6 +27,10 @@ CPPFLAGS+=-DKRB5 -I${DESTDIR}/usr/include/krb5 -DHEIMDAL .endif +.if (${USE_LDAP} != "no") +CPPFLAGS+=-DWITH_LDAP_PUBKEY +.endif + .if ${X11FLAVOUR} == "Xorg" CPPFLAGS+=-DX11BASE=\"/usr/X11R7\" .endif Index: src/crypto/external/bsd/openssh/bin/Makefile diff -u src/crypto/external/bsd/openssh/bin/Makefile:1.2 src/crypto/external/bsd/openssh/bin/Makefile:1.3 --- src/crypto/external/bsd/openssh/bin/Makefile:1.2 Tue Jul 21 00:47:23 2009 +++ src/crypto/external/bsd/openssh/bin/Makefile Sun Nov 21 19:19:21 2010 @@ -1,12 +1,11 @@ -# $NetBSD: Makefile,v 1.2 2009/07/21 00:47:23 mrg Exp $ +# $NetBSD: Makefile,v 1.3 2010/11/21 19:19:21 adam Exp $ .include <bsd.own.mk> SSHDIST?= ${NETBSDSRCDIR}/crypto/external/bsd/openssh/dist SUBDIR= ssh sshd ssh-add ssh-keygen ssh-agent scp sftp-server \ - ssh-keysign ssh-keyscan sftp -#SUBDIR+=scard + ssh-keysign ssh-keyscan sftp ssh-pkcs11-helper .PATH: ${SSHDIST} .MADE: moduli Index: src/crypto/external/bsd/openssh/bin/sftp/Makefile diff -u src/crypto/external/bsd/openssh/bin/sftp/Makefile:1.2 src/crypto/external/bsd/openssh/bin/sftp/Makefile:1.3 --- src/crypto/external/bsd/openssh/bin/sftp/Makefile:1.2 Wed Feb 3 15:34:37 2010 +++ src/crypto/external/bsd/openssh/bin/sftp/Makefile Sun Nov 21 19:19:22 2010 @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.2 2010/02/03 15:34:37 roy Exp $ +# $NetBSD: Makefile,v 1.3 2010/11/21 19:19:22 adam Exp $ BINDIR= /usr/bin PROG= sftp -SRCS= sftp.c sftp-client.c sftp-common.c sftp-glob.c misc.c fmt_scaled.c +SRCS= sftp.c sftp-client.c sftp-common.c sftp-glob.c MAN= sftp.1 LDADD+= -ledit -lterminfo @@ -12,5 +12,6 @@ .include <bsd.prog.mk> .if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) -COPTS.sftp-client.c+= -Wno-pointer-sign +COPTS.sftp.c+= -Wno-pointer-sign +COPTS.sftp-client.c+= -Wno-pointer-sign .endif Index: src/crypto/external/bsd/openssh/bin/ssh/Makefile diff -u src/crypto/external/bsd/openssh/bin/ssh/Makefile:1.1 src/crypto/external/bsd/openssh/bin/ssh/Makefile:1.2 --- src/crypto/external/bsd/openssh/bin/ssh/Makefile:1.1 Sun Jun 7 22:38:45 2009 +++ src/crypto/external/bsd/openssh/bin/ssh/Makefile Sun Nov 21 19:19:22 2010 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2009/06/07 22:38:45 christos Exp $ +# $NetBSD: Makefile,v 1.2 2010/11/21 19:19:22 adam Exp $ .include <bsd.own.mk> @@ -6,10 +6,12 @@ PROG= ssh SRCS= ssh.c readconf.c clientloop.c sshtty.c \ - sshconnect.c sshconnect1.c sshconnect2.c mux.c + sshconnect.c sshconnect1.c sshconnect2.c mux.c \ + roaming_client.c COPTS.sshconnect1.c= -fno-strict-aliasing .if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) +COPTS.mux.c= -Wno-pointer-sign COPTS.sshconnect2.c= -Wno-pointer-sign .endif @@ -18,7 +20,6 @@ MLINKS= ssh.1 slogin.1 .if (${USE_KERBEROS} != "no") - # this is not entirely true, libgssapi might be independent of krb5 SRCS += gss-genr.c LDADD+= -lgssapi -lheimntlm Index: src/crypto/external/bsd/openssh/bin/ssh-agent/Makefile diff -u src/crypto/external/bsd/openssh/bin/ssh-agent/Makefile:1.1 src/crypto/external/bsd/openssh/bin/ssh-agent/Makefile:1.2 --- src/crypto/external/bsd/openssh/bin/ssh-agent/Makefile:1.1 Sun Jun 7 22:38:45 2009 +++ src/crypto/external/bsd/openssh/bin/ssh-agent/Makefile Sun Nov 21 19:19:22 2010 @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.1 2009/06/07 22:38:45 christos Exp $ +# $NetBSD: Makefile,v 1.2 2010/11/21 19:19:22 adam Exp $ BINDIR=/usr/bin PROG= ssh-agent -SRCS= ssh-agent.c +SRCS= ssh-agent.c ssh-pkcs11-client.c .include <bsd.prog.mk> Index: src/crypto/external/bsd/openssh/bin/ssh-keygen/Makefile diff -u src/crypto/external/bsd/openssh/bin/ssh-keygen/Makefile:1.1 src/crypto/external/bsd/openssh/bin/ssh-keygen/Makefile:1.2 --- src/crypto/external/bsd/openssh/bin/ssh-keygen/Makefile:1.1 Sun Jun 7 22:38:45 2009 +++ src/crypto/external/bsd/openssh/bin/ssh-keygen/Makefile Sun Nov 21 19:19:22 2010 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2009/06/07 22:38:45 christos Exp $ +# $NetBSD: Makefile,v 1.2 2010/11/21 19:19:22 adam Exp $ BINDIR= /usr/bin @@ -6,3 +6,7 @@ SRCS= ssh-keygen.c moduli.c .include <bsd.prog.mk> + +.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) +COPTS.ssh-keygen.c= -Wno-pointer-sign +.endif Index: src/crypto/external/bsd/openssh/bin/sshd/Makefile diff -u src/crypto/external/bsd/openssh/bin/sshd/Makefile:1.1 src/crypto/external/bsd/openssh/bin/sshd/Makefile:1.2 --- src/crypto/external/bsd/openssh/bin/sshd/Makefile:1.1 Sun Jun 7 22:38:46 2009 +++ src/crypto/external/bsd/openssh/bin/sshd/Makefile Sun Nov 21 19:19:23 2010 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2009/06/07 22:38:46 christos Exp $ +# $NetBSD: Makefile,v 1.2 2010/11/21 19:19:23 adam Exp $ .include <bsd.own.mk> @@ -8,16 +8,20 @@ BINDIR= /usr/sbin SRCS= sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \ - sshpty.c sshlogin.c servconf.c serverloop.c uidswap.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 \ - kexdhs.c kexgexs.c sftp-server.c sftp-common.c + kexdhs.c kexgexs.c sftp-server.c sftp-common.c auth2-jpake.c + +.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) +COPTS.auth-options.c= -Wno-pointer-sign +.endif .if (${USE_PAM} != "no") -SRCS+= auth-pam.c +SRCS+= auth-pam.c LDADD+= -lpam ${PAM_STATIC_LDADD} DPADD+= ${LIBPAM} ${PAM_STATIC_DPADD} @@ -36,8 +40,7 @@ .endif # USE_PAM == no .if (${USE_KERBEROS} != "no") - -SRCS += gss-genr.c auth2-gss.c gss-serv.c gss-serv-krb5.c +SRCS+= gss-genr.c auth2-gss.c gss-serv.c gss-serv-krb5.c LDADD+= -lgssapi -lheimntlm DPADD+= ${LIBGSSAPI} ${LIBHEIMNTLM} @@ -52,6 +55,12 @@ DPADD+= ${LIBCOM_ERR} ${LIBROKEN} .endif +.if (${USE_LDAP} != "no") +SRCS+= ldapauth.c +LDADD+= -lldap +DPADD+= ${LIBLDAP} +.endif + .include <bsd.prog.mk> LDADD+= -lcrypt -lutil Index: src/crypto/external/bsd/openssh/lib/Makefile diff -u src/crypto/external/bsd/openssh/lib/Makefile:1.4 src/crypto/external/bsd/openssh/lib/Makefile:1.5 --- src/crypto/external/bsd/openssh/lib/Makefile:1.4 Sun Dec 27 01:40:47 2009 +++ src/crypto/external/bsd/openssh/lib/Makefile Sun Nov 21 19:19:23 2010 @@ -1,19 +1,20 @@ -# $NetBSD: Makefile,v 1.4 2009/12/27 01:40:47 christos Exp $ +# $NetBSD: Makefile,v 1.5 2010/11/21 19:19:23 adam Exp $ .include <bsd.own.mk> LIB= ssh SRCS= authfd.c authfile.c bufaux.c bufbn.c buffer.c canohost.c channels.c \ - cipher.c cipher-3des1.c cipher-ctr.c cipher-ctr-mt.c cipher-bf1.c \ - cleanup.c compat.c compress.c crc32.c deattack.c dns.c fatal.c \ + cipher.c cipher-3des1.c cipher-bf1.c cipher-ctr.c \ + cleanup.c compat.c compress.c crc32.c deattack.c fatal.c \ hostfile.c log.c match.c nchan.c packet.c readpass.c \ - rsa.c strtonum.c ttymodes.c xmalloc.c atomicio.c \ - key.c dispatch.c kex.c mac.c uuencode.c misc.c \ + rsa.c ttymodes.c xmalloc.c atomicio.c \ + key.c dispatch.c kex.c mac.c uidswap.c uuencode.c misc.c \ ssh-dss.c ssh-rsa.c dh.c kexdh.c kexgex.c \ - kexdhc.c kexgexc.c scard.c msg.c progressmeter.c \ - monitor_fdpass.c uidswap.c addrmatch.c roaming_common.c + kexdhc.c kexgexc.c msg.c progressmeter.c dns.c \ + monitor_fdpass.c addrmatch.c schnorr.c jpake.c ssh-pkcs11.c \ + roaming_common.c # umac.c -SRCS+= random.c +SRCS+= fmt_scaled.c random.c strtonum.c SRCS+= readpassphrase.c getpeereid.c getrrsetbyname.c COPTS.monitor_fdpass.c = -Wno-stack-protector @@ -28,7 +29,7 @@ z ${NETBSDSRCDIR}/lib/libz .if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC) -.for f in dns channels hostfile +.for f in dns channels hostfile roaming_common ssh-pkcs11 COPTS.${f}.c+= -Wno-pointer-sign .endfor .endif Index: src/crypto/external/bsd/openssh/lib/shlib_version diff -u src/crypto/external/bsd/openssh/lib/shlib_version:1.3 src/crypto/external/bsd/openssh/lib/shlib_version:1.4 --- src/crypto/external/bsd/openssh/lib/shlib_version:1.3 Sun Dec 27 01:40:47 2009 +++ src/crypto/external/bsd/openssh/lib/shlib_version Sun Nov 21 19:19:23 2010 @@ -1,5 +1,5 @@ -# $NetBSD: shlib_version,v 1.3 2009/12/27 01:40:47 christos Exp $ +# $NetBSD: shlib_version,v 1.4 2010/11/21 19:19:23 adam Exp $ # Remember to update distrib/sets/lists/base/shl.* when changing # major=15 -minor=0 +minor=1 Added files: Index: src/crypto/external/bsd/openssh/bin/ssh-pkcs11-helper/Makefile diff -u /dev/null src/crypto/external/bsd/openssh/bin/ssh-pkcs11-helper/Makefile:1.1 --- /dev/null Sun Nov 21 19:19:23 2010 +++ src/crypto/external/bsd/openssh/bin/ssh-pkcs11-helper/Makefile Sun Nov 21 19:19:22 2010 @@ -0,0 +1,11 @@ +# $NetBSD: Makefile,v 1.1 2010/11/21 19:19:22 adam Exp $ + +BINOWN= root +BINMODE=555 +BINDIR= /usr/libexec + +PROG= ssh-pkcs11-helper +SRCS= ssh-pkcs11-helper.c +MAN= ssh-pkcs11-helper.8 + +.include <bsd.prog.mk>