diff options
author | agc <agc@pkgsrc.org> | 1999-08-05 13:09:27 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1999-08-05 13:09:27 +0000 |
commit | 55185663ece55b5c13bbcccb27a0d32e37a1a649 (patch) | |
tree | 14e958aac47b45cd4fd85819cfd9845756833d09 /net/socks4/patches | |
parent | b4ba7a4beea8734dc1555f1b031e381ce4cd888f (diff) | |
download | pkgsrc-55185663ece55b5c13bbcccb27a0d32e37a1a649.tar.gz |
Make this package work on Solaris:
+ Makefile patches to work out what OS is being used.
+ Solaris 2.6 (at least) has herror, so don't try to redefine it
+ Pass down CC value from package Makefile
+ Don't pass down Zoularis CPPFLAGS from package Makefile
+ Regen patch-sum file
Diffstat (limited to 'net/socks4/patches')
-rw-r--r-- | net/socks4/patches/patch-aa | 49 | ||||
-rw-r--r-- | net/socks4/patches/patch-af | 15 |
2 files changed, 54 insertions, 10 deletions
diff --git a/net/socks4/patches/patch-aa b/net/socks4/patches/patch-aa index 2441f04e9c7..9331d6d0667 100644 --- a/net/socks4/patches/patch-aa +++ b/net/socks4/patches/patch-aa @@ -1,9 +1,13 @@ -$NetBSD: patch-aa,v 1.4 1999/02/10 15:16:46 frueauf Exp $ +$NetBSD: patch-aa,v 1.5 1999/08/05 13:09:28 agc Exp $ ---- Makefile.orig Wed Sep 6 19:24:02 1995 -+++ Makefile Tue Jan 19 15:53:43 1999 -@@ -5,7 +5,7 @@ +--- Makefile.orig Thu Sep 7 03:24:02 1995 ++++ Makefile Thu Aug 5 13:50:46 1999 +@@ -3,9 +3,11 @@ + SHELL=/bin/sh + ++OPSYS!= uname -s ++ #SOCKS=-DSOCKS # or -SOCKS=-Dconnect=Rconnect -Dgetsockname=Rgetsockname -Dlisten=Rlisten -Daccept=Raccept -Drcmd=Rrcmd -Dbind=Rbind -Dselect=Rselect @@ -11,7 +15,7 @@ $NetBSD: patch-aa,v 1.4 1999/02/10 15:16:46 frueauf Exp $ # If the second definition of SOCKS is used, you MUST also # define SHORTENED_RBIND -@@ -19,7 +19,7 @@ +@@ -19,7 +21,7 @@ # It should be this current directory. # If your system has getcwd() but no getwd(), uncomment the next line: @@ -20,7 +24,7 @@ $NetBSD: patch-aa,v 1.4 1999/02/10 15:16:46 frueauf Exp $ #If your system doesn't have waitpid(), uncomment the nextline: #NO_WAITPID=-DNO_WAITPID -@@ -43,16 +43,16 @@ +@@ -43,16 +45,16 @@ # Define RCMD and SUPPORT_RCMD if you want to support Rrcmd, which is required # for SOCKSified rlogin, rsh, and rcp. @@ -41,7 +45,7 @@ $NetBSD: patch-aa,v 1.4 1999/02/10 15:16:46 frueauf Exp $ # 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 +73,13 @@ +@@ -73,13 +75,13 @@ #BIND_RESOLVER=-DBIND_RESOLVER # Directory into which to install the man pages @@ -58,7 +62,7 @@ $NetBSD: patch-aa,v 1.4 1999/02/10 15:16:46 frueauf Exp $ # SunOS 4.1.x should use #CC=cc -@@ -103,13 +103,13 @@ +@@ -103,13 +105,13 @@ #GETPASS=getpass.o # IRIX 5 should use @@ -79,7 +83,30 @@ $NetBSD: patch-aa,v 1.4 1999/02/10 15:16:46 frueauf Exp $ # Ultrix 4.0 should use #CC=cc -@@ -174,13 +174,13 @@ +@@ -156,13 +158,15 @@ + #GETPASS= + + # SOLARIS should use +-#CC=cc +-#RESOLV_LIB=-lresolv -lnsl -lsocket +-#OTHER_CFLAGS=-DSOLARIS -Dindex=strchr -Drindex=strrchr $(SHORTENED_RBIND) -DUSE_DIRENT $(GETCWD) $(FASCIST) -DCOMPAT $(TRY_PASV) +-#RANLIB=/bin/true +-#OS=solaris2.2 +-#INSTALL=install +-#GETPASS=getpass.o ++.if ${OPSYS} == "SunOS" ++#CC=cc ++RESOLV_LIB=-lresolv -lnsl -lsocket ++OTHER_CFLAGS=-DSOLARIS -Dindex=strchr -Drindex=strrchr $(SHORTENED_RBIND) -DUSE_DIRENT $(GETCWD) $(FASCIST) -DCOMPAT $(TRY_PASV) ++RANLIB=/bin/true ++OS=solaris2.2 ++INSTALL=install ++GETPASS=getpass.o ++.endif + + # 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 @@ #RESOLV_LIB=-linet -lc_s # netBSD should use @@ -90,6 +117,7 @@ $NetBSD: patch-aa,v 1.4 1999/02/10 15:16:46 frueauf Exp $ -#INSTALL=install -#GETPASS= -#RESOLV_LIB= ++.if ${OPSYS} == "NetBSD" +OTHER_CFLAGS = $(GETCWD) $(SHORTENED_RBIND) $(FASCIST) $(TRY_PASV) -Dunix=1 +CC=cc +RANLIB=ranlib @@ -97,10 +125,11 @@ $NetBSD: patch-aa,v 1.4 1999/02/10 15:16:46 frueauf Exp $ +INSTALL=install -c +GETPASS= +RESOLV_LIB= ++.endif # FreeBSD should use: #CC=cc -@@ -413,3 +413,11 @@ +@@ -413,3 +419,11 @@ ( cd $$i ; $(MAKE) clean) done diff --git a/net/socks4/patches/patch-af b/net/socks4/patches/patch-af new file mode 100644 index 00000000000..4882435fd7a --- /dev/null +++ b/net/socks4/patches/patch-af @@ -0,0 +1,15 @@ +$NetBSD: patch-af,v 1.1 1999/08/05 13:09:28 agc Exp $ + +Solaris 2.6 appears to have herror(), so don't redefine it. + +--- rftp/ftp.c 1999/08/05 12:56:00 1.1 ++++ rftp/ftp.c 1999/08/05 12:56:45 +@@ -112,7 +112,7 @@ + FILE *cin, *cout; + FILE *dataconn(); + +-#if !defined(SVR3) && !defined(BIND_RESOLVER) && !defined(LINUX) ++#if !defined(SVR3) && !defined(BIND_RESOLVER) && !defined(LINUX) && !defined(SOLARIS) + + /* >>> YDL */ + #if !defined(BSD) || (BSD - 43 <= 0) |