summaryrefslogtreecommitdiff
path: root/www/junkbuster-zlib/files
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2000-11-13 17:27:22 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2000-11-13 17:27:22 +0000
commitbfecff3502b45f803610829ea6713217e76be6a6 (patch)
treeb4e1486f2049f439468e70fbdb1abfce4f643512 /www/junkbuster-zlib/files
parentAdd freetype2 after a repo-copy from print/freerype. (diff)
Add junkbuster-zlib, a modified version of Internet Junkbuster Proxy, which in
addition to ads zapping can authomatically compress html pages being sent to the client. Port has been repo-copied from www/junkbuster.
Diffstat (limited to 'www/junkbuster-zlib/files')
-rw-r--r--www/junkbuster-zlib/files/junkbuster.sh.in6
-rw-r--r--www/junkbuster-zlib/files/patch-aa27
-rw-r--r--www/junkbuster-zlib/files/patch-ag14
-rw-r--r--www/junkbuster-zlib/files/patch-al18
-rw-r--r--www/junkbuster-zlib/files/patch-an11
5 files changed, 52 insertions, 24 deletions
diff --git a/www/junkbuster-zlib/files/junkbuster.sh.in b/www/junkbuster-zlib/files/junkbuster.sh.in
index 9f3e639a9494..b30cb43d308b 100644
--- a/www/junkbuster-zlib/files/junkbuster.sh.in
+++ b/www/junkbuster-zlib/files/junkbuster.sh.in
@@ -2,9 +2,9 @@
case $1 in
start)
- test -d JDIR -a -x PREFIX/sbin/junkbuster -a -f JDIR/configfile || exit 1
- cd JDIR
- su -m nobody -c "PREFIX/sbin/junkbuster configfile &"
+ test -d %%JDIR%% -a -x %%PREFIX%%/sbin/junkbuster -a -f %%JDIR%%/configfile || exit 1
+ cd %%JDIR%%
+ su -m nobody -c "%%PREFIX%%/sbin/junkbuster configfile &"
echo -n " junkbuster"
;;
stop)
diff --git a/www/junkbuster-zlib/files/patch-aa b/www/junkbuster-zlib/files/patch-aa
index 08cddfae34e0..59a1478d4e9d 100644
--- a/www/junkbuster-zlib/files/patch-aa
+++ b/www/junkbuster-zlib/files/patch-aa
@@ -1,20 +1,31 @@
-diff -ruN /usr/ports/www/ijb/work/ijb20/Makefile ./Makefile
---- /usr/ports/www/ijb/work/ijb20/Makefile Mon Feb 28 02:35:10 2000
-+++ ./Makefile Mon Feb 28 02:37:39 2000
-@@ -8,10 +8,11 @@
+--- Makefile.orig Fri Aug 4 15:40:15 2000
++++ Makefile Fri Nov 3 12:23:48 2000
+@@ -5,20 +5,20 @@
+
+ # set include and library paths for the zlib compression library
+ #
+-ZLIB_INC_FLAGS=-I../zlib
+-ZLIB_LIB_FLAGS=-L ../zlib
++#ZLIB_INC_FLAGS=-I../zlib
++#ZLIB_LIB_FLAGS=-L ../zlib
+
+ DEFAULT_CFLAGS = -I. $(ZLIB_INC_FLAGS) $(REGEX) -DSTDC_HEADERS -DHAVE_STRING
+
PROG = junkbuster
O = o
RM = rm -f
-MORE_CFLAGS = -g
+MORE_CFLAGS =
+ LD = $(CC) $(CFLAGS) $(ZLIB_LIB)
+ LDFLAGS = -lz
# use this for Solaris 2.x
- #LDFLAGS = -lnsl -lsocket
+-#LDFLAGS = -lnsl -lsocket -lz
+LDFLAGS += -lgnuregex
# use these for SunOS 4.x
- #LDFLAGS = -nsl
-@@ -47,10 +48,10 @@
+ #LDFLAGS = -nsl -lz
+@@ -63,10 +63,10 @@
#MORE_CFLAGS = -relax_pointers
#LDFLAGS = -map junkbuster.xMAP
@@ -26,4 +37,4 @@ diff -ruN /usr/ports/www/ijb/work/ijb20/Makefile ./Makefile
+ encode.$(O) ssplit.$(O) socks4.$(O) acl.$(O) win32.$(O)
$(PROG): $(OBJS)
- $(CC) $(CFLAGS) -o $(PROG) $(OBJS) $(LDFLAGS)
+ $(LD) -o $(PROG) $(ZLIB_LIB_FLAGS) $(OBJS) $(LDFLAGS)
diff --git a/www/junkbuster-zlib/files/patch-ag b/www/junkbuster-zlib/files/patch-ag
index 7850ba53c513..c8e942b32401 100644
--- a/www/junkbuster-zlib/files/patch-ag
+++ b/www/junkbuster-zlib/files/patch-ag
@@ -1,7 +1,6 @@
-diff -ruN /usr/ports/www/ijb/work/ijb20/jcc.c ./jcc.c
---- /usr/ports/www/ijb/work/ijb20/jcc.c Mon Feb 28 02:35:10 2000
-+++ ./jcc.c Mon Feb 28 02:31:06 2000
-@@ -39,7 +39,7 @@
+--- jcc.c.orig Fri Nov 3 12:28:39 2000
++++ jcc.c Fri Nov 3 12:31:58 2000
+@@ -39,11 +39,12 @@
#endif
#ifdef REGEX
@@ -10,4 +9,9 @@ diff -ruN /usr/ports/www/ijb/work/ijb20/jcc.c ./jcc.c
#endif
#include "jcc.h"
-Binary files /usr/ports/www/ijb/work/ijb20/junkbuster and ./junkbuster differ
+-#include "zutil.h"
++#include "zlib.h"
++#define DEF_MEM_LEVEL 8
+
+ char *prog;
+
diff --git a/www/junkbuster-zlib/files/patch-al b/www/junkbuster-zlib/files/patch-al
index 6b78b5f1a731..98010e51f392 100644
--- a/www/junkbuster-zlib/files/patch-al
+++ b/www/junkbuster-zlib/files/patch-al
@@ -1,12 +1,14 @@
-diff -ruN /usr/ports/www/ijb/work/ijb20/ssplit.c ./ssplit.c
---- /usr/ports/www/ijb/work/ijb20/ssplit.c Mon Feb 28 02:35:10 2000
-+++ ./ssplit.c Mon Feb 28 02:31:06 2000
-@@ -18,6 +18,8 @@
+--- ssplit.c.orig Fri Aug 4 09:39:24 2000
++++ ssplit.c Fri Nov 3 12:24:59 2000
+@@ -22,9 +22,10 @@
* l = flag indicating whether to ignore leading field separators
*/
+#include "loaders.h"
-+#include <stdlib.h>
- #include <string.h>
-
- int ssplit(char *s, char *c, char *v[], int n, int m, int l)
+ #include <stdlib.h> /* For free() */
+ #include <stdio.h> /* Required by jcc.h */
+-#include "gnu_regex.h"
++#include "gnuregex.h"
+ #include "jcc.h" /* For zalloc() */
+ #undef DEBUG /* DEBUG macro use in this file is not */
+ /* consistent with use in jcc.h */
diff --git a/www/junkbuster-zlib/files/patch-an b/www/junkbuster-zlib/files/patch-an
new file mode 100644
index 000000000000..cc89552a1df2
--- /dev/null
+++ b/www/junkbuster-zlib/files/patch-an
@@ -0,0 +1,11 @@
+--- bind.c 2000/11/03 10:27:18 1.1
++++ bind.c 2000/11/03 10:27:22
+@@ -37,7 +37,7 @@
+ #endif
+
+ #ifdef REGEX
+-#include <gnu_regex.h>
++#include <gnuregex.h>
+ #endif
+
+ #include "jcc.h" /* For atoip() */