summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authoritojun <itojun@pkgsrc.org>1999-07-08 17:10:57 +0000
committeritojun <itojun@pkgsrc.org>1999-07-08 17:10:57 +0000
commit57ead35da3d1d65efb5819f84203e15f47ad7ef5 (patch)
tree822705f83b085344120e92452ccc3949d05f81d6 /security
parentcb45f2d39ec6d3678c094f089561c426d910d3c2 (diff)
downloadpkgsrc-57ead35da3d1d65efb5819f84203e15f47ad7ef5.tar.gz
enable IPv6 build (USE_INET6)
Diffstat (limited to 'security')
-rw-r--r--security/ssh/Makefile20
-rw-r--r--security/ssh/files/md53
-rw-r--r--security/ssh/patches.v6/patch-ba11
-rw-r--r--security/ssh/patches.v6/patch-bb11
4 files changed, 43 insertions, 2 deletions
diff --git a/security/ssh/Makefile b/security/ssh/Makefile
index ad886bfa809..2c85ddbb513 100644
--- a/security/ssh/Makefile
+++ b/security/ssh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.49 1999/07/01 14:21:59 mrg Exp $
+# $NetBSD: Makefile,v 1.50 1999/07/08 17:10:57 itojun Exp $
# FreeBSD Id: Makefile,v 1.47 1997/11/10 22:04:42 dima Exp
#
@@ -86,6 +86,19 @@ CONFIGURE_ARGS+= --disable-suid-ssh
CFLAGS+= -DLIBWRAP_FWD
.endif
+# IPv6 support
+# always fetch IPv6 related patch files. simplify files/md5 generation.
+.if defined(USE_INET6)
+PATCHFILES+= ssh-1.2.27-IPv6-1.5-patch.gz
+PATCH_DIST_STRIP+= -p1
+PATCHDIR= ${WRKDIR}/.patches
+.else
+MASTER_SITES+= ftp://ftp.kyoto.wide.ad.jp/IPv6/ssh/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
+ ssh-1.2.27-IPv6-1.5-patch.gz
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+.endif
+
# be more effective on M68060 machines
.if defined(M68060)
CONFIGURE_ARGS+= --disable-asm
@@ -99,6 +112,11 @@ PLIST_SRC= ${WRKDIR}/PLIST
pre-patch:
@${MV} -f ${WRKSRC}/make-ssh-known-hosts.pl \
${WRKSRC}/make-ssh-known-hosts.pl.in
+.if defined(USE_INET6)
+ ${MKDIR} ${WRKDIR}/.patches
+ ${CP} ${.CURDIR}/patches/patch-* ${WRKDIR}/.patches
+ ${CP} ${.CURDIR}/patches.v6/patch-* ${WRKDIR}/.patches
+.endif
fetch-depends:
.if !defined(USE_RSAREF2) || ${USE_RSAREF2} != YES && ${USE_RSAREF2} != NO
diff --git a/security/ssh/files/md5 b/security/ssh/files/md5
index e6343d25ae0..c33b22d8d8c 100644
--- a/security/ssh/files/md5
+++ b/security/ssh/files/md5
@@ -1,3 +1,4 @@
-$NetBSD: md5,v 1.8 1999/05/15 13:46:58 bouyer Exp $
+$NetBSD: md5,v 1.9 1999/07/08 17:10:58 itojun Exp $
MD5 (ssh-1.2.27.tar.gz) = c22bc000bee0f7d6f4845eab72a81395
+MD5 (ssh-1.2.27-IPv6-1.5-patch.gz) = b854131fe8aa025abeef32cecfe1b037
diff --git a/security/ssh/patches.v6/patch-ba b/security/ssh/patches.v6/patch-ba
new file mode 100644
index 00000000000..a73721af66d
--- /dev/null
+++ b/security/ssh/patches.v6/patch-ba
@@ -0,0 +1,11 @@
+--- configure.orig Wed Jul 7 07:44:35 1999
++++ configure Thu Jul 8 09:34:37 1999
+@@ -1031,8 +1031,6 @@
+ egrep "yes" >/dev/null 2>&1; then
+ rm -rf conftest*
+ ipv6type=$i;
+- ipv6lib=inet6;
+- ipv6libdir=/usr/local/v6/lib;
+ CPPFLAGS="-DINET6 $CPPFLAGS"
+ fi
+ rm -f conftest*
diff --git a/security/ssh/patches.v6/patch-bb b/security/ssh/patches.v6/patch-bb
new file mode 100644
index 00000000000..24ef13b723c
--- /dev/null
+++ b/security/ssh/patches.v6/patch-bb
@@ -0,0 +1,11 @@
+--- configure.in.orig Wed Jul 7 07:44:35 1999
++++ configure.in Thu Jul 8 09:34:44 1999
+@@ -93,8 +93,6 @@
+ yes
+ #endif],
+ [ipv6type=$i;
+- ipv6lib=inet6;
+- ipv6libdir=/usr/local/v6/lib;
+ CPPFLAGS="-DINET6 $CPPFLAGS"])
+ ;;
+ linux)