Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Sep 2000 02:44:16 +0400 (MSD)
From:      oZZ@FreeBSD.org.ru
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/21318: new port www/oops - www-proxy server
Message-ID:  <200009162244.e8GMiGi06214@ozz.freebsd.org.ru>

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

>Number:         21318
>Category:       ports
>Synopsis:       new port www/oops - www-proxy server
>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:   Sat Sep 16 15:50:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Sergey Osokin
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Russian FreeBSD Team
>Environment:

	FreeBSD 5.0-CURRENT i386

>Description:

	new port www/oops - www-proxy server

>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:
#
#	oops
#	oops/Makefile
#	oops/pkg
#	oops/pkg/DESCR
#	oops/pkg/PLIST
#	oops/pkg/INSTALL
#	oops/pkg/COMMENT
#	oops/files
#	oops/files/md5
#	oops/files/oops.sh
#	oops/patches
#	oops/patches/patch-ab
#	oops/patches/patch-aa
#	oops/patch-ab
#
echo c - oops
mkdir -p oops > /dev/null 2>&1
echo x - oops/Makefile
sed 's/^X//' >oops/Makefile << 'END-of-oops/Makefile'
X# New ports collection makefile for:	oops
X# Date created:		15 August 2000
X# Whom:			Sergey Osokin aka oZZ <ozz@FreeBSD.org.ru>
X#
X# $FreeBSD: Exp $
X#
X
XPORTNAME=	oops
XPORTVERSION=	1.4.16
XCATEGORIES=	www
XMASTER_SITES=	http://zipper.paco.net/~igor/oops/
X
XMAINTAINER=	ozz@FreeBSD.org.ru
X
XLIB_DEPENDS=	db2.0:${PORTSDIR}/databases/db
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--sbindir=${PREFIX}/sbin \
X		--sysconfdir=${PREFIX}/etc/oops \
X		--localstatedir=/var/run \
X		--libdir=${PREFIX}/libexec/oops \
X		--enable-oops-user=oops
X
Xpre-install:
X	@PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
X
X.include <bsd.port.pre.mk>
X
Xpost-install:
X	@PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
X	@ ${ECHO} "------------------------------------------------------------"
X	@ ${ECHO} "Sample of configuration file placed at ${PREFIX}/etc/oops !"
X	@ ${ECHO} "Copy oops.cfg.sample to oops.cfg, then run server..."
X	@ ${ECHO} "------------------------------------------------------------"
X
X	@if [ ! -f ${PREFIX}/etc/rc.d/oops.sh ]; then \
X		${ECHO} "Installing ${PREFIX}/etc/rc.d/oops.sh startup file."; \
X		${INSTALL_SCRIPT} -m 751 ${FILESDIR}/oops.sh ${PREFIX}/etc/rc.d/oops.sh; \
X	fi
X
X.include <bsd.port.post.mk>
END-of-oops/Makefile
echo c - oops/pkg
mkdir -p oops/pkg > /dev/null 2>&1
echo x - oops/pkg/DESCR
sed 's/^X//' >oops/pkg/DESCR << 'END-of-oops/pkg/DESCR'
XOops - caching proxy server.
XOops! is a proxy server; the main aims of its development being
Xstable operation, service speed, main protocols support,
Xmodularity, ease at use. What is one more server for when there is
Xalready Squid? I personally was not satisfied with Squid on some
Xpoints, that is was why I wished to get rid of it. And that was done.
X
XBasic differences from Squid: 
XEach request is served by a separate thread, which allows to use all
Xavailable processors on multiprocessor machine. 
XCashed documents are stored in one or several big files. This makes
Xit possible to remove from the operational system a load on operation
Xwith directories and to speed up access to the documents, and to use
Xraw-devices as a storage of cashed objects either. 
XThe program modular structure provides extension of its function
Xwithout any change of the source code. 
XThe special attention was paid to the point of providing a stable,
Xcontinuous, unbreakable work, easy and simple
Xconfiguration/reconfiguration. Thus, for example, the reconfiguration
Xon the fly doesn't result in a breakaway of already established connections.
END-of-oops/pkg/DESCR
echo x - oops/pkg/PLIST
sed 's/^X//' >oops/pkg/PLIST << 'END-of-oops/pkg/PLIST'
Xsbin/oopsctl
Xsbin/oops
Xetc/oops/oops.cfg.sample
Xetc/oops/err_template.html.sample
Xetc/oops/auth_template.html.sample
Xetc/oops/passwd.sample
Xetc/oops/redir_rules.sample
Xetc/oops/redir_template.html.sample
Xetc/oops/accel_maps.sample
Xetc/oops/acl_local_networks.sample
Xetc/oops/tables/koi-alt.tab
Xetc/oops/tables/koi-iso.tab
Xetc/oops/tables/koi-win.tab
Xetc/rc.d/oops.sh
Xlibexec/oops/accel.so
Xlibexec/oops/berkeley_db_api.so
Xlibexec/oops/custom_log.so
Xlibexec/oops/err.so
Xlibexec/oops/fastredir.so
Xlibexec/oops/gigabase_db_api.so
Xlibexec/oops/lang.so
Xlibexec/oops/log_dummy.so
Xlibexec/oops/oopsctl_mod.so
Xlibexec/oops/passwd_file.so
Xlibexec/oops/redir.so
Xlibexec/oops/transparent.so
Xlibexec/oops/vary_header.so
X@dirrm libexec/oops
X@dirrm etc/oops/tables
X@dirrm etc/oops
END-of-oops/pkg/PLIST
echo x - oops/pkg/INSTALL
sed 's/^X//' >oops/pkg/INSTALL << 'END-of-oops/pkg/INSTALL'
X#!/bin/sh
X
Xuser=oops
Xgroup=wheel
X
Xask() {
X    local question default answer
X
X    question=$1
X    default=$2
X    if [ -z "${PACKAGE_BUILDING}" ]; then
X        read -p "${question} [${default}]? " answer
X    fi
X    if [ x${answer} = x ]; then
X        answer=${default}
X    fi
X    echo ${answer}
X}
X
Xyesno() {
X    local dflt question answer
X
X    question=$1
X    dflt=$2
X    while :; do
X        answer=$(ask "${question}" "${dflt}")
X        case "${answer}" in
X        [Yy]*)          return 0;;
X        [Nn]*)          return 1;;
X        esac
X        echo "Please answer yes or no."
X    done
X}
X
Xif [ x"$2" = xPRE-INSTALL ]; then
X    if /usr/sbin/pw user show "${user}" 2>/dev/null; then
X        echo "You already have a user \"${user}\", so I will use it."
X    else
X        echo "You need a user \"${user}\"."
X        if yesno "Would you like me to create it" y; then
X            /usr/sbin/pw useradd ${user} -g ${group} -h - -d /nonexistent \
X                -s /nonexistent -c "Postfix Mail System" || exit
X            echo "Done."
X        else
X            echo "Please create it, and try again."
X            exit 1
X        fi
X    fi
Xfi
END-of-oops/pkg/INSTALL
echo x - oops/pkg/COMMENT
sed 's/^X//' >oops/pkg/COMMENT << 'END-of-oops/pkg/COMMENT'
XOops - caching web proxy server. 
END-of-oops/pkg/COMMENT
echo c - oops/files
mkdir -p oops/files > /dev/null 2>&1
echo x - oops/files/md5
sed 's/^X//' >oops/files/md5 << 'END-of-oops/files/md5'
XMD5 (oops-1.4.16.tar.gz) = b3fb854c0ee5d7c23bca737377ea507e
END-of-oops/files/md5
echo x - oops/files/oops.sh
sed 's/^X//' >oops/files/oops.sh << 'END-of-oops/files/oops.sh'
X#!/bin/sh
X
Xif ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
X    echo "$0: Cannot determine the PREFIX" >&2
X    exit 1
Xfi
X
Xcase "$1" in
Xstart)
X	if [ -x ${PREFIX}/sbin/oopsctl ]; then
X		${PREFIX}/sbin/oopsctl start 2>&1 > /dev/null; echo -n ' oops'
X	fi
X	;;
Xstop)
X	if [ -x ${PREFIX}/sbin/oopsctl ]; then
X		${PREFIX}/sbin/oopsctl -s /tmp/oopsctl stop
X	fi
X	;;
X*)
X	echo "Usage: `basename $0` {start|stop}" >&2
X	;;
Xesac
X
Xexit 0
END-of-oops/files/oops.sh
echo c - oops/patches
mkdir -p oops/patches > /dev/null 2>&1
echo x - oops/patches/patch-ab
sed 's/^X//' >oops/patches/patch-ab << 'END-of-oops/patches/patch-ab'
X--- src/oops.cfg.in.orig	Thu Sep 14 15:35:50 2000
X+++ src/oops.cfg.in	Thu Sep 14 15:38:56 2000
X@@ -452,7 +452,7 @@
X 
X module oopsctl {
X 	# path to oopsctl unix socket
X-	socket_path	@OOPS_LOCALSTATEDIR@/oopsctl
X+	socket_path	/tmp/oopsctl
X 	# time to auto-refresh page (seconds)
X         html_refresh    300
X }
END-of-oops/patches/patch-ab
echo x - oops/patches/patch-aa
sed 's/^X//' >oops/patches/patch-aa << 'END-of-oops/patches/patch-aa'
X--- src/Makefile.in.orig	Thu Sep 14 13:19:39 2000
X+++ src/Makefile.in	Thu Sep 14 13:25:53 2000
X@@ -43,7 +43,7 @@
X 			 ${OOPSPATH}/DB \
X 			 ${OOPSPATH}/storages \
X 			 ${OOPS_SYSCONFDIR}/tables \
X-			 ${OOPS_LIBDIR}/modules
X+			 ${OOPS_LIBDIR}
X 
X 	if [ "X@OOPS_USER@" != "X" ]; then\
X 		${CHOWN} @OOPS_USER@ ${OOPSPATH};\
X@@ -51,51 +51,19 @@
X 		${CHOWN} @OOPS_USER@ ${OOPSPATH}/DB;\
X 		${CHOWN} @OOPS_USER@ ${OOPSPATH}/storages;\
X 		${CHOWN} @OOPS_USER@ ${OOPS_SYSCONFDIR}/tables;\
X-		${CHOWN} @OOPS_USER@ ${OOPS_LIBDIR}/modules;\
X+		${CHOWN} @OOPS_USER@ ${OOPS_LIBDIR};\
X 	fi
X 
X install: all mkinstalldirs
X-	$(INSTALL) oops ${OOPSPATH}
X-	if [ -f ${OOPS_SYSCONFDIR}/oops.cfg ]; then\
X-		$(INSTALL_DATA) oops.cfg ${OOPS_SYSCONFDIR}/oops.cfg.sample ;\
X-	   else\
X-		$(INSTALL_DATA) oops.cfg ${OOPS_SYSCONFDIR}/oops.cfg ;\
X-	fi
X-	if [ -f ${OOPS_SYSCONFDIR}/err_template.html ]; then\
X-		$(INSTALL_DATA) err_template.html ${OOPS_SYSCONFDIR}/err_template.html.sample ;\
X-	   else\
X-		$(INSTALL_DATA) err_template.html ${OOPS_SYSCONFDIR}/err_template.html ;\
X-	fi
X-	if [ -f ${OOPS_SYSCONFDIR}/auth_template.html ]; then\
X-		$(INSTALL_DATA) auth_template.html ${OOPS_SYSCONFDIR}/auth_template.html.sample ;\
X-	   else\
X-		$(INSTALL_DATA) auth_template.html ${OOPS_SYSCONFDIR}/auth_template.html;\
X-	fi
X-	if [ -f ${OOPS_SYSCONFDIR}/passwd ]; then\
X-		$(INSTALL_DATA) passwd ${OOPS_SYSCONFDIR}/passwd.sample ;\
X-	   else\
X-		$(INSTALL_DATA) passwd ${OOPS_SYSCONFDIR}/passwd ;\
X-	fi
X-	if [ -f ${OOPS_SYSCONFDIR}/redir_rules ]; then\
X-		$(INSTALL_DATA) redir_rules ${OOPS_SYSCONFDIR}/redir_rules.sample ;\
X-	   else\
X-		$(INSTALL_DATA) redir_rules ${OOPS_SYSCONFDIR}/redir_rules ;\
X-	fi
X-	if [ -f ${OOPS_SYSCONFDIR}/redir_template.html ]; then\
X-		$(INSTALL_DATA) redir_template.html ${OOPS_SYSCONFDIR}/redir_template.html.sample ;\
X-	   else\
X-		$(INSTALL_DATA) redir_template.html ${OOPS_SYSCONFDIR}/redir_template.html ;\
X-	fi
X-	if [ -f ${OOPS_SYSCONFDIR}/accel_maps ]; then\
X-		$(INSTALL_DATA) accel_maps ${OOPS_SYSCONFDIR}/accel_maps.sample ;\
X-	   else\
X-		$(INSTALL_DATA) accel_maps ${OOPS_SYSCONFDIR}/accel_maps ;\
X-	fi
X-	if [ -f ${OOPS_SYSCONFDIR}/acl_local_networks ]; then\
X-		$(INSTALL_DATA) acl_local_networks ${OOPS_SYSCONFDIR}/acl_local_networks.sample ;\
X-	   else\
X-		$(INSTALL_DATA) acl_local_networks ${OOPS_SYSCONFDIR}/acl_local_networks ;\
X-	fi
X+	$(INSTALL) oops ${OOPS_SBINDIR}
X+	$(INSTALL_DATA) oops.cfg ${OOPS_SYSCONFDIR}/oops.cfg.sample
X+	$(INSTALL_DATA) err_template.html ${OOPS_SYSCONFDIR}/err_template.html.sample
X+	$(INSTALL_DATA) auth_template.html ${OOPS_SYSCONFDIR}/auth_template.html.sample
X+	$(INSTALL_DATA) passwd ${OOPS_SYSCONFDIR}/passwd.sample
X+	$(INSTALL_DATA) redir_rules ${OOPS_SYSCONFDIR}/redir_rules.sample
X+	$(INSTALL_DATA) redir_template.html ${OOPS_SYSCONFDIR}/redir_template.html.sample
X+	$(INSTALL_DATA) accel_maps ${OOPS_SYSCONFDIR}/accel_maps.sample
X+	$(INSTALL_DATA) acl_local_networks ${OOPS_SYSCONFDIR}/acl_local_networks.sample
X 	if test "X@SOFLAGS@" != "X"; then \
X 	for m in modules/*so ; do \
X 		$(INSTALL) $$m ${OOPS_LIBDIR} ; \
END-of-oops/patches/patch-aa
echo x - oops/patch-ab
sed 's/^X//' >oops/patch-ab << 'END-of-oops/patch-ab'
X--- src/oops.cfg.in.orig	Thu Sep 14 15:35:50 2000
X+++ src/oops.cfg.in	Thu Sep 14 15:38:56 2000
X@@ -45,7 +45,7 @@
X ##
X #  Pidfile. for kill -1 `cat oops.pid` and for locking.
X ##
X-pidfile		@OOPS_LOCALSTATEDIR@/oops.pid
X+pidfile		/tmp/oops.pid
X 
X ##
X # Statistics file - once per minute flush some statistics to this file
X@@ -452,7 +452,7 @@
X 
X module oopsctl {
X 	# path to oopsctl unix socket
X-	socket_path	@OOPS_LOCALSTATEDIR@/oopsctl
X+	socket_path	/tmp/oopsctl
X 	# time to auto-refresh page (seconds)
X         html_refresh    300
X }
END-of-oops/patch-ab
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?200009162244.e8GMiGi06214>