pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/putty Initial import of putty-0.56 from pkgsr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c91ff4c886e7
branches:  trunk
changeset: 482556:c91ff4c886e7
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Fri Oct 29 23:00:30 2004 +0000

description:
Initial import of putty-0.56 from pkgsrc-wip.

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.

diffstat:

 security/putty/DESCR            |   5 +++
 security/putty/Makefile         |  40 ++++++++++++++++++++++++++
 security/putty/PLIST            |  15 +++++++++
 security/putty/distinfo         |   6 +++
 security/putty/patches/patch-aa |  63 +++++++++++++++++++++++++++++++++++++++++
 security/putty/patches/patch-ab |  34 ++++++++++++++++++++++
 6 files changed, 163 insertions(+), 0 deletions(-)

diffs (187 lines):

diff -r 0495ec4fed10 -r c91ff4c886e7 security/putty/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/putty/DESCR      Fri Oct 29 23:00:30 2004 +0000
@@ -0,0 +1,5 @@
+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 -r 0495ec4fed10 -r c91ff4c886e7 security/putty/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/putty/Makefile   Fri Oct 29 23:00:30 2004 +0000
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/10/29 23:00:30 xtraeme Exp $
+#
+
+DISTNAME=      putty-0.56
+CATEGORIES=    security
+MASTER_SITES=  http://the.earth.li/~sgtatham/putty/latest/
+
+MAINTAINER=    xtraeme%NetBSD.org@localhost
+HOMEPAGE=      http://www.chiark.greenend.org.uk/~sgtatham/putty/
+COMMENT=       Free implementation of Telnet and SSH for Win32 and Unix platforms
+
+USE_BUILDLINK3=        yes
+USE_GNU_TOOLS+=        make
+USE_X11=       yes
+WRKSRC=                ${WRKDIR}/${DISTNAME}/unix
+
+MAKEFILE=      Makefile.gtk
+
+.include "../../mk/bsd.prefs.mk"
+
+.if empty(OPSYS:MLinux)
+CFLAGS+=       -DHAVE_NO_SETRESUID
+.endif
+
+.if !empty(USE_INET6:M[Yy][Ee][Ss])
+CFLAGS+=       -DIPV6
+.endif
+
+.if !empty(OPSYS:M*BSD)
+CFLAGS+=       -DOMIT_UTMP
+.endif
+
+# Unix98 ptys were added some weeks ago in NetBSD -current,
+# so use it if we have the device, otherwise use the old style.
+.if !exists(/dev/ptmx)
+CFLAGS+=       -DBSD_PTYS
+.endif
+
+.include "../../x11/gtk/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 0495ec4fed10 -r c91ff4c886e7 security/putty/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/putty/PLIST      Fri Oct 29 23:00:30 2004 +0000
@@ -0,0 +1,15 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/10/29 23:00:31 xtraeme 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 -r 0495ec4fed10 -r c91ff4c886e7 security/putty/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/putty/distinfo   Fri Oct 29 23:00:30 2004 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/10/29 23:00:30 xtraeme Exp $
+
+SHA1 (putty-0.56.tar.gz) = 5ab52f9ebf90577f708fc90650e7b54e6ef9120e
+Size (putty-0.56.tar.gz) = 1307512 bytes
+SHA1 (patch-aa) = 843dd63165d715ca7e6c3c4b573d9e5d560beae1
+SHA1 (patch-ab) = a96d4630fc8a74dd373fa66c3665ab17f6290797
diff -r 0495ec4fed10 -r c91ff4c886e7 security/putty/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/putty/patches/patch-aa   Fri Oct 29 23:00:30 2004 +0000
@@ -0,0 +1,63 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/10/29 23:00:31 xtraeme Exp $
+
+--- Makefile.gtk.orig  2004-10-30 00:39:30.000000000 +0200
++++ Makefile.gtk       2004-10-30 00:42:07.000000000 +0200
+@@ -78,16 +78,15 @@
+ 
+ # You can define this path to point at your tools if you need to
+ # TOOLPATH = /opt/gcc/bin
+-CC = $(TOOLPATH)cc
++#CC = $(TOOLPATH)cc
+ 
+-CFLAGS = -O2 -Wall -Werror -g -I.././ -I../charset/ -I../unix/ -I../mac/ \
+-              `gtk-config --cflags`
++CFLAGS += -I.././ -I../charset/ -I../unix/ -I../mac/ `gtk-config --cflags`
+ XLDFLAGS = `gtk-config --libs`
+-ULDFLAGS =#
+-INSTALL=install
+-INSTALL_PROGRAM=$(INSTALL)
+-INSTALL_DATA=$(INSTALL)
+-prefix=/usr/local
++ULDFLAGS = $(LDFLAGS)
++#INSTALL=install
++#INSTALL_PROGRAM=$(INSTALL)
++#BSD_INSTALL_DATA=$(INSTALL)
++prefix=$(PREFIX)
+ exec_prefix=$(prefix)
+ bindir=$(exec_prefix)/bin
+ mandir=$(prefix)/man
+@@ -634,20 +633,20 @@
+               $(CC) $(COMPAT) $(FWHACK) $(XFLAGS) $(CFLAGS) $(VER) -c ../version.c; \
+       fi
+ install:
+-      $(INSTALL_PROGRAM) -m 755 plink $(DESTDIR)$(bindir)/plink
+-      $(INSTALL_PROGRAM) -m 755 pscp $(DESTDIR)$(bindir)/pscp
+-      $(INSTALL_PROGRAM) -m 755 psftp $(DESTDIR)$(bindir)/psftp
+-      $(INSTALL_PROGRAM) -m 755 pterm $(DESTDIR)$(bindir)/pterm
+-      $(INSTALL_PROGRAM) -m 755 putty $(DESTDIR)$(bindir)/putty
+-      $(INSTALL_PROGRAM) -m 755 puttygen $(DESTDIR)$(bindir)/puttygen
+-      $(INSTALL_PROGRAM) -m 755 puttytel $(DESTDIR)$(bindir)/puttytel
+-      $(INSTALL_DATA) -m 644 ../doc/plink.1 $(DESTDIR)$(man1dir)/plink.1
+-      $(INSTALL_DATA) -m 644 ../doc/pscp.1 $(DESTDIR)$(man1dir)/pscp.1
+-      $(INSTALL_DATA) -m 644 ../doc/psftp.1 $(DESTDIR)$(man1dir)/psftp.1
+-      $(INSTALL_DATA) -m 644 ../doc/pterm.1 $(DESTDIR)$(man1dir)/pterm.1
+-      $(INSTALL_DATA) -m 644 ../doc/putty.1 $(DESTDIR)$(man1dir)/putty.1
+-      $(INSTALL_DATA) -m 644 ../doc/puttygen.1 $(DESTDIR)$(man1dir)/puttygen.1
+-      $(INSTALL_DATA) -m 644 ../doc/puttytel.1 $(DESTDIR)$(man1dir)/puttytel.1
++      $(BSD_INSTALL_PROGRAM) plink $(DESTDIR)$(bindir)/plink
++      $(BSD_INSTALL_PROGRAM) pscp $(DESTDIR)$(bindir)/pscp
++      $(BSD_INSTALL_PROGRAM) psftp $(DESTDIR)$(bindir)/psftp
++      $(BSD_INSTALL_PROGRAM) pterm $(DESTDIR)$(bindir)/pterm
++      $(BSD_INSTALL_PROGRAM) putty $(DESTDIR)$(bindir)/putty
++      $(BSD_INSTALL_PROGRAM) puttygen $(DESTDIR)$(bindir)/puttygen
++      $(BSD_INSTALL_PROGRAM) puttytel $(DESTDIR)$(bindir)/puttytel
++      $(BSD_INSTALL_DATA) ../doc/plink.1 $(DESTDIR)$(man1dir)/plink.1
++      $(BSD_INSTALL_DATA) ../doc/pscp.1 $(DESTDIR)$(man1dir)/pscp.1
++      $(BSD_INSTALL_DATA) ../doc/psftp.1 $(DESTDIR)$(man1dir)/psftp.1
++      $(BSD_INSTALL_DATA) ../doc/pterm.1 $(DESTDIR)$(man1dir)/pterm.1
++      $(BSD_INSTALL_DATA) ../doc/putty.1 $(DESTDIR)$(man1dir)/putty.1
++      $(BSD_INSTALL_DATA) ../doc/puttygen.1 $(DESTDIR)$(man1dir)/puttygen.1
++      $(BSD_INSTALL_DATA) ../doc/puttytel.1 $(DESTDIR)$(man1dir)/puttytel.1
+ 
+ install-strip:
+       $(MAKE) install INSTALL_PROGRAM="$(INSTALL_PROGRAM) -s"
diff -r 0495ec4fed10 -r c91ff4c886e7 security/putty/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/putty/patches/patch-ab   Fri Oct 29 23:00:30 2004 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/10/29 23:00:31 xtraeme Exp $
+
+--- pty.c.orig 2004-10-30 00:44:17.000000000 +0200
++++ pty.c      2004-10-30 00:46:49.000000000 +0200
+@@ -14,7 +14,11 @@
+ #define _XOPEN_SOURCE
+ #define _XOPEN_SOURCE_EXTENDED
+ #define _GNU_SOURCE
++#ifndef __NetBSD__ || !defined(__FreeBSD__) || !defined(__OpenBSD__)
+ #include <features.h>
++#else
++#include <sys/stat.h>
++#endif
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -574,9 +578,17 @@
+       ioctl(slavefd, TIOCSCTTY, 1);
+       pgrp = getpid();
+       tcsetpgrp(slavefd, pgrp);
++#ifdef __linux__
+       setpgrp();
++#else
++      setpgrp(pgrp, -1);
++#endif
+       close(open(pty_name, O_WRONLY, 0));
++#ifdef __linux__
+       setpgrp();
++#else
++      setpgrp(pgrp, -1);
++#endif
+       /* Close everything _else_, for tidiness. */
+       for (i = 3; i < 1024; i++)
+           close(i);



Home | Main Index | Thread Index | Old Index