aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-12-27 10:15:15 +0800
committersteve <steve@FreeBSD.org>1999-12-27 10:15:15 +0800
commit746b5d337cbfed8a8d3482f84806701db8bc30bc (patch)
treea81a330916c7c86b04e545ad1fbdcdf430d73a0f
parent3c7b31c4a59c2318bf8af74acdea690bef46087d (diff)
downloadfreebsd-ports-gnome-746b5d337cbfed8a8d3482f84806701db8bc30bc.tar.gz
freebsd-ports-gnome-746b5d337cbfed8a8d3482f84806701db8bc30bc.tar.zst
freebsd-ports-gnome-746b5d337cbfed8a8d3482f84806701db8bc30bc.zip
Adding jesred version 1.2pl1.
A redirector for Squid. PR: 14869 Submitted by: Denis Shaposhnikov <dsh@wizard.vlink.ru>
-rw-r--r--www/Makefile1
-rw-r--r--www/jesred/Makefile31
-rw-r--r--www/jesred/distinfo1
-rw-r--r--www/jesred/files/patch-aa46
-rw-r--r--www/jesred/files/patch-ab11
-rw-r--r--www/jesred/pkg-comment1
-rw-r--r--www/jesred/pkg-descr10
-rw-r--r--www/jesred/pkg-plist5
8 files changed, 106 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 9f364bc86791..5deff972ce38 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -46,6 +46,7 @@
SUBDIR += httperf
SUBDIR += hypermail
SUBDIR += ijb
+ SUBDIR += jesred
SUBDIR += libghttp
SUBDIR += libwww
SUBDIR += libxpg4-ns
diff --git a/www/jesred/Makefile b/www/jesred/Makefile
new file mode 100644
index 000000000000..26629cdd347b
--- /dev/null
+++ b/www/jesred/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: jesred
+# Version required: 1.2.pl1
+# Date created: Mon Nov 8 17:42:20 MSK 1999
+# Whom: dsh@vlink.ru
+#
+# $FreeBSD$
+#
+
+DISTNAME= jesred-1.2pl1
+PKGNAME= jesred-1.2.1
+CATEGORIES= www
+MASTER_SITES= http://ivs.cs.uni-magdeburg.de/~elkner/webtools/src/
+
+MAINTAINER= dsh@vlink.ru
+
+RUN_DEPENDS= squid:${PORTSDIR}/www/squid22
+
+do-install:
+ ${INSTALL_PROGRAM} ${COPY} ${WRKSRC}/jesred ${PREFIX}/libexec
+ ${SED} "s!%%PREFIX%%!${PREFIX}!" < ${WRKSRC}/etc/jesred.conf \
+ > ${WRKSRC}/etc/jesred.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/etc/jesred.conf.sample ${PREFIX}/etc/squid
+ ${INSTALL_DATA} ${COPY} ${WRKSRC}/etc/redirect.acl \
+ ${PREFIX}/etc/squid/redirect.acl.sample
+ ${INSTALL_DATA} ${COPY} ${WRKSRC}/etc/redirect.rules \
+ ${PREFIX}/etc/squid/redirect.rules.sample
+ @[ -f ${PREFIX}/etc/squid/jesred.conf ] || \
+ ${CP} ${PREFIX}/etc/squid/jesred.conf.sample \
+ ${PREFIX}/etc/squid/jesred.conf
+
+.include <bsd.port.mk>
diff --git a/www/jesred/distinfo b/www/jesred/distinfo
new file mode 100644
index 000000000000..325d0e263b3b
--- /dev/null
+++ b/www/jesred/distinfo
@@ -0,0 +1 @@
+MD5 (jesred-1.2pl1.tar.gz) = 8d7009e0700996dbc28540d1a8f7c36d
diff --git a/www/jesred/files/patch-aa b/www/jesred/files/patch-aa
new file mode 100644
index 000000000000..820af33d9800
--- /dev/null
+++ b/www/jesred/files/patch-aa
@@ -0,0 +1,46 @@
+--- Makefile.orig Sat Jul 25 07:19:50 1998
++++ Makefile Mon Nov 8 18:22:45 1999
+@@ -2,20 +2,20 @@
+ # HINT: If you want to run the program on an UltraSPARC driven machine,
+ # I recommend to use Sun C-Compiler >= 4.0 or gcc >= 2.8.0 with
+ # optimization level >= 4 for best performance.
+-CC=cc
++#CC=cc
+
+-INCLUDE = -I.
+-LDFLAGS =
++#INCLUDE = -I.
++#LDFLAGS =
+
+ # Compiler Options
+
+-AC_CFLAGS = -xO5 -mr -s -xcrossfile #-g -xsb # SUN cc >= 4.0
++#AC_CFLAGS = -xO5 -mr -s -xcrossfile #-g -xsb # SUN cc >= 4.0
+ #AC_CFLAGS = -O3 -s # SGI cc, AIX cc
+ #AC_CFLAGS = -O5 -s # GNU cc
+
+ # extra Libraries ( we need this for inet_addr(char *) only )
+
+-XTRA_LIBS = -lnsl # Solaris 2.x
++#XTRA_LIBS = -lnsl # Solaris 2.x
+ #XTRA_LIBS = # AIX 4.2, Linux 2.x.x, IRIX 5.x, 6.x
+
+ # if you want to have the option, to enable debug message logging,
+@@ -49,7 +49,7 @@
+ # If jesred is compiled without -DUSE_ACCEL the ACCEL strings in the
+ # redirect rules are ignored, if there are some.
+ #
+-# DEFS = -DUSE_ACCEL
++DEFS = -DUSE_ACCEL -DDEFAULT_PATH=\"${PREFIX}/etc/squid\"
+
+ # That's it - no further changes should be necessary ;-)
+ # ===========================================================================
+@@ -66,7 +66,7 @@
+ CFILES = $(patsubst %.o,%.c,$(OBJS))
+
+ PROGS = jesred
+-CFLAGS = $(AC_CFLAGS) $(INCLUDE)
++CFLAGS += $(AC_CFLAGS) $(INCLUDE)
+ LIBS = -L. $(XTRA_LIBS)
+
+ .SUFFIXES: .o
diff --git a/www/jesred/files/patch-ab b/www/jesred/files/patch-ab
new file mode 100644
index 000000000000..023f711c9236
--- /dev/null
+++ b/www/jesred/files/patch-ab
@@ -0,0 +1,11 @@
+--- path.h.orig Sat Jul 25 03:03:13 1998
++++ path.h Mon Nov 8 18:15:30 1999
+@@ -7,6 +7,8 @@
+
+ /* change this to the path, which contains your jesred.conf */
+
++#ifndef DEFAULT_PATH
+ #define DEFAULT_PATH "/local/squid/etc"
++#endif
+
+ #endif
diff --git a/www/jesred/pkg-comment b/www/jesred/pkg-comment
new file mode 100644
index 000000000000..2e85d205cc8c
--- /dev/null
+++ b/www/jesred/pkg-comment
@@ -0,0 +1 @@
+A redirector for Squid
diff --git a/www/jesred/pkg-descr b/www/jesred/pkg-descr
new file mode 100644
index 000000000000..ceef957d8d7b
--- /dev/null
+++ b/www/jesred/pkg-descr
@@ -0,0 +1,10 @@
+Jesred is a very fast and highly configurable redirector for the Squid
+Internet Object Cache. It was derived from Chris Foote's and Wayne
+Piekarski's Squirm 1.0 betaB and some code from Squid itself, but is
+about 2-3x faster than the original version and has some additional
+features.
+
+WWW: http://ivs.cs.uni-magdeburg.de/~elkner/webtools/jesred/
+
+-- Denis Shaposhnikov
+dsh@vlink.ru
diff --git a/www/jesred/pkg-plist b/www/jesred/pkg-plist
new file mode 100644
index 000000000000..99ff1e35b488
--- /dev/null
+++ b/www/jesred/pkg-plist
@@ -0,0 +1,5 @@
+etc/squid/jesred.conf.sample
+@exec [ -f %B/jesred.conf ] || /bin/cp %B/%f %B/jesred.conf
+etc/squid/redirect.acl.sample
+etc/squid/redirect.rules.sample
+libexec/jesred