Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssh Updated custom makefiles for Ope...



details:   https://anonhg.NetBSD.org/src/rev/6b1b3f3f00f3
branches:  trunk
changeset: 758930:6b1b3f3f00f3
user:      adam <adam%NetBSD.org@localhost>
date:      Sun Nov 21 19:19:21 2010 +0000

description:
Updated custom makefiles for OpenSSH 5.6

diffstat:

 crypto/external/bsd/openssh/Makefile.inc                   |  11 ++++++-
 crypto/external/bsd/openssh/bin/Makefile                   |   5 +--
 crypto/external/bsd/openssh/bin/sftp/Makefile              |   7 ++--
 crypto/external/bsd/openssh/bin/ssh-agent/Makefile         |   4 +-
 crypto/external/bsd/openssh/bin/ssh-keygen/Makefile        |   6 +++-
 crypto/external/bsd/openssh/bin/ssh-pkcs11-helper/Makefile |  11 +++++++
 crypto/external/bsd/openssh/bin/ssh/Makefile               |   7 ++--
 crypto/external/bsd/openssh/bin/sshd/Makefile              |  21 ++++++++++----
 crypto/external/bsd/openssh/lib/Makefile                   |  19 ++++++------
 crypto/external/bsd/openssh/lib/shlib_version              |   4 +-
 10 files changed, 64 insertions(+), 31 deletions(-)

diffs (258 lines):

diff -r 41b979e0848c -r 6b1b3f3f00f3 crypto/external/bsd/openssh/Makefile.inc
--- a/crypto/external/bsd/openssh/Makefile.inc  Sun Nov 21 19:11:09 2010 +0000
+++ b/crypto/external/bsd/openssh/Makefile.inc  Sun Nov 21 19:19:21 2010 +0000
@@ -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
diff -r 41b979e0848c -r 6b1b3f3f00f3 crypto/external/bsd/openssh/bin/Makefile
--- a/crypto/external/bsd/openssh/bin/Makefile  Sun Nov 21 19:11:09 2010 +0000
+++ b/crypto/external/bsd/openssh/bin/Makefile  Sun Nov 21 19:19:21 2010 +0000
@@ -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
diff -r 41b979e0848c -r 6b1b3f3f00f3 crypto/external/bsd/openssh/bin/sftp/Makefile
--- a/crypto/external/bsd/openssh/bin/sftp/Makefile     Sun Nov 21 19:11:09 2010 +0000
+++ b/crypto/external/bsd/openssh/bin/sftp/Makefile     Sun Nov 21 19:19:21 2010 +0000
@@ -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
diff -r 41b979e0848c -r 6b1b3f3f00f3 crypto/external/bsd/openssh/bin/ssh-agent/Makefile
--- a/crypto/external/bsd/openssh/bin/ssh-agent/Makefile        Sun Nov 21 19:11:09 2010 +0000
+++ b/crypto/external/bsd/openssh/bin/ssh-agent/Makefile        Sun Nov 21 19:19:21 2010 +0000
@@ -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>
diff -r 41b979e0848c -r 6b1b3f3f00f3 crypto/external/bsd/openssh/bin/ssh-keygen/Makefile
--- a/crypto/external/bsd/openssh/bin/ssh-keygen/Makefile       Sun Nov 21 19:11:09 2010 +0000
+++ b/crypto/external/bsd/openssh/bin/ssh-keygen/Makefile       Sun Nov 21 19:19:21 2010 +0000
@@ -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
diff -r 41b979e0848c -r 6b1b3f3f00f3 crypto/external/bsd/openssh/bin/ssh-pkcs11-helper/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/crypto/external/bsd/openssh/bin/ssh-pkcs11-helper/Makefile        Sun Nov 21 19:19:21 2010 +0000
@@ -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>
diff -r 41b979e0848c -r 6b1b3f3f00f3 crypto/external/bsd/openssh/bin/ssh/Makefile
--- a/crypto/external/bsd/openssh/bin/ssh/Makefile      Sun Nov 21 19:11:09 2010 +0000
+++ b/crypto/external/bsd/openssh/bin/ssh/Makefile      Sun Nov 21 19:19:21 2010 +0000
@@ -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
diff -r 41b979e0848c -r 6b1b3f3f00f3 crypto/external/bsd/openssh/bin/sshd/Makefile
--- a/crypto/external/bsd/openssh/bin/sshd/Makefile     Sun Nov 21 19:11:09 2010 +0000
+++ b/crypto/external/bsd/openssh/bin/sshd/Makefile     Sun Nov 21 19:19:21 2010 +0000
@@ -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
diff -r 41b979e0848c -r 6b1b3f3f00f3 crypto/external/bsd/openssh/lib/Makefile
--- a/crypto/external/bsd/openssh/lib/Makefile  Sun Nov 21 19:11:09 2010 +0000
+++ b/crypto/external/bsd/openssh/lib/Makefile  Sun Nov 21 19:19:21 2010 +0000
@@ -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
diff -r 41b979e0848c -r 6b1b3f3f00f3 crypto/external/bsd/openssh/lib/shlib_version
--- a/crypto/external/bsd/openssh/lib/shlib_version     Sun Nov 21 19:11:09 2010 +0000
+++ b/crypto/external/bsd/openssh/lib/shlib_version     Sun Nov 21 19:19:21 2010 +0000
@@ -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



Home | Main Index | Thread Index | Old Index