Bläddra i källkod

upgrading package: putty 0.57 -> 0.58

Ralf S. Engelschall 20 år sedan
förälder
incheckning
2cf37a616c
2 ändrade filer med 73 tillägg och 101 borttagningar
  1. 71 99
      putty/putty.patch
  2. 2 2
      putty/putty.spec

+ 71 - 99
putty/putty.patch

@@ -1,79 +1,80 @@
 Index: unix/Makefile.gtk
---- unix/Makefile.gtk.orig	2004-10-26 19:31:21 +0200
-+++ unix/Makefile.gtk	2004-10-27 08:23:37 +0200
-@@ -78,9 +78,9 @@
+--- unix/Makefile.gtk.orig	2005-04-05 21:40:17 +0200
++++ unix/Makefile.gtk	2005-04-08 18:13:16 +0200
+@@ -80,9 +80,9 @@
  
  # You can define this path to point at your tools if you need to
  # TOOLPATH = /opt/gcc/bin
 -CC = $(TOOLPATH)cc
 +CC = gcc
  
--CFLAGS = -O2 -Wall -Werror -g -I.././ -I../charset/ -I../unix/ -I../mac/ \
-+CFLAGS = -O2 -Wall -g -I. -I.. -I../charset -I../unix/ -I../mac/ \
- 		`gtk-config --cflags`
+-CFLAGS = -O2 -Wall -Werror -g -I.././ -I../charset/ -I../windows/ -I../unix/ \
++CFLAGS = -O2 -Wall -I.././ -I../charset/ -I../windows/ -I../unix/ \
+ 		-I../mac/ -I../macosx/ `gtk-config --cflags`
  XLDFLAGS = `gtk-config --libs`
  ULDFLAGS =#
-@@ -152,13 +152,13 @@
- 		sbcsdat.o settings.o signal.o slookup.o terminal.o toucs.o \
- 		tree234.o utf8.o uxcfg.o uxmisc.o uxprint.o uxsel.o \
- 		uxstore.o uxucs.o version.o wcwidth.o xenc.o xkeysym.o
+@@ -157,14 +157,14 @@
+ 		timing.o toucs.o tree234.o utf8.o uxcfg.o uxmisc.o uxprint.o \
+ 		uxpterm.o uxpty.o uxsel.o uxsignal.o uxstore.o uxucs.o \
+ 		version.o wcwidth.o xenc.o xkeysym.o
 -	$(CC) $(XLDFLAGS) -o $@ be_none.o cmdline.o config.o dialog.o \
 +	$(CC) -o $@ be_none.o cmdline.o config.o dialog.o \
- 		fromucs.o gtkcols.o gtkdlg.o gtkpanel.o ldisc.o ldiscucs.o \
- 		localenc.o logging.o macenc.o mimeenc.o misc.o nocproxy.o \
- 		pterm.o ptermm.o pty.o sbcs.o sbcsdat.o settings.o signal.o \
- 		slookup.o terminal.o toucs.o tree234.o utf8.o uxcfg.o \
- 		uxmisc.o uxprint.o uxsel.o uxstore.o uxucs.o version.o \
--		wcwidth.o xenc.o xkeysym.o 
-+		wcwidth.o xenc.o xkeysym.o $(XLDFLAGS)
- 
- putty: be_all.o cmdline.o config.o cproxy.o dialog.o fromucs.o gtkcols.o \
- 		gtkdlg.o gtkpanel.o ldisc.o ldiscucs.o localenc.o logging.o \
-@@ -171,7 +171,7 @@
- 		uxcfg.o uxmisc.o uxnet.o uxnoise.o uxprint.o uxproxy.o \
- 		uxputty.o uxsel.o uxstore.o uxucs.o version.o wcwidth.o \
- 		wildcard.o x11fwd.o xenc.o xkeysym.o
--	$(CC) $(XLDFLAGS) -o $@ be_all.o cmdline.o config.o cproxy.o \
-+	$(CC) -o $@ be_all.o cmdline.o config.o cproxy.o \
- 		dialog.o fromucs.o gtkcols.o gtkdlg.o gtkpanel.o ldisc.o \
- 		ldiscucs.o localenc.o logging.o macenc.o mimeenc.o misc.o \
- 		portfwd.o proxy.o pterm.o pty.o raw.o rlogin.o sbcs.o \
-@@ -182,7 +182,7 @@
- 		utf8.o ux_x11.o uxagentc.o uxcfg.o uxmisc.o uxnet.o \
- 		uxnoise.o uxprint.o uxproxy.o uxputty.o uxsel.o uxstore.o \
- 		uxucs.o version.o wcwidth.o wildcard.o x11fwd.o xenc.o \
+ 		fromucs.o gtkcfg.o gtkcols.o gtkdlg.o gtkpanel.o gtkwin.o \
+ 		ldisc.o ldiscucs.o localenc.o logging.o macenc.o mimeenc.o \
+ 		minibidi.o misc.o nocproxy.o sbcs.o sbcsdat.o settings.o \
+ 		slookup.o terminal.o time.o timing.o toucs.o tree234.o \
+ 		utf8.o uxcfg.o uxmisc.o uxprint.o uxpterm.o uxpty.o uxsel.o \
+ 		uxsignal.o uxstore.o uxucs.o version.o wcwidth.o xenc.o \
 -		xkeysym.o 
 +		xkeysym.o $(XLDFLAGS)
  
