summaryrefslogtreecommitdiff
path: root/net/socks4/patches
diff options
context:
space:
mode:
authorjoerg <joerg>2005-12-27 13:48:56 +0000
committerjoerg <joerg>2005-12-27 13:48:56 +0000
commite0ee6b4b516d4e2b73507918ee99e676304463b2 (patch)
tree48224a05522ed78a9baaf67cd018f84ff55ffaae /net/socks4/patches
parent9c7f31633101353c0d9f028f0f0b57d294a24421 (diff)
downloadpkgsrc-e0ee6b4b516d4e2b73507918ee99e676304463b2.tar.gz
Fix errno. Fix GCC 3.4+ due to mismatch between implied and
real prototype. Add DragonFly.
Diffstat (limited to 'net/socks4/patches')
-rw-r--r--net/socks4/patches/patch-aa20
-rw-r--r--net/socks4/patches/patch-af34
-rw-r--r--net/socks4/patches/patch-ah21
-rw-r--r--net/socks4/patches/patch-ai18
-rw-r--r--net/socks4/patches/patch-aj12
-rw-r--r--net/socks4/patches/patch-ak20
-rw-r--r--net/socks4/patches/patch-al12
-rw-r--r--net/socks4/patches/patch-am12
-rw-r--r--net/socks4/patches/patch-an13
9 files changed, 142 insertions, 20 deletions
diff --git a/net/socks4/patches/patch-aa b/net/socks4/patches/patch-aa
index 278b4377e0c..4c71304789d 100644
--- a/net/socks4/patches/patch-aa
+++ b/net/socks4/patches/patch-aa
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.7 2003/05/01 22:03:50 jmmv Exp $
+$NetBSD: patch-aa,v 1.8 2005/12/27 13:48:56 joerg Exp $
---- Makefile.orig Wed Sep 6 22:24:02 1995
+--- Makefile.orig 1995-09-07 02:24:02.000000000 +0000
+++ Makefile
@@ -3,9 +3,11 @@
@@ -15,7 +15,7 @@ $NetBSD: patch-aa,v 1.7 2003/05/01 22:03:50 jmmv Exp $
# If the second definition of SOCKS is used, you MUST also
# define SHORTENED_RBIND
-@@ -19,7 +21,7 @@
+@@ -19,7 +21,7 @@ SHORTENED_RBIND=-DSHORTENED_RBIND
# It should be this current directory.
# If your system has getcwd() but no getwd(), uncomment the next line:
@@ -24,7 +24,7 @@ $NetBSD: patch-aa,v 1.7 2003/05/01 22:03:50 jmmv Exp $
#If your system doesn't have waitpid(), uncomment the nextline:
#NO_WAITPID=-DNO_WAITPID
-@@ -43,15 +45,15 @@
+@@ -43,15 +45,15 @@ TRY_PASV=-DTRY_PASV
# Define RCMD and SUPPORT_RCMD if you want to support Rrcmd, which is required
# for SOCKSified rlogin, rsh, and rcp.
@@ -43,7 +43,7 @@ $NetBSD: patch-aa,v 1.7 2003/05/01 22:03:50 jmmv Exp $
#OPTIMIZE=-O
# Be careful with the OPTIMIZE flag. SunPro's SC2.0.1, for example, is
# knwon to produce incorrect code when -O is used.
-@@ -73,13 +75,13 @@
+@@ -73,13 +75,13 @@ OPTIMIZE=-g
#BIND_RESOLVER=-DBIND_RESOLVER
# Directory into which to install the man pages
@@ -60,7 +60,7 @@ $NetBSD: patch-aa,v 1.7 2003/05/01 22:03:50 jmmv Exp $
# SunOS 4.1.x should use
#CC=cc
-@@ -103,13 +105,13 @@
+@@ -103,13 +105,13 @@ CLIENTS_BIN_DIR = /usr/local/bin
#GETPASS=getpass.o
# IRIX 5 should use
@@ -81,7 +81,7 @@ $NetBSD: patch-aa,v 1.7 2003/05/01 22:03:50 jmmv Exp $
# Ultrix 4.0 should use
#CC=cc
-@@ -156,13 +158,15 @@
+@@ -156,13 +158,15 @@ GETPASS=getpass.o
#GETPASS=
# SOLARIS should use
@@ -103,7 +103,7 @@ $NetBSD: patch-aa,v 1.7 2003/05/01 22:03:50 jmmv Exp $
# Interactive Systems Unix should use
#OTHER_CFLAGS = -DISC -DSVR3 -Dindex=strchr -Drindex=strrchr -D_XOPEN_SOURCE -DGETCWD $(FASCIST) $(SHORTENED_RBIND) -DCOMPAT $(TRY_PASV)
-@@ -174,13 +178,15 @@
+@@ -174,13 +178,15 @@ GETPASS=getpass.o
#RESOLV_LIB=-linet -lc_s
# netBSD should use
@@ -114,7 +114,7 @@ $NetBSD: patch-aa,v 1.7 2003/05/01 22:03:50 jmmv Exp $
-#INSTALL=install
-#GETPASS=
-#RESOLV_LIB=
-+.if ${OPSYS} == "NetBSD"
++.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly"
+OTHER_CFLAGS = $(GETCWD) $(SHORTENED_RBIND) $(FASCIST) $(TRY_PASV) -Dunix=1
+CC=cc
+RANLIB=ranlib
@@ -126,7 +126,7 @@ $NetBSD: patch-aa,v 1.7 2003/05/01 22:03:50 jmmv Exp $
# FreeBSD should use:
#CC=cc
-@@ -413,3 +419,11 @@
+@@ -413,3 +419,11 @@ clean:
( cd $$i ; $(MAKE) clean) done
diff --git a/net/socks4/patches/patch-af b/net/socks4/patches/patch-af
index 36bffa3fa8e..424c6fb1992 100644
--- a/net/socks4/patches/patch-af
+++ b/net/socks4/patches/patch-af
@@ -1,10 +1,8 @@
-$NetBSD: patch-af,v 1.2 2004/09/08 15:03:15 sketch Exp $
+$NetBSD: patch-af,v 1.3 2005/12/27 13:48:56 joerg Exp $
-Solaris 2.6 appears to have herror(), so don't redefine it.
-
---- rftp/ftp.c.orig 1995-09-07 03:24:03.000000000 +0100
-+++ rftp/ftp.c 2004-09-08 15:55:37.000000000 +0100
-@@ -74,7 +74,7 @@
+--- rftp/ftp.c.orig 1995-09-07 02:24:03.000000000 +0000
++++ rftp/ftp.c
+@@ -74,7 +74,7 @@ static char sccsid[] = "@(#)ftp.c 5.38 (
#include <netdb.h>
#include <fcntl.h>
#include <pwd.h>
@@ -13,7 +11,13 @@ Solaris 2.6 appears to have herror(), so don't redefine it.
#ifdef FASCIST
#include <syslog.h>
-@@ -112,7 +112,7 @@
+@@ -107,12 +107,12 @@ unsigned long socks_bind_remoteAddr; /*
+ int pasvmode = 0;
+
+ extern char *strerror();
+-extern int connected, errno;
++extern int connected;
+
FILE *cin, *cout;
FILE *dataconn();
@@ -22,12 +26,22 @@ Solaris 2.6 appears to have herror(), so don't redefine it.
/* >>> YDL */
#if !defined(BSD) || (BSD - 43 <= 0)
-@@ -358,11 +358,9 @@
+@@ -158,6 +158,8 @@ herror(s)
+
+ #endif /* !defined(SVR3) && !defined(BIND_RESOLVER) && !defined(LINUX) */
+
++int command(char *fmt, ...);
++
+
+ char *
+ hookup(host, port)
+@@ -358,11 +360,10 @@ cmdabort()
}
/*VARARGS*/
-command(va_alist)
-va_dcl
++int
+command(char *fmt, ...)
{
va_list ap;
@@ -35,7 +49,7 @@ Solaris 2.6 appears to have herror(), so don't redefine it.
int r;
sig_t oldintr;
void cmdabort();
-@@ -370,8 +368,7 @@
+@@ -370,8 +371,7 @@ va_dcl
abrtflag = 0;
if (debug) {
printf("---> ");
@@ -45,7 +59,7 @@ Solaris 2.6 appears to have herror(), so don't redefine it.
if (strncmp("PASS ", fmt, 5) == 0)
printf("PASS XXXX");
else
-@@ -386,8 +383,7 @@
+@@ -386,8 +386,7 @@ va_dcl
return (0);
}
oldintr = signal(SIGINT, cmdabort);
diff --git a/net/socks4/patches/patch-ah b/net/socks4/patches/patch-ah
new file mode 100644
index 00000000000..359f9f086e1
--- /dev/null
+++ b/net/socks4/patches/patch-ah
@@ -0,0 +1,21 @@
+$NetBSD: patch-ah,v 1.1 2005/12/27 13:48:56 joerg Exp $
+
+--- lib/Rconnect.c.orig 2005-12-18 19:23:30.000000000 +0000
++++ lib/Rconnect.c
+@@ -2,7 +2,7 @@
+ #include <sys/time.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+-#include <sys/errno.h>
++#include <errno.h>
+ #if defined(ISC)
+ #include <net/errno.h>
+ #endif /* #if defined(ISC) */
+@@ -40,7 +40,6 @@ char *socks_serverlist;
+
+ char socks_cmd[] = "connect";
+
+-extern int errno;
+ extern char *getenv();
+ extern char *getlogin();
+ static struct sockaddr_in cursin;
diff --git a/net/socks4/patches/patch-ai b/net/socks4/patches/patch-ai
new file mode 100644
index 00000000000..c2cd92883c8
--- /dev/null
+++ b/net/socks4/patches/patch-ai
@@ -0,0 +1,18 @@
+$NetBSD: patch-ai,v 1.1 2005/12/27 13:48:56 joerg Exp $
+
+--- lib/SendGetDst.c.orig 2005-12-18 19:24:40.000000000 +0000
++++ lib/SendGetDst.c
+@@ -4,12 +4,11 @@
+ #endif /* #if defined(ISC) */
+ #include <sys/time.h>
+ #include <syslog.h>
+-#include <sys/errno.h>
++#include <errno.h>
+ #if defined(ISC)
+ #include <net/errno.h>
+ #endif /* #if defined(ISC) */
+ #include "socks.h"
+-extern int errno;
+
+ #define NULL ((char *)0)
+
diff --git a/net/socks4/patches/patch-aj b/net/socks4/patches/patch-aj
new file mode 100644
index 00000000000..0726b6378c9
--- /dev/null
+++ b/net/socks4/patches/patch-aj
@@ -0,0 +1,12 @@
+$NetBSD: patch-aj,v 1.1 2005/12/27 13:48:56 joerg Exp $
+
+--- rfinger/finger.c.orig 1995-02-21 22:30:11.000000000 +0000
++++ rfinger/finger.c
+@@ -14,7 +14,6 @@
+ #endif /* #if defined(ISC) */
+ #include "socks.h"
+
+-extern int errno;
+ extern char *strrchr();
+ char *Progname;
+ extern char *getenv();
diff --git a/net/socks4/patches/patch-ak b/net/socks4/patches/patch-ak
new file mode 100644
index 00000000000..c237cbf998b
--- /dev/null
+++ b/net/socks4/patches/patch-ak
@@ -0,0 +1,20 @@
+$NetBSD: patch-ak,v 1.1 2005/12/27 13:48:56 joerg Exp $
+
+--- rftp/ftp_var.h.orig 1994-08-22 19:52:16.000000000 +0000
++++ rftp/ftp_var.h
+@@ -136,14 +136,13 @@ extern char *tail();
+ extern char *index();
+ extern char *rindex();
+ extern char *remglob();
+-extern int errno;
+ extern char *mktemp();
+ extern char *strncpy();
+ extern char *strncat();
+ extern char *strcat();
+ extern char *strcpy();
+
+-#if defined (COMPAT) || defined (ultrix) || defined(SCO)
++#if !defined(__DragonFly__) && (defined (COMPAT) || defined (ultrix) || defined(SCO))
+ typedef void (*sig_t)();
+
+ static char *strerror(errnum) {
diff --git a/net/socks4/patches/patch-al b/net/socks4/patches/patch-al
new file mode 100644
index 00000000000..f17a5bbf425
--- /dev/null
+++ b/net/socks4/patches/patch-al
@@ -0,0 +1,12 @@
+$NetBSD: patch-al,v 1.1 2005/12/27 13:48:56 joerg Exp $
+
+--- rftp/glob.c.orig 1994-10-17 20:21:37.000000000 +0000
++++ rftp/glob.c
+@@ -82,7 +82,6 @@ static int tglob();
+ char **ftpglob();
+ char *globerr;
+ char *home;
+-extern int errno;
+ static char *strspl(), *strend();
+ char **copyblk();
+
diff --git a/net/socks4/patches/patch-am b/net/socks4/patches/patch-am
new file mode 100644
index 00000000000..5dc37eafa8d
--- /dev/null
+++ b/net/socks4/patches/patch-am
@@ -0,0 +1,12 @@
+$NetBSD: patch-am,v 1.1 2005/12/27 13:48:56 joerg Exp $
+
+--- rftp/cmds.c.orig 2005-12-18 19:30:53.000000000 +0000
++++ rftp/cmds.c
+@@ -80,7 +80,6 @@ extern char *getenv();
+ extern char *index();
+ extern char *rindex();
+ extern char *strerror();
+-extern int errno;
+ extern off_t restart_point;
+ extern char reply_string[];
+
diff --git a/net/socks4/patches/patch-an b/net/socks4/patches/patch-an
new file mode 100644
index 00000000000..1fd201b2798
--- /dev/null
+++ b/net/socks4/patches/patch-an
@@ -0,0 +1,13 @@
+$NetBSD: patch-an,v 1.1 2005/12/27 13:48:56 joerg Exp $
+
+--- rtelnet/telnet/externs.h.orig 2005-12-18 19:47:51.000000000 +0000
++++ rtelnet/telnet/externs.h
+@@ -73,8 +73,6 @@ typedef unsigned char cc_t;
+
+ #define SUBBUFSIZE 256
+
+-extern int errno; /* outside this world */
+-
+ #if !defined(P)
+ # ifdef __STDC__
+ # define P(x) x