diff options
author | taca <taca@pkgsrc.org> | 2011-09-12 16:46:45 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2011-09-12 16:46:45 +0000 |
commit | 4b824b92ed11e7aec5e448450e08e7296c16368f (patch) | |
tree | 0f37bacbf6a4a6c51fb75f42c85cb6279602e6cb /www/ffproxy/patches | |
parent | e13901a925eadaab48a5b7c88fc244d7fa6a993b (diff) | |
download | pkgsrc-4b824b92ed11e7aec5e448450e08e7296c16368f.tar.gz |
* Fix build problem by using own getline().
* Add LICENSE.
* Add comments to patch files.
Diffstat (limited to 'www/ffproxy/patches')
-rw-r--r-- | www/ffproxy/patches/patch-aa | 5 | ||||
-rw-r--r-- | www/ffproxy/patches/patch-ab | 55 | ||||
-rw-r--r-- | www/ffproxy/patches/patch-ac | 4 |
3 files changed, 61 insertions, 3 deletions
diff --git a/www/ffproxy/patches/patch-aa b/www/ffproxy/patches/patch-aa index 9d06aad7689..bea5fb32ceb 100644 --- a/www/ffproxy/patches/patch-aa +++ b/www/ffproxy/patches/patch-aa @@ -1,4 +1,7 @@ -$NetBSD: patch-aa,v 1.1.1.1 2006/01/05 19:12:35 garbled Exp $ +$NetBSD: patch-aa,v 1.2 2011/09/12 16:46:45 taca Exp $ + +Stop installing configuration which handled by pkgsrc's pkginstall framework. + --- Makefile.in.orig 2006-01-05 11:50:45.000000000 -0700 +++ Makefile.in 2006-01-05 11:51:59.000000000 -0700 @@ -62,7 +62,7 @@ diff --git a/www/ffproxy/patches/patch-ab b/www/ffproxy/patches/patch-ab index e4074f33c7d..2f35b7a2e43 100644 --- a/www/ffproxy/patches/patch-ab +++ b/www/ffproxy/patches/patch-ab @@ -1,5 +1,47 @@ ---- request.c.orig 2008-10-16 22:22:52.000000000 +0200 -+++ request.c 2008-10-16 22:23:27.000000000 +0200 +$NetBSD: patch-ab,v 1.2 2011/09/12 16:46:45 taca Exp $ + +* Avoid using function name "getline" which conflict with system + defined one. +* Fix parameter to setsockopt(2). + +--- request.c.orig 2004-12-31 17:59:54.000000000 +0900 ++++ request.c 2010-01-29 16:46:16.000000000 +0900 +@@ -49,7 +49,7 @@ + + static int read_header(int, struct req *); + static char sgetc(int); +-static size_t getline(int, char[], int); ++static size_t get_line(int, char[], int); + static int do_request(int, struct req *); + + void +@@ -63,7 +63,7 @@ + (void) memset(&r, 0, sizeof(r)); + r.cl = clinfo; + +- if (getline(cl, buf, sizeof(buf)) < 1) ++ if (get_line(cl, buf, sizeof(buf)) < 1) + *buf = '\0'; + + if ((http_url(&r, buf)) == 0) { +@@ -189,7 +189,7 @@ + char *b, *p; + + i = 0; +- while ((len = getline(cl, buf, sizeof(buf))) > 0 && i < sizeof(r->header) - 1) { ++ while ((len = get_line(cl, buf, sizeof(buf))) > 0 && i < sizeof(r->header) - 1) { + b = buf; + while (isspace((int) *b) && *(b++) != '\0'); + if (*b == '\0') +@@ -228,7 +228,7 @@ + } + + static size_t +-getline(int s, char buf[], int len) ++get_line(int s, char buf[], int len) + { + int c; + size_t i; @@ -288,7 +288,7 @@ extern struct cfg config; unsigned long ip; @@ -18,3 +60,12 @@ DEBUG(("do_request() => setsockopt() failed for %s port %d", r->host, r->port)); return E_CON; } else if (connect(s, (struct sockaddr *) & addr, sizeof(addr)) == -1) { +@@ -493,7 +493,7 @@ + } + if (r->type != CONNECT) { + i = 0; +- while ((len = getline(s, buf, sizeof(buf))) > 0 && i < sizeof(r->header) - 1) { ++ while ((len = get_line(s, buf, sizeof(buf))) > 0 && i < sizeof(r->header) - 1) { + DEBUG(("do_request() => got remote header line: (%s)", buf)); + r->header[i] = (char *) my_alloc(len + 1); + (void) strcpy(r->header[i++], buf); diff --git a/www/ffproxy/patches/patch-ac b/www/ffproxy/patches/patch-ac index fd5e63d8dbb..d643d03fd05 100644 --- a/www/ffproxy/patches/patch-ac +++ b/www/ffproxy/patches/patch-ac @@ -1,3 +1,7 @@ +$NetBSD: patch-ac,v 1.2 2011/09/12 16:46:45 taca Exp $ + +* Fix parameter to setsockopt(2). + --- socket.c.orig 2008-10-16 22:22:57.000000000 +0200 +++ socket.c 2008-10-16 22:23:42.000000000 +0200 @@ -64,7 +64,7 @@ |