Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Nov 1999 12:36:57 +0300 (MSK)
From:      dsh@wizard.vlink.ru
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/14869: New FreeBSD port for jesred-1.2.pl1
Message-ID:  <19991114093657.B2CBF3C139@wizard.vlink.ru>

next in thread | raw e-mail | index | archive | help

>Number:         14869
>Category:       ports
>Synopsis:       New FreeBSD port for jesred-1.2.pl1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 14 01:40:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Denis Shaposhnikov
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
>Environment:

	

>Description:

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.

>How-To-Repeat:



>Fix:
	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	jesred/
#	jesred/Makefile
#	jesred/files
#	jesred/files/md5
#	jesred/pkg
#	jesred/pkg/PLIST
#	jesred/pkg/COMMENT
#	jesred/pkg/DESCR
#	jesred/patches
#	jesred/patches/patch-aa
#	jesred/patches/patch-ab
#	jesred/patches/patch-ac
#
echo c - jesred/
mkdir -p jesred/ > /dev/null 2>&1
echo x - jesred/Makefile
sed 's/^X//' >jesred/Makefile << 'END-of-jesred/Makefile'
X# New ports collection makefile for:	jesred
X# Version required:	1.2.pl1
X# Date created:		Mon Nov  8 17:42:20 MSK 1999
X# Whom:			dsh@vlink.ru
X#
X# $Id$
X#
X
XDISTNAME=	jesred-1.2pl1
XCATEGORIES=	www
XMASTER_SITES=	http://ivs.cs.uni-magdeburg.de/~elkner/webtools/src/
X
XMAINTAINER=	dsh@vlink.ru
X
XRUN_DEPENDS=	squid:${PORTSDIR}/www/squid22
X
Xdo-install:
X	${INSTALL_PROGRAM} ${COPY} ${WRKSRC}/jesred ${PREFIX}/libexec
X	${SED} "s!%%PREFIX%%!${PREFIX}!" < ${WRKSRC}/etc/jesred.conf \
X		> ${WRKSRC}/etc/jesred.conf.sample
X	${INSTALL_DATA} ${WRKSRC}/etc/jesred.conf.sample ${PREFIX}/etc/squid
X	${INSTALL_DATA} ${COPY} ${WRKSRC}/etc/redirect.acl \
X		${PREFIX}/etc/squid/redirect.acl.sample
X	${INSTALL_DATA} ${COPY} ${WRKSRC}/etc/redirect.rules \
X		${PREFIX}/etc/squid/redirect.rules.sample
X	@[ -f ${PREFIX}/etc/squid/jesred.conf ] || \
X		${CP} ${PREFIX}/etc/squid/jesred.conf.sample \
X		${PREFIX}/etc/squid/jesred.conf
X
X.include <bsd.port.mk>
END-of-jesred/Makefile
echo c - jesred/files
mkdir -p jesred/files > /dev/null 2>&1
echo x - jesred/files/md5
sed 's/^X//' >jesred/files/md5 << 'END-of-jesred/files/md5'
XMD5 (jesred-1.2pl1.tar.gz) = 8d7009e0700996dbc28540d1a8f7c36d
END-of-jesred/files/md5
echo c - jesred/pkg
mkdir -p jesred/pkg > /dev/null 2>&1
echo x - jesred/pkg/PLIST
sed 's/^X//' >jesred/pkg/PLIST << 'END-of-jesred/pkg/PLIST'
Xetc/squid/jesred.conf.sample
X@exec [ -f %B/jesred.conf ] || /bin/cp %B/%f %B/jesred.conf
Xetc/squid/redirect.acl.sample
Xetc/squid/redirect.rules.sample
Xlibexec/jesred
END-of-jesred/pkg/PLIST
echo x - jesred/pkg/COMMENT
sed 's/^X//' >jesred/pkg/COMMENT << 'END-of-jesred/pkg/COMMENT'
XA redirector for Squid.
END-of-jesred/pkg/COMMENT
echo x - jesred/pkg/DESCR
sed 's/^X//' >jesred/pkg/DESCR << 'END-of-jesred/pkg/DESCR'
XJesred is a very fast and highly configurable redirector for the Squid
XInternet Object Cache. It was derived from Chris Foote's and Wayne
XPiekarski's Squirm 1.0 betaB and some code from Squid itself, but is
Xabout 2-3x faster than the original version and has some additional
Xfeatures.
X
XWWW: http://ivs.cs.uni-magdeburg.de/~elkner/webtools/jesred/
X
X-- Denis Shaposhnikov
Xdsh@vlink.ru
END-of-jesred/pkg/DESCR
echo c - jesred/patches
mkdir -p jesred/patches > /dev/null 2>&1
echo x - jesred/patches/patch-aa
sed 's/^X//' >jesred/patches/patch-aa << 'END-of-jesred/patches/patch-aa'
X--- Makefile.orig	Sat Jul 25 07:19:50 1998
X+++ Makefile	Mon Nov  8 18:22:45 1999
X@@ -2,20 +2,20 @@
X # HINT: If you want to run the program on an UltraSPARC driven machine,
X #       I recommend to use Sun C-Compiler >= 4.0 or gcc >= 2.8.0 with
X #       optimization level >= 4 for best performance. 
X-CC=cc
X+#CC=cc
X 
X-INCLUDE         = -I.
X-LDFLAGS         = 
X+#INCLUDE         = -I.
X+#LDFLAGS         = 
X 
X # Compiler Options
X 
X-AC_CFLAGS       = -xO5 -mr -s -xcrossfile #-g -xsb     	# SUN cc >= 4.0
X+#AC_CFLAGS       = -xO5 -mr -s -xcrossfile #-g -xsb     	# SUN cc >= 4.0
X #AC_CFLAGS	= -O3 -s				# SGI cc, AIX cc
X #AC_CFLAGS	= -O5 -s				# GNU cc
X 
X # extra Libraries ( we need this for inet_addr(char *) only )
X 
X-XTRA_LIBS       = -lnsl		# Solaris 2.x 
X+#XTRA_LIBS       = -lnsl		# Solaris 2.x 
X #XTRA_LIBS	=		# AIX 4.2, Linux 2.x.x, IRIX 5.x, 6.x
X 
X # if you want to have the option, to enable debug message logging,
X@@ -49,7 +49,7 @@
X # If jesred is compiled without -DUSE_ACCEL the ACCEL strings in the
X # redirect rules are ignored, if there are some.
X # 
X-# DEFS = -DUSE_ACCEL
X+DEFS = -DUSE_ACCEL -DDEFAULT_PATH=\"${PREFIX}/etc/squid\"
X 
X # That's it - no further changes should be necessary ;-)
X # ===========================================================================
X@@ -66,7 +66,7 @@
X CFILES  = $(patsubst %.o,%.c,$(OBJS))
X 
X PROGS	= jesred
X-CFLAGS  = $(AC_CFLAGS) $(INCLUDE)
X+CFLAGS += $(AC_CFLAGS) $(INCLUDE)
X LIBS    = -L. $(XTRA_LIBS)
X 
X .SUFFIXES: .o
END-of-jesred/patches/patch-aa
echo x - jesred/patches/patch-ab
sed 's/^X//' >jesred/patches/patch-ab << 'END-of-jesred/patches/patch-ab'
X--- path.h.orig	Sat Jul 25 03:03:13 1998
X+++ path.h	Mon Nov  8 18:15:30 1999
X@@ -7,6 +7,8 @@
X 
X /* change this to the path, which contains your jesred.conf */
X 
X+#ifndef DEFAULT_PATH
X #define DEFAULT_PATH "/local/squid/etc"
X+#endif
X 
X #endif
END-of-jesred/patches/patch-ab
echo x - jesred/patches/patch-ac
sed 's/^X//' >jesred/patches/patch-ac << 'END-of-jesred/patches/patch-ac'
X--- etc/jesred.conf.orig	Sat Aug 15 08:17:54 1998
X+++ etc/jesred.conf	Mon Nov  8 18:54:12 1999
X@@ -1,17 +1,17 @@
X # file with IP addresses, for which URL rewriting is [not] allowed
X-allow = /local/squid/etc/redirect.acl
X+allow = %%PREFIX%%/etc/squid/redirect.acl.sample
X 
X # file with rules for URL rewriting
X-rules = /local/squid/etc/redirect.rules
X+rules = %%PREFIX%%/etc/squid/redirect.rules.sample
X 
X # log file for general, error and debug messages (empty value or commenting
X # this out disables logging)
X-redirect_log = /local/squid/logs/redirect.log
X+redirect_log = %%PREFIX%%/squid/logs/redirect.log
X 
X # log file for URL rewrites (empty value or commenting this out disables
X # logging of URL rewrites)
X # Log file format: Timestamp Client/Ident URL RURL NO
X-rewrite_log = /local/squid/logs/rewrite.log
X+rewrite_log = %%PREFIX%%/squid/logs/rewrite.log
X 
X # Debug mode: if set to yes and DEBUG option was compiled in, this enables
X # debug logging to redirect_log
END-of-jesred/patches/patch-ac
exit


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991114093657.B2CBF3C139>