summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2012-02-23 15:53:56 +0000
committertron <tron@pkgsrc.org>2012-02-23 15:53:56 +0000
commite117f62f1e3eb46ef6cac24e590bded6697be7a2 (patch)
tree28397cf3f3113c5f7ce9ed2ccd86e58477e68e1b
parentd6c9db52b6b619c8182e8cc439babe2afc5f1943 (diff)
downloadpkgsrc-e117f62f1e3eb46ef6cac24e590bded6697be7a2.tar.gz
Pullup ticket #3689 - requested by wiz
security/putty: security update security/putty-devel: removed Revisions pulled up: - doc/CHANGES-2012 1.565 - security/Makefile 1.426 - security/putty-devel/DESCR deleted - security/putty-devel/Makefile deleted - security/putty-devel/PLIST deleted - security/putty-devel/distinfo deleted - security/putty-devel/patches/patch-aa deleted - security/putty-devel/patches/patch-ak deleted - security/putty-devel/patches/patch-al deleted - security/putty-devel/patches/patch-am deleted - security/putty-devel/patches/patch-an deleted - security/putty-devel/patches/patch-ldisc.c deleted - security/putty/Makefile 1.23 - security/putty/distinfo 1.10-1.11 - security/putty/options.mk 1.1 - security/putty/patches/patch-aa deleted - security/putty/patches/patch-ac deleted - security/putty/patches/patch-ad deleted - security/putty/patches/patch-ae deleted - security/putty/patches/patch-af deleted - security/putty/patches/patch-ag deleted - security/putty/patches/patch-ai deleted - security/putty/patches/patch-aj deleted - security/putty/patches/patch-ak deleted - security/putty/patches/patch-al deleted - security/putty/patches/patch-am deleted - security/putty/patches/patch-an deleted - security/putty/patches/patch-import.c 1.1 - security/putty/patches/patch-ldisc.c 1.1 - security/putty/patches/patch-terminal.c 1.1 - security/putty/patches/patch-unix_Makefile.gtk 1.1 - security/putty/patches/patch-unix_gtkwin.c 1.1 - security/putty/patches/patch-unix_uxnet.c 1.1 - security/putty/patches/patch-windows_window.c 1.1 --- Module Name: pkgsrc Committed By: wiz Date: Wed Feb 22 15:27:17 UTC 2012 Modified Files: pkgsrc/security/putty: Makefile distinfo Added Files: pkgsrc/security/putty: options.mk pkgsrc/security/putty/patches: patch-import.c patch-terminal.c patch-unix_Makefile.gtk patch-unix_gtkwin.c patch-unix_uxnet.c patch-windows_window.c Removed Files: pkgsrc/security/putty/patches: patch-aa patch-ac patch-ad patch-ae patch-af patch-ag patch-ai patch-aj patch-ak patch-al patch-am patch-an Log Message: Update to 0.62, keeping all pkgsrc patches which have not been fed upstream (hi roy! hi rillig!) 2011-12-10 PuTTY 0.62 released PuTTY 0.62 is out, containing only bug fixes from 0.61, in particular a security fix preventing passwords from being accidentally retained in memory. 2011-11-27 PuTTY 0.62 pre-release builds available PuTTY 0.61 had a few noticeable bugs in it (but nothing security-related), so we are planning to make a 0.62 release containing just bug fixes. The Wishlist page lists the bugs that will be fixed by the 0.62 release. The Download page now contains pre-release snapshots of 0.62, which contain those bug fixes and should be otherwise stable. (The usual development snapshots, containing other development since 0.61, are also still available.) 2011-07-12 PuTTY 0.61 is released PuTTY 0.61 is out, after over four years (sorry!), with new features, bug fixes, and compatibility updates for Windows 7 and various SSH server software. --- Module Name: pkgsrc Committed By: wiz Date: Wed Feb 22 15:30:21 UTC 2012 Modified Files: pkgsrc/security/putty: distinfo Added Files: pkgsrc/security/putty/patches: patch-ldisc.c Log Message: Add a patch from the putty-devel package (not needed on my -current though) --- Module Name: pkgsrc Committed By: wiz Date: Wed Feb 22 15:31:06 UTC 2012 Modified Files: pkgsrc/doc: CHANGES-2012 pkgsrc/security: Makefile Removed Files: pkgsrc/security/putty-devel: DESCR Makefile PLIST distinfo pkgsrc/security/putty-devel/patches: patch-aa patch-ak patch-al patch-am patch-an patch-ldisc.c Log Message: Remove putty-devel, older than putty now.
-rw-r--r--security/Makefile3
-rw-r--r--security/putty-devel/DESCR5
-rw-r--r--security/putty-devel/Makefile50
-rw-r--r--security/putty-devel/PLIST15
-rw-r--r--security/putty-devel/distinfo11
-rw-r--r--security/putty-devel/patches/patch-aa22
-rw-r--r--security/putty-devel/patches/patch-ak26
-rw-r--r--security/putty-devel/patches/patch-al28
-rw-r--r--security/putty-devel/patches/patch-am48
-rw-r--r--security/putty-devel/patches/patch-an29
-rw-r--r--security/putty/Makefile22
-rw-r--r--security/putty/distinfo27
-rw-r--r--security/putty/options.mk10
-rw-r--r--security/putty/patches/patch-aa21
-rw-r--r--security/putty/patches/patch-ac13
-rw-r--r--security/putty/patches/patch-ad33
-rw-r--r--security/putty/patches/patch-ae13
-rw-r--r--security/putty/patches/patch-af13
-rw-r--r--security/putty/patches/patch-ag13
-rw-r--r--security/putty/patches/patch-ai13
-rw-r--r--security/putty/patches/patch-aj13
-rw-r--r--security/putty/patches/patch-import.c (renamed from security/putty/patches/patch-ak)10
-rw-r--r--security/putty/patches/patch-ldisc.c (renamed from security/putty-devel/patches/patch-ldisc.c)6
-rw-r--r--security/putty/patches/patch-terminal.c (renamed from security/putty/patches/patch-am)16
-rw-r--r--security/putty/patches/patch-unix_Makefile.gtk35
-rw-r--r--security/putty/patches/patch-unix_gtkwin.c (renamed from security/putty/patches/patch-an)12
-rw-r--r--security/putty/patches/patch-unix_uxnet.c17
-rw-r--r--security/putty/patches/patch-windows_window.c (renamed from security/putty/patches/patch-al)16
28 files changed, 110 insertions, 430 deletions
diff --git a/security/Makefile b/security/Makefile
index 89b647e7cf0..f338170133a 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.421 2011/12/05 09:56:57 pettai Exp $
+# $NetBSD: Makefile,v 1.421.2.1 2012/02/23 15:53:56 tron Exp $
#
COMMENT= Security tools
@@ -282,7 +282,6 @@ SUBDIR+= priv
SUBDIR+= prngd
SUBDIR+= pscan
SUBDIR+= putty
-SUBDIR+= putty-devel
SUBDIR+= pwsafe
SUBDIR+= py-OpenSSL
SUBDIR+= py-SSLCrypto
diff --git a/security/putty-devel/DESCR b/security/putty-devel/DESCR
deleted file mode 100644
index d66f59045f2..00000000000
--- a/security/putty-devel/DESCR
+++ /dev/null
@@ -1,5 +0,0 @@
-PuTTY is a client program for the SSH, Telnet and Rlogin network protocols.
-
-These protocols are all used to run a remote session on a computer, over a
-network. PuTTY implements the client end of that session: the end at which
-the session is displayed, rather than the end at which it runs.
diff --git a/security/putty-devel/Makefile b/security/putty-devel/Makefile
deleted file mode 100644
index e30e12862c4..00000000000
--- a/security/putty-devel/Makefile
+++ /dev/null
@@ -1,50 +0,0 @@
-# $NetBSD: Makefile,v 1.11 2011/11/01 06:02:29 sbd Exp $
-#
-
-DISTNAME= putty-0.60-2009-09-06
-PKGNAME= putty-0.60.20090906
-PKGREVISION= 2
-CATEGORIES= security
-MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/ahoka/dist/
-
-MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://www.chiark.greenend.org.uk/~sgtatham/putty/
-COMMENT= Free implementation of Telnet and SSH for Win32 and Unix platforms
-LICENSE= mit
-
-PKG_DESTDIR_SUPPORT= user-destdir
-
-USE_TOOLS+= gmake pkg-config
-BUILD_DIRS= unix
-BUILD_DEPENDS+= halibut>=1.0:../../textproc/halibut
-
-MAKE_FILE= Makefile.gtk
-MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR}
-
-INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
-
-PKG_OPTIONS_VAR= PKG_OPTIONS.putty
-PKG_SUPPORTED_OPTIONS= inet6
-
-.include "../../mk/bsd.options.mk"
-
-.if empty(OPSYS:MLinux)
-CFLAGS+= -DHAVE_NO_SETRESUID
-.endif
-
-.if !empty(PKG_OPTIONS:Minet6)
-CFLAGS+= -DIPV6
-.endif
-
-.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
-CFLAGS+= -DOMIT_UTMP
-.endif
-
-# Use Unix98 ptys if we have the device, otherwise use the old style.
-.if !exists(/dev/ptmx)
-CFLAGS+= -DBSD_PTYS
-.endif
-
-.include "../../x11/gtk2/buildlink3.mk"
-.include "../../mk/krb5.buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
diff --git a/security/putty-devel/PLIST b/security/putty-devel/PLIST
deleted file mode 100644
index 287afad410c..00000000000
--- a/security/putty-devel/PLIST
+++ /dev/null
@@ -1,15 +0,0 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2009/09/07 18:01:43 ahoka Exp $
-bin/plink
-bin/pscp
-bin/psftp
-bin/pterm
-bin/putty
-bin/puttygen
-bin/puttytel
-man/man1/plink.1
-man/man1/pscp.1
-man/man1/psftp.1
-man/man1/pterm.1
-man/man1/putty.1
-man/man1/puttygen.1
-man/man1/puttytel.1
diff --git a/security/putty-devel/distinfo b/security/putty-devel/distinfo
deleted file mode 100644
index d5d4f63498e..00000000000
--- a/security/putty-devel/distinfo
+++ /dev/null
@@ -1,11 +0,0 @@
-$NetBSD: distinfo,v 1.2 2011/12/05 22:55:36 joerg Exp $
-
-SHA1 (putty-0.60-2009-09-06.tar.gz) = d7e22f692e8a427d0d00835de7cf6b5a22b9d4dc
-RMD160 (putty-0.60-2009-09-06.tar.gz) = 178e4748e31a71336d886b754091a32acce1f298
-Size (putty-0.60-2009-09-06.tar.gz) = 1831902 bytes
-SHA1 (patch-aa) = f4772fc9d095a1970fc795ae4b629823d386bdd1
-SHA1 (patch-ak) = 2ca42d1ea913505d7d265a3fde71e09aa292d75f
-SHA1 (patch-al) = dd8d49697806d9087b9691c3bb48fe32b70a77e1
-SHA1 (patch-am) = 4dc40f37310f8bcebee3e41bb684c89bae9323e3
-SHA1 (patch-an) = 8411855d0a21b0ddb490384990003a3cfc58edcf
-SHA1 (patch-ldisc.c) = 73ff2705b004d13e5f828d89bf2d34a6756639a9
diff --git a/security/putty-devel/patches/patch-aa b/security/putty-devel/patches/patch-aa
deleted file mode 100644
index f7de2069031..00000000000
--- a/security/putty-devel/patches/patch-aa
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2009/09/07 18:01:43 ahoka Exp $
-
---- unix/Makefile.gtk.orig 2009-09-06 01:30:15.000000000 +0200
-+++ unix/Makefile.gtk
-@@ -115,7 +115,7 @@ GTK_CONFIG = sh -c 'pkg-config gtk+-2.0
-
- unexport CFLAGS # work around a weird issue with krb5-config
-
--CFLAGS = -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ \
-+CFLAGS += -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ \
- -I../mac/ -I../macosx/ $(shell $(GTK_CONFIG) --cflags) -D _FILE_OFFSET_BITS=64
- XLDFLAGS = $(LDFLAGS) $(shell $(GTK_CONFIG) --libs)
- ULDFLAGS = $(LDFLAGS)
-@@ -127,7 +127,7 @@ endif
- INSTALL=install
- INSTALL_PROGRAM=$(INSTALL)
- INSTALL_DATA=$(INSTALL)
--prefix=/usr/local
-+prefix=$(PREFIX)
- exec_prefix=$(prefix)
- bindir=$(exec_prefix)/bin
- mandir=$(prefix)/man
diff --git a/security/putty-devel/patches/patch-ak b/security/putty-devel/patches/patch-ak
deleted file mode 100644
index 3da86e30a79..00000000000
--- a/security/putty-devel/patches/patch-ak
+++ /dev/null
@@ -1,26 +0,0 @@
-$NetBSD: patch-ak,v 1.1.1.1 2009/09/07 18:01:43 ahoka Exp $
-
---- import.c.orig Tue Apr 5 21:37:51 2005
-+++ import.c Tue Apr 12 10:27:13 2005
-@@ -680,8 +680,8 @@ int openssh_write(const Filename *filena
- unsigned char *outblob;
- int outlen;
- struct mpint_pos numbers[9];
-- int nnumbers, pos, len, seqlen, i;
-- char *header, *footer;
-+ int nnumbers = 0, pos = 0, len = 0, seqlen = 0, i = 0;
-+ char *header = NULL, *footer = NULL;
- char zero[1];
- unsigned char iv[8];
- int ret = 0;
-@@ -1441,8 +1441,8 @@ int sshcom_write(const Filename *filenam
- unsigned char *outblob;
- int outlen;
- struct mpint_pos numbers[6];
-- int nnumbers, initial_zero, pos, lenpos, i;
-- char *type;
-+ int nnumbers = 0, initial_zero = 0, pos = 0, lenpos = 0, i = 0;
-+ char *type = NULL;
- char *ciphertext;
- int cipherlen;
- int ret = 0;
diff --git a/security/putty-devel/patches/patch-al b/security/putty-devel/patches/patch-al
deleted file mode 100644
index 59ee99ab025..00000000000
--- a/security/putty-devel/patches/patch-al
+++ /dev/null
@@ -1,28 +0,0 @@
-$NetBSD: patch-al,v 1.1.1.1 2009/09/07 18:01:43 ahoka Exp $
-
-Make the home/end keys work on BSD servers as well as Linux ones
-
-Index: windows/window.c
-===================================================================
---- windows/window.c (revision 8466)
-+++ windows/window.c (working copy)
-@@ -4189,8 +4189,17 @@
- p += sprintf((char *) p, "\x1BO%c", code + 'P' - 11);
- return p - output;
- }
-- if (cfg.rxvt_homeend && (code == 1 || code == 4)) {
-- p += sprintf((char *) p, code == 1 ? "\x1B[H" : "\x1BOw");
-+ /* Home/End */
-+ if (code == 1 || code == 4) {
-+ /* Send the correct XTerm or rxvt codes for home/end
-+ * We used to send ^[1~ and [4~ for Xterm,
-+ * but those are Linux console */
-+ const char *he;
-+ if (cfg.rxvt_homeend)
-+ he = code == 1 ? "\x1B[7~" : "\x1B[8~";
-+ else
-+ he = code == 1 ? "\x1BOH" : "\x1BOF";
-+ p += sprintf((char *) p, he);
- return p - output;
- }
- if (code) {
diff --git a/security/putty-devel/patches/patch-am b/security/putty-devel/patches/patch-am
deleted file mode 100644
index 5962207693f..00000000000
--- a/security/putty-devel/patches/patch-am
+++ /dev/null
@@ -1,48 +0,0 @@
-$NetBSD: patch-am,v 1.1.1.1 2009/09/07 18:01:43 ahoka Exp $
-
-Make the home/end keys work on BSD servers as well as Linux ones
-
-Index: terminal.c
-===================================================================
---- terminal.c (revision 8466)
-+++ terminal.c (working copy)
-@@ -6131,13 +6131,6 @@
- }
- }
-
-- /* RXVT Home/End */
-- if (term->cfg.rxvt_homeend &&
-- (keysym == PK_HOME || keysym == PK_END)) {
-- p += sprintf((char *) p, keysym == PK_HOME ? "\x1B[H" : "\x1BOw");
-- goto done;
-- }
--
- if (term->vt52_mode) {
- int xkey;
-
-@@ -6158,11 +6151,23 @@
- goto done;
- }
-
-+ /* Home/End */
-+ if (keysym == PK_HOME || keysym == PK_END) {
-+ /* Send the correct XTerm or rxvt codes for home/end
-+ * We used to send ^[1~ and [4~ for Xterm,
-+ * but those are Linux console */
-+ const char *he;
-+ if (term->cfg.rxvt_homeend)
-+ he = keysym == PK_HOME ? "\x1B[7~" : "\x1B[8~";
-+ else
-+ he = keysym == PK_HOME ? "\x1BOH" : "\x1BOF";
-+ p += sprintf((char *) p, he);
-+ goto done;
-+ }
-+
- switch (keysym) {
-- case PK_HOME: code = 1; break;
- case PK_INSERT: code = 2; break;
- case PK_DELETE: code = 3; break;
-- case PK_END: code = 4; break;
- case PK_PAGEUP: code = 5; break;
- case PK_PAGEDOWN: code = 6; break;
- default: code = 0; break; /* else gcc warns `enum value not used' */
diff --git a/security/putty-devel/patches/patch-an b/security/putty-devel/patches/patch-an
deleted file mode 100644
index 20c4e87ae22..00000000000
--- a/security/putty-devel/patches/patch-an
+++ /dev/null
@@ -1,29 +0,0 @@
-$NetBSD: patch-an,v 1.1.1.1 2009/09/07 18:01:43 ahoka Exp $
-
-Make the home/end keys work on BSD servers as well as Linux ones
-
-Index: unix/gtkwin.c
-===================================================================
---- unix/gtkwin.c (revision 8466)
-+++ unix/gtkwin.c (working copy)
-@@ -979,9 +979,17 @@
- use_ucsoutput = FALSE;
- goto done;
- }
-- if (inst->cfg.rxvt_homeend && (code == 1 || code == 4)) {
-- end = 1 + sprintf(output+1, code == 1 ? "\x1B[H" : "\x1BOw");
-- use_ucsoutput = FALSE;
-+ /* Home/End */
-+ if (code == 1 || code == 4) {
-+ /* Send the correct XTerm or rxvt codes for home/end
-+ * We used to send ^[1~ and [4~ for Xterm,
-+ * but those are Linux console */
-+ const char *he;
-+ if (inst->cfg.rxvt_homeend)
-+ he = code == 1 ? "\x1B[7~" : "\x1B[8~";
-+ else
-+ he = code == 1 ? "\x1BOH" : "\x1BOF";
-+ end = 1 + sprintf(output+1, he);
- goto done;
- }
- if (code) {
diff --git a/security/putty/Makefile b/security/putty/Makefile
index ea28a5fae1f..f4d12738ccb 100644
--- a/security/putty/Makefile
+++ b/security/putty/Makefile
@@ -1,14 +1,14 @@
-# $NetBSD: Makefile,v 1.22 2011/12/10 20:50:51 cheusov Exp $
+# $NetBSD: Makefile,v 1.22.2.1 2012/02/23 15:53:56 tron Exp $
#
-DISTNAME= putty-0.60
-PKGREVISION= 2
+DISTNAME= putty-0.62
CATEGORIES= security
-MASTER_SITES= http://the.earth.li/~sgtatham/putty/0.60/
+MASTER_SITES= http://the.earth.li/~sgtatham/putty/0.62/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.chiark.greenend.org.uk/~sgtatham/putty/
COMMENT= Free implementation of Telnet and SSH for Win32 and Unix platforms
+LICENSE= mit
PKG_DESTDIR_SUPPORT= user-destdir
@@ -20,24 +20,17 @@ MAKE_FLAGS+= mandir=${PREFIX}/${PKGMANDIR}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
-PKG_OPTIONS_VAR= PKG_OPTIONS.putty
-PKG_SUPPORTED_OPTIONS= inet6
-
-.include "../../mk/bsd.options.mk"
+.include "options.mk"
.if empty(OPSYS:MLinux)
CFLAGS+= -DHAVE_NO_SETRESUID
.endif
-.if !empty(PKG_OPTIONS:Minet6)
-CFLAGS+= -DIPV6
-.endif
-
.if !empty(OPSYS:M*BSD) || ${OPSYS} == "DragonFly" || ${OPSYS} == "Darwin"
CFLAGS+= -DOMIT_UTMP
.endif
-# Unix98 ptys were added some weeks ago in NetBSD -current,
+# Unix98 ptys were added some time ago in NetBSD -current,
# so use it if we have the device, otherwise use the old style.
.if !exists(/dev/ptmx)
CFLAGS+= -DBSD_PTYS
@@ -46,5 +39,6 @@ CFLAGS+= -DBSD_PTYS
LDFLAGS.SunOS+= -lsocket -lnsl
CFLAGS.SunOS+= -DBSD_COMP
-.include "../../x11/gtk/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/security/putty/distinfo b/security/putty/distinfo
index f54306e019f..4307dcd7273 100644
--- a/security/putty/distinfo
+++ b/security/putty/distinfo
@@ -1,17 +1,12 @@
-$NetBSD: distinfo,v 1.9 2011/12/10 20:50:51 cheusov Exp $
+$NetBSD: distinfo,v 1.9.2.1 2012/02/23 15:53:56 tron Exp $
-SHA1 (putty-0.60.tar.gz) = 8d99f8f1077b7ab25f014126b5d812a1ad55ce37
-RMD160 (putty-0.60.tar.gz) = 9c56ee4d2d05f5b1079c65f19a5d9d06b596aba3
-Size (putty-0.60.tar.gz) = 1743711 bytes
-SHA1 (patch-aa) = 4949b10698c445fa16a28a8818c7448959f45135
-SHA1 (patch-ac) = 61cc8640417931a04152d4f4a1d6daa420d85496
-SHA1 (patch-ad) = 02b6d4a1869e40cf891f2ff8710b2aa27b5b23ba
-SHA1 (patch-ae) = 82bd150f0dfb59eda57e4d9bca7abfc8093090a9
-SHA1 (patch-af) = 549688da80048f57530f23d59799c04f09ddbdca
-SHA1 (patch-ag) = 2012609deff68e4931538b1a987c02b532bf04be
-SHA1 (patch-ai) = 3965e71c222d7db61d5d852dedf8fb3ec082c9a1
-SHA1 (patch-aj) = 7c22c5cb2c41445fa70dfff9e6d756af444daf06
-SHA1 (patch-ak) = 2ca42d1ea913505d7d265a3fde71e09aa292d75f
-SHA1 (patch-al) = dd8d49697806d9087b9691c3bb48fe32b70a77e1
-SHA1 (patch-am) = 4dc40f37310f8bcebee3e41bb684c89bae9323e3
-SHA1 (patch-an) = 8411855d0a21b0ddb490384990003a3cfc58edcf
+SHA1 (putty-0.62.tar.gz) = 5898438614117ee7e3704fc3f30a3c4bf2041380
+RMD160 (putty-0.62.tar.gz) = 48324416005eb4b14654fc9e0e14d39f20971507
+Size (putty-0.62.tar.gz) = 1783106 bytes
+SHA1 (patch-import.c) = c2dc26aa851a326ea89e782ef93ae7bfdc916366
+SHA1 (patch-ldisc.c) = e4dd89bfb2ddcb47aad46cc7c311f424aa6ab6be
+SHA1 (patch-terminal.c) = 48c3c928711bf7f461c0fd66490b0412f165f75b
+SHA1 (patch-unix_Makefile.gtk) = 0ad8226e2ad8e6e40d3eb9ddef4b22e7d07b7895
+SHA1 (patch-unix_gtkwin.c) = ead5e3dea292e6054afa3b9b1a9bc93fc1aff642
+SHA1 (patch-unix_uxnet.c) = 50e39093ece97b189da4a736713b59ed72c162d9
+SHA1 (patch-windows_window.c) = 0c9f4ad5870e63793278d6f04cae88154611e596
diff --git a/security/putty/options.mk b/security/putty/options.mk
new file mode 100644
index 00000000000..bac493e9991
--- /dev/null
+++ b/security/putty/options.mk
@@ -0,0 +1,10 @@
+# $NetBSD: options.mk,v 1.1.2.2 2012/02/23 15:53:56 tron Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.putty
+PKG_SUPPORTED_OPTIONS= inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+CFLAGS+= -DIPV6
+.endif
diff --git a/security/putty/patches/patch-aa b/security/putty/patches/patch-aa
deleted file mode 100644
index 8d76cd07599..00000000000
--- a/security/putty/patches/patch-aa
+++ /dev/null
@@ -1,21 +0,0 @@
-$NetBSD: patch-aa,v 1.5 2007/10/13 09:14:16 obache Exp $
-
---- unix/Makefile.gtk.orig 2007-04-29 13:41:48.000000000 +0200
-+++ unix/Makefile.gtk 2007-10-03 09:26:39.000000000 +0200
-@@ -99,14 +99,14 @@
- # TOOLPATH = /opt/gcc/bin
- CC = $(TOOLPATH)cc
-
--CFLAGS = -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ \
-+CFLAGS += -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ \
- -I../mac/ -I../macosx/ `gtk-config --cflags` -D _FILE_OFFSET_BITS=64
- XLDFLAGS = $(LDFLAGS) `gtk-config --libs`
- ULDFLAGS = $(LDFLAGS)
- INSTALL=install
- INSTALL_PROGRAM=$(INSTALL)
- INSTALL_DATA=$(INSTALL)
--prefix=/usr/local
-+prefix= ${PREFIX}
- exec_prefix=$(prefix)
- bindir=$(exec_prefix)/bin
- mandir=$(prefix)/man
diff --git a/security/putty/patches/patch-ac b/security/putty/patches/patch-ac
deleted file mode 100644
index 963221e915d..00000000000
--- a/security/putty/patches/patch-ac
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ac,v 1.2 2005/04/13 16:45:46 rillig Exp $
-
---- logging.c.orig 2005-04-06 23:11:53.000000000 +0200
-+++ logging.c 2005-04-06 23:12:15.000000000 +0200
-@@ -361,7 +361,7 @@
- char c;
- s++;
- size = 0;
-- if (*s) switch (c = *s++, tolower(c)) {
-+ if (*s) switch (c = *s++, tolower((unsigned char)c)) {
- case 'y':
- size = strftime(buf, sizeof(buf), "%Y", tm);
- break;
diff --git a/security/putty/patches/patch-ad b/security/putty/patches/patch-ad
deleted file mode 100644
index 86fc24f932b..00000000000
--- a/security/putty/patches/patch-ad
+++ /dev/null
@@ -1,33 +0,0 @@
-$NetBSD: patch-ad,v 1.3 2011/12/10 20:50:51 cheusov Exp $
-
---- unix/uxnet.c.orig 2006-12-09 15:44:31.000000000 +0000
-+++ unix/uxnet.c
-@@ -17,6 +17,15 @@
- #include <netdb.h>
- #include <sys/un.h>
-
-+/* This is a hack for solaris, it keeps SIOCATMARK here. */
-+#ifndef SIOCATMARK
-+#include <sys/sockio.h>
-+#endif
-+/* For Unix flavors that don't define INADDR_NONE */
-+#ifndef INADDR_NONE
-+#define INADDR_NONE 0xffffffff
-+#endif
-+
- #define DEFINE_PLUG_METHOD_MACROS
- #include "putty.h"
- #include "network.h"
-@@ -448,10 +457,10 @@ static int try_connect(Actual_Socket soc
- #endif
- struct sockaddr_in a;
- struct sockaddr_un au;
-- const struct sockaddr *sa;
-+ const struct sockaddr *sa = NULL;
- int err = 0;
- short localport;
-- int fl, salen;
-+ int fl, salen = 0;
-
- if (sock->s >= 0)
- close(sock->s);
diff --git a/security/putty/patches/patch-ae b/security/putty/patches/patch-ae
deleted file mode 100644
index ef6b31fc645..00000000000
--- a/security/putty/patches/patch-ae
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ae,v 1.2 2005/04/13 16:45:46 rillig Exp $
-
---- charset/localenc.c.orig Tue Apr 5 21:37:48 2005
-+++ charset/localenc.c Tue Apr 12 10:29:00 2005
-@@ -101,7 +101,7 @@ int charset_from_localenc(const char *na
- p = name;
- q = localencs[i].name;
- while (*p || *q) {
-- if (tolower(*p) != tolower(*q))
-+ if (tolower((unsigned char)*p) != tolower((unsigned char)*q))
- break;
- p++; q++;
- }
diff --git a/security/putty/patches/patch-af b/security/putty/patches/patch-af
deleted file mode 100644
index 5103591a951..00000000000
--- a/security/putty/patches/patch-af
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-af,v 1.2 2005/04/13 16:45:46 rillig Exp $
-
---- charset/mimeenc.c.orig 2005-04-06 23:14:37.000000000 +0200
-+++ charset/mimeenc.c 2005-04-06 23:14:57.000000000 +0200
-@@ -197,7 +197,7 @@
- p = name;
- q = mimeencs[i].name;
- while (*p || *q) {
-- if (tolower(*p) != tolower(*q))
-+ if (tolower((unsigned char)*p) != tolower((unsigned char)*q))
- break;
- p++; q++;
- }
diff --git a/security/putty/patches/patch-ag b/security/putty/patches/patch-ag
deleted file mode 100644
index a3804667267..00000000000
--- a/security/putty/patches/patch-ag
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ag,v 1.2 2005/04/13 16:45:46 rillig Exp $
-
---- terminal.c.orig 2005-04-06 23:15:37.000000000 +0200
-+++ terminal.c 2005-04-06 23:15:48.000000000 +0200
-@@ -5818,7 +5818,7 @@
- if (modifiers & PKM_CONTROL)
- c &= 0x1f;
- else if (modifiers & PKM_SHIFT)
-- c = toupper(c);
-+ c = toupper((unsigned char)c);
- }
- *p++ = c;
- goto done;
diff --git a/security/putty/patches/patch-ai b/security/putty/patches/patch-ai
deleted file mode 100644
index eedfd7fc4ad..00000000000
--- a/security/putty/patches/patch-ai
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ai,v 1.2 2005/04/13 16:45:46 rillig Exp $
-
---- charset/xenc.c.orig 2005-04-06 23:29:15.000000000 +0200
-+++ charset/xenc.c 2005-04-06 23:29:31.000000000 +0200
-@@ -80,7 +80,7 @@
- p = name;
- q = xencs[i].name;
- while (*p || *q) {
-- if (tolower(*p) != tolower(*q))
-+ if (tolower((unsigned char)*p) != tolower((unsigned char)*q))
- break;
- p++; q++;
- }
diff --git a/security/putty/patches/patch-aj b/security/putty/patches/patch-aj
deleted file mode 100644
index a564dd211bb..00000000000
--- a/security/putty/patches/patch-aj
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-aj,v 1.2 2005/04/13 16:45:46 rillig Exp $
-
---- cmdgen.c.orig 2005-04-06 23:30:02.000000000 +0200
-+++ cmdgen.c 2005-04-06 23:30:15.000000000 +0200
-@@ -114,7 +114,7 @@
- void showversion(void)
- {
- char *verstr = dupstr(ver);
-- verstr[0] = tolower(verstr[0]);
-+ verstr[0] = tolower((unsigned char)verstr[0]);
- printf("PuTTYgen %s\n", verstr);
- sfree(verstr);
- }
diff --git a/security/putty/patches/patch-ak b/security/putty/patches/patch-import.c
index 13c7b5049b3..33df5996206 100644
--- a/security/putty/patches/patch-ak
+++ b/security/putty/patches/patch-import.c
@@ -1,8 +1,8 @@
-$NetBSD: patch-ak,v 1.2 2005/04/13 16:45:46 rillig Exp $
+$NetBSD: patch-import.c,v 1.1.2.2 2012/02/23 15:53:56 tron Exp $
---- import.c.orig Tue Apr 5 21:37:51 2005
-+++ import.c Tue Apr 12 10:27:13 2005
-@@ -680,8 +680,8 @@ int openssh_write(const Filename *filena
+--- import.c.orig 2010-04-12 11:02:06.000000000 +0000
++++ import.c
+@@ -717,8 +717,8 @@ int openssh_write(const Filename *filena
unsigned char *outblob;
int outlen;
struct mpint_pos numbers[9];
@@ -13,7 +13,7 @@ $NetBSD: patch-ak,v 1.2 2005/04/13 16:45:46 rillig Exp $
char zero[1];
unsigned char iv[8];
int ret = 0;
-@@ -1441,8 +1441,8 @@ int sshcom_write(const Filename *filenam
+@@ -1513,8 +1513,8 @@ int sshcom_write(const Filename *filenam
unsigned char *outblob;
int outlen;
struct mpint_pos numbers[6];
diff --git a/security/putty-devel/patches/patch-ldisc.c b/security/putty/patches/patch-ldisc.c
index e8296161b46..c211d569a38 100644
--- a/security/putty-devel/patches/patch-ldisc.c
+++ b/security/putty/patches/patch-ldisc.c
@@ -1,6 +1,8 @@
-$NetBSD: patch-ldisc.c,v 1.1 2011/12/05 22:55:36 joerg Exp $
+$NetBSD: patch-ldisc.c,v 1.1.2.2 2012/02/23 15:53:56 tron Exp $
---- ldisc.c.orig 2011-12-05 21:43:46.000000000 +0000
+pwrite is a standard system call
+
+--- ldisc.c.orig 2010-09-09 14:32:25.000000000 +0000
+++ ldisc.c
@@ -41,7 +41,7 @@ static int plen(Ldisc ldisc, unsigned ch
return 4; /* <XY> hex representation */
diff --git a/security/putty/patches/patch-am b/security/putty/patches/patch-terminal.c
index e3f20caa757..535ae32f61e 100644
--- a/security/putty/patches/patch-am
+++ b/security/putty/patches/patch-terminal.c
@@ -1,12 +1,10 @@
-$NetBSD: patch-am,v 1.1 2009/02/25 18:08:01 roy Exp $
+$NetBSD: patch-terminal.c,v 1.1.2.2 2012/02/23 15:53:56 tron Exp $
Make the home/end keys work on BSD servers as well as Linux ones
-Index: terminal.c
-===================================================================
---- terminal.c (revision 8466)
-+++ terminal.c (working copy)
-@@ -6131,13 +6131,6 @@
+--- terminal.c.orig 2011-07-16 11:27:05.000000000 +0000
++++ terminal.c
+@@ -6202,13 +6202,6 @@ void term_key(Terminal *term, Key_Sym ke
}
}
@@ -20,7 +18,7 @@ Index: terminal.c
if (term->vt52_mode) {
int xkey;
-@@ -6158,11 +6151,23 @@
+@@ -6229,11 +6222,23 @@ void term_key(Terminal *term, Key_Sym ke
goto done;
}
@@ -31,9 +29,9 @@ Index: terminal.c
+ * but those are Linux console */
+ const char *he;
+ if (term->cfg.rxvt_homeend)
-+ he = keysym == PK_HOME ? "\x1B[7~" : "\x1B[8~";
++ he = keysym == PK_HOME ? "\x1B[7~" : "\x1B[8~";
+ else
-+ he = keysym == PK_HOME ? "\x1BOH" : "\x1BOF";
++ he = keysym == PK_HOME ? "\x1BOH" : "\x1BOF";
+ p += sprintf((char *) p, he);
+ goto done;
+ }
diff --git a/security/putty/patches/patch-unix_Makefile.gtk b/security/putty/patches/patch-unix_Makefile.gtk
new file mode 100644
index 00000000000..ee753d4703f
--- /dev/null
+++ b/security/putty/patches/patch-unix_Makefile.gtk
@@ -0,0 +1,35 @@
+$NetBSD: patch-unix_Makefile.gtk,v 1.1.2.2 2012/02/23 15:53:56 tron Exp $
+
+Allow adding CFLAGS from the pkgsrc environment.
+Use pkgsrc infrastructure for deciding on whether to link against libdl or not.
+Set prefix suitable for pkgsrc.
+
+--- unix/Makefile.gtk.orig 2011-12-10 12:35:15.000000000 +0000
++++ unix/Makefile.gtk
+@@ -119,14 +119,14 @@ GTK_CONFIG = sh -c 'pkg-config gtk+-2.0
+
+ unexport CFLAGS # work around a weird issue with krb5-config
+
+-CFLAGS = -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ \
++CFLAGS += -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ \
+ -I../macosx/ $(shell $(GTK_CONFIG) --cflags) -D _FILE_OFFSET_BITS=64
+ XLDFLAGS = $(LDFLAGS) $(shell $(GTK_CONFIG) --libs)
+ ULDFLAGS = $(LDFLAGS)
+ ifeq (,$(findstring NO_GSSAPI,$(COMPAT)))
+ ifeq (,$(findstring STATIC_GSSAPI,$(COMPAT)))
+-XLDFLAGS+= -ldl
+-ULDFLAGS+= -ldl
++XLDFLAGS+= ${DL_LIBS}
++ULDFLAGS+= ${DL_LIBS}
+ else
+ CFLAGS+= -DNO_LIBDL $(shell $(KRB5CONFIG) --cflags gssapi)
+ XLDFLAGS+= $(shell $(KRB5CONFIG) --libs gssapi)
+@@ -136,7 +136,7 @@ endif
+ INSTALL=install
+ INSTALL_PROGRAM=$(INSTALL)
+ INSTALL_DATA=$(INSTALL)
+-prefix=/usr/local
++prefix=${PREFIX}
+ exec_prefix=$(prefix)
+ bindir=$(exec_prefix)/bin
+ mandir=$(prefix)/man
diff --git a/security/putty/patches/patch-an b/security/putty/patches/patch-unix_gtkwin.c
index 398024755b1..5940e5a6d1e 100644
--- a/security/putty/patches/patch-an
+++ b/security/putty/patches/patch-unix_gtkwin.c
@@ -1,12 +1,10 @@
-$NetBSD: patch-an,v 1.1 2009/02/25 18:08:01 roy Exp $
+$NetBSD: patch-unix_gtkwin.c,v 1.1.2.2 2012/02/23 15:53:56 tron Exp $
Make the home/end keys work on BSD servers as well as Linux ones
-Index: unix/gtkwin.c
-===================================================================
---- unix/gtkwin.c (revision 8466)
-+++ unix/gtkwin.c (working copy)
-@@ -979,9 +979,17 @@
+--- unix/gtkwin.c.orig 2011-05-07 10:57:19.000000000 +0000
++++ unix/gtkwin.c
+@@ -1033,9 +1033,17 @@ gint key_event(GtkWidget *widget, GdkEve
use_ucsoutput = FALSE;
goto done;
}
@@ -15,7 +13,7 @@ Index: unix/gtkwin.c
- use_ucsoutput = FALSE;
+ /* Home/End */
+ if (code == 1 || code == 4) {
-+ /* Send the correct XTerm or rxvt codes for home/end
++ /* Send the correct XTerm or rxvt codes for home/end
+ * We used to send ^[1~ and [4~ for Xterm,
+ * but those are Linux console */
+ const char *he;
diff --git a/security/putty/patches/patch-unix_uxnet.c b/security/putty/patches/patch-unix_uxnet.c
new file mode 100644
index 00000000000..a636645f461
--- /dev/null
+++ b/security/putty/patches/patch-unix_uxnet.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-unix_uxnet.c,v 1.1.2.2 2012/02/23 15:53:57 tron Exp $
+
+--- unix/uxnet.c.orig 2009-08-06 22:55:15.000000000 +0000
++++ unix/uxnet.c
+@@ -526,10 +526,10 @@ static int try_connect(Actual_Socket soc
+ {
+ int s;
+ union sockaddr_union u;
+- const union sockaddr_union *sa;
++ const union sockaddr_union *sa = NULL;
+ int err = 0;
+ short localport;
+- int fl, salen, family;
++ int fl, salen = 0, family;
+
+ /*
+ * Remove the socket from the tree before we overwrite its
diff --git a/security/putty/patches/patch-al b/security/putty/patches/patch-windows_window.c
index 98c81f4d8fd..148888a5593 100644
--- a/security/putty/patches/patch-al
+++ b/security/putty/patches/patch-windows_window.c
@@ -1,12 +1,10 @@
-$NetBSD: patch-al,v 1.1 2009/02/25 18:08:01 roy Exp $
+$NetBSD: patch-windows_window.c,v 1.1.2.2 2012/02/23 15:53:57 tron Exp $
Make the home/end keys work on BSD servers as well as Linux ones
-Index: windows/window.c
-===================================================================
---- windows/window.c (revision 8466)
-+++ windows/window.c (working copy)
-@@ -4189,8 +4189,17 @@
+--- windows/window.c.orig 2011-07-16 11:26:19.000000000 +0000
++++ windows/window.c
+@@ -4302,8 +4302,17 @@ static int TranslateKey(UINT message, WP
p += sprintf((char *) p, "\x1BO%c", code + 'P' - 11);
return p - output;
}
@@ -16,12 +14,12 @@ Index: windows/window.c
+ if (code == 1 || code == 4) {
+ /* Send the correct XTerm or rxvt codes for home/end
+ * We used to send ^[1~ and [4~ for Xterm,
-+ * but those are Linux console */
++ * but those are Linux console */
+ const char *he;
+ if (cfg.rxvt_homeend)
-+ he = code == 1 ? "\x1B[7~" : "\x1B[8~";
++ he = code == 1 ? "\x1B[7~" : "\x1B[8~";
+ else
-+ he = code == 1 ? "\x1BOH" : "\x1BOF";
++ he = code == 1 ? "\x1BOH" : "\x1BOF";
+ p += sprintf((char *) p, he);
return p - output;
}