pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/openssh Fix up OpenSSH sources to allow build...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/def0c29c051b
branches:  trunk
changeset: 474378:def0c29c051b
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Apr 28 04:00:17 2004 +0000

description:
Fix up OpenSSH sources to allow building with S/Key support on NetBSD as
well.  Bump the PKGREVISION.

XXX The right fix is to create a autoconf check for the number of args
XXX that skeychallenge takes and do the right thing accordingly.

diffstat:

 security/openssh/Makefile         |  19 ++++++++++---------
 security/openssh/distinfo         |   5 ++++-
 security/openssh/patches/patch-aq |  15 +++++++++++++++
 security/openssh/patches/patch-ar |  13 +++++++++++++
 security/openssh/patches/patch-as |  13 +++++++++++++
 5 files changed, 55 insertions(+), 10 deletions(-)

diffs (107 lines):

diff -r afa0520dbdbd -r def0c29c051b security/openssh/Makefile
--- a/security/openssh/Makefile Wed Apr 28 03:54:08 2004 +0000
+++ b/security/openssh/Makefile Wed Apr 28 04:00:17 2004 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.132 2004/04/28 03:54:08 jlam Exp $
+# $NetBSD: Makefile,v 1.133 2004/04/28 04:00:17 jlam Exp $
 
 DISTNAME=              openssh-3.8p1
 PKGNAME=               openssh-3.8.1
-PKGREVISION=           2
+PKGREVISION=           3
 SVR4_PKGNAME=          ossh
 CATEGORIES=            security
 MASTER_SITES=          ftp://ftp.openssh.com/pub/OpenBSD/OpenSSH/portable/ \
@@ -74,15 +74,16 @@
 #
 CONFIGURE_ENV+=                LD=${CC:Q}
 
-# s/key support, enabled on Darwin and Solaris. NetBSD s/key has 4 args
-# (4: sslen) to skeychallenge instead of 3, so disable s/key support.
-#
-.if ${OPSYS} == "Darwin" || ${OPSYS} == "SunOS"
+# Enable S/Key support on NetBSD, Darwin, and Solaris.
+.if (${OPSYS} == "NetBSD") || (${OPSYS} == "Darwin") || (${OPSYS} == "SunOS")
 .  include "../../security/skey/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-skey=${BUILDLINK_PREFIX.skey}
-.elif ${OPSYS} == "NetBSD"
-#CONFIGURE_ARGS+=      --with-skey=/usr
-CONFIGURE_ARGS+=       --without-skey
+#
+# NetBSD's skeychallenge() takes 4 args (int: sslen) instead of 3.
+#
+.  if ${OPSYS} == "NetBSD"
+CPPFLAGS+=             -DSKEYCHALLENGE=SKEYCHALLENGE4
+.  endif
 .else
 CONFIGURE_ARGS+=       --without-skey
 .endif
diff -r afa0520dbdbd -r def0c29c051b security/openssh/distinfo
--- a/security/openssh/distinfo Wed Apr 28 03:54:08 2004 +0000
+++ b/security/openssh/distinfo Wed Apr 28 04:00:17 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.31 2004/04/27 12:30:23 markd Exp $
+$NetBSD: distinfo,v 1.32 2004/04/28 04:00:17 jlam Exp $
 
 SHA1 (openssh-3.8p1.tar.gz) = b30c4ec4945f4e8b1691470495c15caf522fbc16
 Size (openssh-3.8p1.tar.gz) = 826588 bytes
@@ -7,3 +7,6 @@
 SHA1 (patch-ac) = ae77aa9a6bdbb69231d24ed6b01e6cefa13b38ee
 SHA1 (patch-ad) = 644e2fe1f2967fe97c51a7cc61cad557bc42ed6a
 SHA1 (patch-ah) = 8f1fa190e4fb115bb5311b4ccd839a649e1b09e5
+SHA1 (patch-aq) = 0718e96922ca30ca12915399c176504f10addd82
+SHA1 (patch-ar) = 6d026300d159094beb308a4e17b07003fa41a050
+SHA1 (patch-as) = 00b5d247f3aded042e262f3a162096c60fd9c259
diff -r afa0520dbdbd -r def0c29c051b security/openssh/patches/patch-aq
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openssh/patches/patch-aq Wed Apr 28 04:00:17 2004 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-aq,v 1.1 2004/04/28 04:00:17 jlam Exp $
+
+--- config.h.in.orig   Tue Feb 24 01:22:45 2004
++++ config.h.in
+@@ -1039,4 +1039,10 @@
+ 
+ /* ******************* Shouldn't need to edit below this line ************** */
+ 
++#define SKEYCHALLENGE4(mp, name, ss, sslen) skeychallenge(mp, name, ss, sslen)
++#define SKEYCHALLENGE3(mp, name, ss, sslen) skeychallenge(mp, name, ss)
++#ifndef SKEYCHALLENGE
++#define SKEYCHALLENGE SKEYCHALLENGE3
++#endif
++
+ #endif /* _CONFIG_H */
diff -r afa0520dbdbd -r def0c29c051b security/openssh/patches/patch-ar
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openssh/patches/patch-ar Wed Apr 28 04:00:17 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ar,v 1.1 2004/04/28 04:00:17 jlam Exp $
+
+--- auth-skey.c.orig   Wed Jul  3 20:14:18 2002
++++ auth-skey.c
+@@ -47,7 +47,7 @@ skey_query(void *ctx, char **name, char 
+       int len;
+       struct skey skey;
+ 
+-      if (skeychallenge(&skey, authctxt->user, challenge) == -1)
++      if (SKEYCHALLENGE(&skey, authctxt->user, challenge, sizeof(challenge)) == -1)
+               return -1;
+ 
+       *name  = xstrdup("");
diff -r afa0520dbdbd -r def0c29c051b security/openssh/patches/patch-as
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openssh/patches/patch-as Wed Apr 28 04:00:17 2004 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-as,v 1.1 2004/04/28 04:00:17 jlam Exp $
+
+--- monitor.c.orig     Fri Feb  6 00:40:27 2004
++++ monitor.c
+@@ -738,7 +738,7 @@ mm_answer_skeyquery(int socket, Buffer *
+       char challenge[1024];
+       u_int success;
+ 
+-      success = skeychallenge(&skey, authctxt->user, challenge) < 0 ? 0 : 1;
++      success = SKEYCHALLENGE(&skey, authctxt->user, challenge, sizeof(challenge)) < 0 ? 0 : 1;
+ 
+       buffer_clear(m);
+       buffer_put_int(m, success);



Home | Main Index | Thread Index | Old Index