diff options
author | xtraeme <xtraeme> | 2004-10-29 23:00:30 +0000 |
---|---|---|
committer | xtraeme <xtraeme> | 2004-10-29 23:00:30 +0000 |
commit | 58d1a0870af6be66fb1516d5539e3afebd6618a1 (patch) | |
tree | 5f31e745c1ca21a82fb9534f034266cc4687260e /security | |
parent | 095ec6bbe13678ddcb2b928dfb057fd31a98c6e7 (diff) | |
download | pkgsrc-58d1a0870af6be66fb1516d5539e3afebd6618a1.tar.gz |
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 (limited to 'security')
-rw-r--r-- | security/putty/DESCR | 5 | ||||
-rw-r--r-- | security/putty/Makefile | 40 | ||||
-rw-r--r-- | security/putty/PLIST | 15 | ||||
-rw-r--r-- | security/putty/distinfo | 6 | ||||
-rw-r--r-- | security/putty/patches/patch-aa | 63 | ||||
-rw-r--r-- | security/putty/patches/patch-ab | 34 |
6 files changed, 163 insertions, 0 deletions
diff --git a/security/putty/DESCR b/security/putty/DESCR new file mode 100644 index 00000000000..d66f59045f2 --- /dev/null +++ b/security/putty/DESCR @@ -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 --git a/security/putty/Makefile b/security/putty/Makefile new file mode 100644 index 00000000000..3501cecbb15 --- /dev/null +++ b/security/putty/Makefile @@ -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 +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 --git a/security/putty/PLIST b/security/putty/PLIST new file mode 100644 index 00000000000..fa9f7ebfa27 --- /dev/null +++ b/security/putty/PLIST @@ -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 --git a/security/putty/distinfo b/security/putty/distinfo new file mode 100644 index 00000000000..30313589e55 --- /dev/null +++ b/security/putty/distinfo @@ -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 --git a/security/putty/patches/patch-aa b/security/putty/patches/patch-aa new file mode 100644 index 00000000000..3fa384421bf --- /dev/null +++ b/security/putty/patches/patch-aa @@ -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 --git a/security/putty/patches/patch-ab b/security/putty/patches/patch-ab new file mode 100644 index 00000000000..dacbc9f7e75 --- /dev/null +++ b/security/putty/patches/patch-ab @@ -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); |