- puttygen: cmdgen.o import.o misc.o sshaes.o sshbn.o sshdes.o sshdss.o \
- 		sshdssg.o sshmd5.o sshprime.o sshpubk.o sshrand.o sshrsa.o \
-@@ -201,14 +201,14 @@
- 		uxcfg.o uxmisc.o uxnet.o uxprint.o uxproxy.o uxputty.o \
- 		uxsel.o uxstore.o uxucs.o version.o wcwidth.o xenc.o \
+ putty: be_all.o cmdline.o config.o cproxy.o dialog.o fromucs.o gtkcfg.o \
+ 		gtkcols.o gtkdlg.o gtkpanel.o gtkwin.o ldisc.o ldiscucs.o \
+@@ -178,7 +178,7 @@
+ 		uxprint.o uxproxy.o uxputty.o uxsel.o uxsignal.o uxstore.o \
+ 		uxucs.o version.o wcwidth.o wildcard.o x11fwd.o xenc.o \
  		xkeysym.o
+-	$(CC) $(XLDFLAGS) -o $@ be_all.o cmdline.o config.o cproxy.o \
++	$(CC) -o $@ be_all.o cmdline.o config.o cproxy.o \
+ 		dialog.o fromucs.o gtkcfg.o gtkcols.o gtkdlg.o gtkpanel.o \
+ 		gtkwin.o ldisc.o ldiscucs.o localenc.o logging.o macenc.o \
+ 		mimeenc.o minibidi.o misc.o pinger.o portfwd.o proxy.o raw.o \
+@@ -189,7 +189,7 @@
+ 		timing.o toucs.o tree234.o utf8.o ux_x11.o uxagentc.o \
+ 		uxcfg.o uxmisc.o uxnet.o uxnoise.o uxprint.o uxproxy.o \
+ 		uxputty.o uxsel.o uxsignal.o uxstore.o uxucs.o version.o \
+-		wcwidth.o wildcard.o x11fwd.o xenc.o xkeysym.o 
++		wcwidth.o wildcard.o x11fwd.o xenc.o xkeysym.o $(XLDFLAGS)
+ 
+ puttygen: cmdgen.o import.o misc.o notiming.o sshaes.o sshbn.o sshdes.o \
+ 		sshdss.o sshdssg.o sshmd5.o sshprime.o sshpubk.o sshrand.o \
+@@ -209,14 +209,14 @@
+ 		toucs.o tree234.o utf8.o uxcfg.o uxmisc.o uxnet.o uxprint.o \
+ 		uxproxy.o uxputty.o uxsel.o uxsignal.o uxstore.o uxucs.o \
+ 		version.o wcwidth.o xenc.o xkeysym.o
 -	$(CC) $(XLDFLAGS) -o $@ be_nossh.o cmdline.o config.o dialog.o \
 +	$(CC) -o $@ be_nossh.o cmdline.o config.o dialog.o \
- 		fromucs.o gtkcols.o gtkdlg.o gtkpanel.o ldisc.o ldiscucs.o \
- 		localenc.o logging.o macenc.o mimeenc.o misc.o nocproxy.o \
- 		proxy.o pterm.o pty.o raw.o rlogin.o sbcs.o sbcsdat.o \
- 		settings.o signal.o slookup.o telnet.o terminal.o toucs.o \
- 		tree234.o utf8.o uxcfg.o uxmisc.o uxnet.o uxprint.o \
- 		uxproxy.o uxputty.o uxsel.o uxstore.o uxucs.o version.o \
--		wcwidth.o xenc.o xkeysym.o 
-+		wcwidth.o xenc.o xkeysym.o $(XLDFLAGS)
+ 		fromucs.o gtkcfg.o gtkcols.o gtkdlg.o gtkpanel.o gtkwin.o \
+ 		ldisc.o ldiscucs.o localenc.o logging.o macenc.o mimeenc.o \
+ 		minibidi.o misc.o nocproxy.o pinger.o proxy.o raw.o rlogin.o \
+ 		sbcs.o sbcsdat.o settings.o slookup.o telnet.o terminal.o \
+ 		time.o timing.o toucs.o tree234.o utf8.o uxcfg.o uxmisc.o \
+ 		uxnet.o uxprint.o uxproxy.o uxputty.o uxsel.o uxsignal.o \
+-		uxstore.o uxucs.o version.o wcwidth.o xenc.o xkeysym.o 
++		uxstore.o uxucs.o version.o wcwidth.o xenc.o xkeysym.o $(XLDFLAGS)
  
