summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2002-05-09 16:55:51 +0000
committertaca <taca@pkgsrc.org>2002-05-09 16:55:51 +0000
commita637f157839d1abd185bcb30cc6f71005b640522 (patch)
treebb99c0ddba4950c27f4de16ca39f788538ccd7b4
parent51d4056b0218fe7e599aa7d68712ee5e388dd94d (diff)
downloadpkgsrc-a637f157839d1abd185bcb30cc6f71005b640522.tar.gz
Add experimental support for building on Solaris.
-rw-r--r--net/ftpproxy/Makefile4
-rw-r--r--net/ftpproxy/distinfo5
-rw-r--r--net/ftpproxy/patches/patch-ab13
-rw-r--r--net/ftpproxy/patches/patch-ac15
-rw-r--r--net/ftpproxy/patches/patch-ad14
5 files changed, 49 insertions, 2 deletions
diff --git a/net/ftpproxy/Makefile b/net/ftpproxy/Makefile
index 0284bb08b83..f0a6767f5af 100644
--- a/net/ftpproxy/Makefile
+++ b/net/ftpproxy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2002/05/09 16:20:58 taca Exp $
+# $NetBSD: Makefile,v 1.2 2002/05/09 16:55:51 taca Exp $
#
DISTNAME= ftpproxy-1.1.5
@@ -18,6 +18,8 @@ COMMENT= application level gateway for FTP
.if ${OPSYS} == "SunOS"
NROFF?= nroff
MANDOC?= -man
+LIBS+= "-lsocket -lnsl"
+MAKE_ENV+= LIBS=${LIBS}
.else
NROFF?= nroff
MANDOC?= -mandoc
diff --git a/net/ftpproxy/distinfo b/net/ftpproxy/distinfo
index ff15d1ce355..9622ec490c8 100644
--- a/net/ftpproxy/distinfo
+++ b/net/ftpproxy/distinfo
@@ -1,5 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2002/05/09 16:20:58 taca Exp $
+$NetBSD: distinfo,v 1.2 2002/05/09 16:55:52 taca Exp $
SHA1 (ftpproxy-1.1.5.tgz) = 5796cdf8cc9965c37e4edd0efe4e3d9693cbbbb2
Size (ftpproxy-1.1.5.tgz) = 148035 bytes
SHA1 (patch-aa) = 7b2a27861266e230a982e47f6af9855b6ba95f39
+SHA1 (patch-ab) = d5cf9e8ae746ffc27f1bcb9ac10216c01f43aee7
+SHA1 (patch-ac) = 888745f4220e18b7595bc06d8b5912e7b7fbde2c
+SHA1 (patch-ad) = 9a1ed2222e51f6a57fd98806055ee839934cec95
diff --git a/net/ftpproxy/patches/patch-ab b/net/ftpproxy/patches/patch-ab
new file mode 100644
index 00000000000..f8ac8f85330
--- /dev/null
+++ b/net/ftpproxy/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2002/05/09 16:55:52 taca Exp $
+
+--- src/Makefile.orig Tue Jan 22 00:46:03 2002
++++ src/Makefile
+@@ -12,7 +12,7 @@
+
+
+ ftp.proxy: $(FTPPROXY)
+- $(CC) -o $@ $(FTPPROXY)
++ $(CC) -o $@ $(FTPPROXY) $(LIBS)
+
+
+ clean:
diff --git a/net/ftpproxy/patches/patch-ac b/net/ftpproxy/patches/patch-ac
new file mode 100644
index 00000000000..ebdc905fc12
--- /dev/null
+++ b/net/ftpproxy/patches/patch-ac
@@ -0,0 +1,15 @@
+$NetBSD: patch-ac,v 1.1 2002/05/09 16:55:53 taca Exp $
+
+--- src/ftp.c.orig Tue Feb 5 02:11:21 2002
++++ src/ftp.c
+@@ -848,8 +848,8 @@
+ {
+ char varname[200];
+
+- snprintf (varname, sizeof(varname) - 2, "%s%s", x->config->varname, var);
+- setenv(varname, value != NULL? value: "", 1);
++ snprintf (varname, sizeof(varname) - 2, "%s%s=%s", x->config->varname,
++ var, (value != NULL)? value: "");
+
+ return (0);
+ }
diff --git a/net/ftpproxy/patches/patch-ad b/net/ftpproxy/patches/patch-ad
new file mode 100644
index 00000000000..67373118a18
--- /dev/null
+++ b/net/ftpproxy/patches/patch-ad
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.1 2002/05/09 16:55:53 taca Exp $
+
+--- src/main.c.orig Tue Feb 5 03:00:27 2002
++++ src/main.c
+@@ -46,6 +46,9 @@
+ #include "ip-lib.h"
+ #include "lib.h"
+
++#ifndef LOG_FTP
++#define LOG_FTP LOG_DAEMON
++#endif
+
+ char *program = "";
+ char progname[80] = "";