- be_all.o: .././be_all.c .././putty.h .././puttyps.h .././network.h \
- 		.././misc.h .././winstuff.h ../mac/macstuff.h ../unix/unix.h \
-@@ -628,7 +628,7 @@
+ be_all.o: ../be_all.c ../putty.h ../puttyps.h ../network.h ../misc.h \
+ 		../windows/winstuff.h ../mac/macstuff.h ../macosx/osx.h \
+@@ -828,7 +828,7 @@
  
  version.o: FORCE;
  FORCE:
 -	if test -z "$(VER)" && (cd ..; md5sum -c manifest); then \
 +	if test -z "$(VER)" ; then \
- 		$(CC) $(COMPAT) $(FWHACK) $(XFLAGS) $(CFLAGS) `cat ../version.def` -c ../version.c; \
+ 		$(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) `cat ../version.def` -c ../version.c; \
  	else \
- 		$(CC) $(COMPAT) $(FWHACK) $(XFLAGS) $(CFLAGS) $(VER) -c ../version.c; \
-@@ -642,8 +642,6 @@
+ 		$(CC) $(COMPAT) $(XFLAGS) $(CFLAGS) $(VER) -c ../version.c; \
+@@ -849,8 +849,6 @@
  	$(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
@@ -82,54 +83,9 @@ Index: unix/Makefile.gtk
  	$(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
-Index: unix/pty.c
---- unix/pty.c.orig	2003-05-11 14:28:53.000000000 +0200
-+++ unix/pty.c	2004-02-13 21:38:36.000000000 +0100
-@@ -14,7 +14,12 @@
- #define _XOPEN_SOURCE
- #define _XOPEN_SOURCE_EXTENDED
- #define _GNU_SOURCE
-+#ifndef __FreeBSD__
- #include <features.h>
-+#else
-+#define OMIT_UTMP
-+#define BSD_PTYS
-+#endif
- 
- #include <stdio.h>
- #include <stdlib.h>
-@@ -32,6 +37,10 @@
- #include <sys/ioctl.h>
- #include <errno.h>
- 
-+#ifdef __FreeBSD__
-+#include <sys/stat.h>
-+#endif
-+
- #include "putty.h"
- 
- #ifndef FALSE
-@@ -567,9 +576,17 @@
- 	ioctl(slavefd, TIOCSCTTY, 1);
- 	pgrp = getpid();
- 	tcsetpgrp(slavefd, pgrp);
-+#ifdef __FreeBSD__
-+	setpgrp( pgrp, -1 );
-+#else
- 	setpgrp();
-+#endif
- 	close(open(pty_name, O_WRONLY, 0));
-+#ifdef __FreeBSD__
-+	setpgrp( pgrp, -1 );
-+#else
- 	setpgrp();
-+#endif
- 	/* Close everything _else_, for tidiness. */
- 	for (i = 3; i < 1024; i++)
- 	    close(i);
 Index: unix/uxucs.c
---- unix/uxucs.c.orig	2003-04-26 16:22:42.000000000 +0200
-+++ unix/uxucs.c	2004-02-13 21:38:36.000000000 +0100
+--- unix/uxucs.c.orig	2005-04-05 21:37:47 +0200
++++ unix/uxucs.c	2005-04-08 18:11:19 +0200
 @@ -12,6 +12,67 @@
  #include "terminal.h"
  #include "misc.h"
@@ -198,3 +154,19 @@ Index: unix/uxucs.c
  /*
   * Unix Unicode-handling routines.
   */
+Index: unix/uxpty.c
+--- unix/uxpty.c.orig	2005-04-05 21:37:47 +0200
++++ unix/uxpty.c	2005-04-08 18:15:33 +0200
+@@ -23,6 +23,12 @@
+ #include <sys/ioctl.h>
+ #include <errno.h>
+ 
++#ifdef __FreeBSD__
++#include <sys/stat.h>
++#define OMIT_UTMP
++#define BSD_PTYS
++#endif
++
+ #include "putty.h"
+ #include "tree234.h"
+ 

+ 2 - 2
putty/putty.spec

@@ -32,8 +32,8 @@ Distribution: OpenPKG
 Class:        EVAL
 Group:        Security
 License:      MIT-style
-Version:      0.57
-Release:      20050221
+Version:      0.58
+Release:      20050408
 
 #   list of sources
 Source0:      http://the.earth.li/~sgtatham/putty/%{version}/putty-%{version}.tar.gz