summaryrefslogtreecommitdiff
path: root/www/oops
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-09-17 22:36:32 +0000
committerWill Andrews <will@FreeBSD.org>2000-09-17 22:36:32 +0000
commit97ff1a477e8631a785ea28b6eba0025287fc73c7 (patch)
tree1e541446a678cd649cc8d4fceefe4ebe75d68507 /www/oops
parentAdd nsf (unversioned - but I put 1.0), NAKAMURA Kazushi's shell form input. (diff)
Add oops 1.4.16, a www proxy server similar to squid but easier to configure,
threadsafe (can use more than one CPU), and faster (uses large files rather than many files). PR: 21318 Submitted by: Sergey Oskin <oZZ@FreeBSD.org.ru>
Notes
Notes: svn path=/head/; revision=32786
Diffstat (limited to 'www/oops')
-rw-r--r--www/oops/Makefile41
-rw-r--r--www/oops/distinfo1
-rw-r--r--www/oops/files/oops.sh24
-rw-r--r--www/oops/files/patch-aa73
-rw-r--r--www/oops/files/patch-ab11
-rw-r--r--www/oops/pkg-comment1
-rw-r--r--www/oops/pkg-descr20
-rw-r--r--www/oops/pkg-install49
-rw-r--r--www/oops/pkg-plist30
9 files changed, 250 insertions, 0 deletions
diff --git a/www/oops/Makefile b/www/oops/Makefile
new file mode 100644
index 000000000000..9112af75ddb8
--- /dev/null
+++ b/www/oops/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: oops
+# Date created: 15 August 2000
+# Whom: Sergey Osokin aka oZZ <ozz@FreeBSD.org.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= oops
+PORTVERSION= 1.4.16
+CATEGORIES= www
+MASTER_SITES= http://zipper.paco.net/~igor/oops/
+
+MAINTAINER= ozz@FreeBSD.org.ru
+
+LIB_DEPENDS= db2.0:${PORTSDIR}/databases/db
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --sbindir=${PREFIX}/sbin \
+ --sysconfdir=${PREFIX}/etc/oops \
+ --localstatedir=/var/run \
+ --libdir=${PREFIX}/libexec/oops \
+ --enable-oops-user=oops
+
+pre-install:
+ @PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
+
+.include <bsd.port.pre.mk>
+
+post-install:
+ @PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL
+ @ ${ECHO} "------------------------------------------------------------"
+ @ ${ECHO} "Sample of configuration file placed at ${PREFIX}/etc/oops !"
+ @ ${ECHO} "Copy oops.cfg.sample to oops.cfg, then run server..."
+ @ ${ECHO} "------------------------------------------------------------"
+
+ @if [ ! -f ${PREFIX}/etc/rc.d/oops.sh ]; then \
+ ${ECHO} "Installing ${PREFIX}/etc/rc.d/oops.sh startup file."; \
+ ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/oops.sh ${PREFIX}/etc/rc.d/oops.sh; \
+ fi
+
+.include <bsd.port.post.mk>
diff --git a/www/oops/distinfo b/www/oops/distinfo
new file mode 100644
index 000000000000..2b214c0e2ea7
--- /dev/null
+++ b/www/oops/distinfo
@@ -0,0 +1 @@
+MD5 (oops-1.4.16.tar.gz) = b3fb854c0ee5d7c23bca737377ea507e
diff --git a/www/oops/files/oops.sh b/www/oops/files/oops.sh
new file mode 100644
index 000000000000..1e25698806f7
--- /dev/null
+++ b/www/oops/files/oops.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+start)
+ if [ -x ${PREFIX}/sbin/oopsctl ]; then
+ ${PREFIX}/sbin/oopsctl start 2>&1 > /dev/null; echo -n ' oops'
+ fi
+ ;;
+stop)
+ if [ -x ${PREFIX}/sbin/oopsctl ]; then
+ ${PREFIX}/sbin/oopsctl -s /tmp/oopsctl stop
+ fi
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0
diff --git a/www/oops/files/patch-aa b/www/oops/files/patch-aa
new file mode 100644
index 000000000000..2c325128e526
--- /dev/null
+++ b/www/oops/files/patch-aa
@@ -0,0 +1,73 @@
+--- src/Makefile.in.orig Thu Sep 14 13:19:39 2000
++++ src/Makefile.in Thu Sep 14 13:25:53 2000
+@@ -43,7 +43,7 @@
+ ${OOPSPATH}/DB \
+ ${OOPSPATH}/storages \
+ ${OOPS_SYSCONFDIR}/tables \
+- ${OOPS_LIBDIR}/modules
++ ${OOPS_LIBDIR}
+
+ if [ "X@OOPS_USER@" != "X" ]; then\
+ ${CHOWN} @OOPS_USER@ ${OOPSPATH};\
+@@ -51,51 +51,19 @@
+ ${CHOWN} @OOPS_USER@ ${OOPSPATH}/DB;\
+ ${CHOWN} @OOPS_USER@ ${OOPSPATH}/storages;\
+ ${CHOWN} @OOPS_USER@ ${OOPS_SYSCONFDIR}/tables;\
+- ${CHOWN} @OOPS_USER@ ${OOPS_LIBDIR}/modules;\
++ ${CHOWN} @OOPS_USER@ ${OOPS_LIBDIR};\
+ fi
+
+ install: all mkinstalldirs
+- $(INSTALL) oops ${OOPSPATH}
+- if [ -f ${OOPS_SYSCONFDIR}/oops.cfg ]; then\
+- $(INSTALL_DATA) oops.cfg ${OOPS_SYSCONFDIR}/oops.cfg.sample ;\
+- else\
+- $(INSTALL_DATA) oops.cfg ${OOPS_SYSCONFDIR}/oops.cfg ;\
+- fi
+- if [ -f ${OOPS_SYSCONFDIR}/err_template.html ]; then\
+- $(INSTALL_DATA) err_template.html ${OOPS_SYSCONFDIR}/err_template.html.sample ;\
+- else\
+- $(INSTALL_DATA) err_template.html ${OOPS_SYSCONFDIR}/err_template.html ;\
+- fi
+- if [ -f ${OOPS_SYSCONFDIR}/auth_template.html ]; then\
+- $(INSTALL_DATA) auth_template.html ${OOPS_SYSCONFDIR}/auth_template.html.sample ;\
+- else\
+- $(INSTALL_DATA) auth_template.html ${OOPS_SYSCONFDIR}/auth_template.html;\
+- fi
+- if [ -f ${OOPS_SYSCONFDIR}/passwd ]; then\
+- $(INSTALL_DATA) passwd ${OOPS_SYSCONFDIR}/passwd.sample ;\
+- else\
+- $(INSTALL_DATA) passwd ${OOPS_SYSCONFDIR}/passwd ;\
+- fi
+- if [ -f ${OOPS_SYSCONFDIR}/redir_rules ]; then\
+- $(INSTALL_DATA) redir_rules ${OOPS_SYSCONFDIR}/redir_rules.sample ;\
+- else\
+- $(INSTALL_DATA) redir_rules ${OOPS_SYSCONFDIR}/redir_rules ;\
+- fi
+- if [ -f ${OOPS_SYSCONFDIR}/redir_template.html ]; then\
+- $(INSTALL_DATA) redir_template.html ${OOPS_SYSCONFDIR}/redir_template.html.sample ;\
+- else\
+- $(INSTALL_DATA) redir_template.html ${OOPS_SYSCONFDIR}/redir_template.html ;\
+- fi
+- if [ -f ${OOPS_SYSCONFDIR}/accel_maps ]; then\
+- $(INSTALL_DATA) accel_maps ${OOPS_SYSCONFDIR}/accel_maps.sample ;\
+- else\
+- $(INSTALL_DATA) accel_maps ${OOPS_SYSCONFDIR}/accel_maps ;\
+- fi
+- if [ -f ${OOPS_SYSCONFDIR}/acl_local_networks ]; then\
+- $(INSTALL_DATA) acl_local_networks ${OOPS_SYSCONFDIR}/acl_local_networks.sample ;\
+- else\
+- $(INSTALL_DATA) acl_local_networks ${OOPS_SYSCONFDIR}/acl_local_networks ;\
+- fi
++ $(INSTALL) oops ${OOPS_SBINDIR}
++ $(INSTALL_DATA) oops.cfg ${OOPS_SYSCONFDIR}/oops.cfg.sample
++ $(INSTALL_DATA) err_template.html ${OOPS_SYSCONFDIR}/err_template.html.sample
++ $(INSTALL_DATA) auth_template.html ${OOPS_SYSCONFDIR}/auth_template.html.sample
++ $(INSTALL_DATA) passwd ${OOPS_SYSCONFDIR}/passwd.sample
++ $(INSTALL_DATA) redir_rules ${OOPS_SYSCONFDIR}/redir_rules.sample
++ $(INSTALL_DATA) redir_template.html ${OOPS_SYSCONFDIR}/redir_template.html.sample
++ $(INSTALL_DATA) accel_maps ${OOPS_SYSCONFDIR}/accel_maps.sample
++ $(INSTALL_DATA) acl_local_networks ${OOPS_SYSCONFDIR}/acl_local_networks.sample
+ if test "X@SOFLAGS@" != "X"; then \
+ for m in modules/*so ; do \
+ $(INSTALL) $$m ${OOPS_LIBDIR} ; \
diff --git a/www/oops/files/patch-ab b/www/oops/files/patch-ab
new file mode 100644
index 000000000000..1f72a17d1117
--- /dev/null
+++ b/www/oops/files/patch-ab
@@ -0,0 +1,11 @@
+--- src/oops.cfg.in.orig Thu Sep 14 15:35:50 2000
++++ src/oops.cfg.in Thu Sep 14 15:38:56 2000
+@@ -452,7 +452,7 @@
+
+ module oopsctl {
+ # path to oopsctl unix socket
+- socket_path @OOPS_LOCALSTATEDIR@/oopsctl
++ socket_path /tmp/oopsctl
+ # time to auto-refresh page (seconds)
+ html_refresh 300
+ }
diff --git a/www/oops/pkg-comment b/www/oops/pkg-comment
new file mode 100644
index 000000000000..e5d1f0cbf471
--- /dev/null
+++ b/www/oops/pkg-comment
@@ -0,0 +1 @@
+Oops - caching web proxy server.
diff --git a/www/oops/pkg-descr b/www/oops/pkg-descr
new file mode 100644
index 000000000000..0744a9f1114d
--- /dev/null
+++ b/www/oops/pkg-descr
@@ -0,0 +1,20 @@
+Oops - caching proxy server.
+Oops! is a proxy server; the main aims of its development being
+stable operation, service speed, main protocols support,
+modularity, ease at use. What is one more server for when there is
+already Squid? I personally was not satisfied with Squid on some
+points, that is was why I wished to get rid of it. And that was done.
+
+Basic differences from Squid:
+Each request is served by a separate thread, which allows to use all
+available processors on multiprocessor machine.
+Cashed documents are stored in one or several big files. This makes
+it possible to remove from the operational system a load on operation
+with directories and to speed up access to the documents, and to use
+raw-devices as a storage of cashed objects either.
+The program modular structure provides extension of its function
+without any change of the source code.
+The special attention was paid to the point of providing a stable,
+continuous, unbreakable work, easy and simple
+configuration/reconfiguration. Thus, for example, the reconfiguration
+on the fly doesn't result in a breakaway of already established connections.
diff --git a/www/oops/pkg-install b/www/oops/pkg-install
new file mode 100644
index 000000000000..187fd5ddd3be
--- /dev/null
+++ b/www/oops/pkg-install
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+user=oops
+group=wheel
+
+ask() {
+ local question default answer
+
+ question=$1
+ default=$2
+ if [ -z "${PACKAGE_BUILDING}" ]; then
+ read -p "${question} [${default}]? " answer
+ fi
+ if [ x${answer} = x ]; then
+ answer=${default}
+ fi
+ echo ${answer}
+}
+
+yesno() {
+ local dflt question answer
+
+ question=$1
+ dflt=$2
+ while :; do
+ answer=$(ask "${question}" "${dflt}")
+ case "${answer}" in
+ [Yy]*) return 0;;
+ [Nn]*) return 1;;
+ esac
+ echo "Please answer yes or no."
+ done
+}
+
+if [ x"$2" = xPRE-INSTALL ]; then
+ if /usr/sbin/pw user show "${user}" 2>/dev/null; then
+ echo "You already have a user \"${user}\", so I will use it."
+ else
+ echo "You need a user \"${user}\"."
+ if yesno "Would you like me to create it" y; then
+ /usr/sbin/pw useradd ${user} -g ${group} -h - -d /nonexistent \
+ -s /nonexistent -c "Postfix Mail System" || exit
+ echo "Done."
+ else
+ echo "Please create it, and try again."
+ exit 1
+ fi
+ fi
+fi
diff --git a/www/oops/pkg-plist b/www/oops/pkg-plist
new file mode 100644
index 000000000000..c494691c2055
--- /dev/null
+++ b/www/oops/pkg-plist
@@ -0,0 +1,30 @@
+sbin/oopsctl
+sbin/oops
+etc/oops/oops.cfg.sample
+etc/oops/err_template.html.sample
+etc/oops/auth_template.html.sample
+etc/oops/passwd.sample
+etc/oops/redir_rules.sample
+etc/oops/redir_template.html.sample
+etc/oops/accel_maps.sample
+etc/oops/acl_local_networks.sample
+etc/oops/tables/koi-alt.tab
+etc/oops/tables/koi-iso.tab
+etc/oops/tables/koi-win.tab
+etc/rc.d/oops.sh
+libexec/oops/accel.so
+libexec/oops/berkeley_db_api.so
+libexec/oops/custom_log.so
+libexec/oops/err.so
+libexec/oops/fastredir.so
+libexec/oops/gigabase_db_api.so
+libexec/oops/lang.so
+libexec/oops/log_dummy.so
+libexec/oops/oopsctl_mod.so
+libexec/oops/passwd_file.so
+libexec/oops/redir.so
+libexec/oops/transparent.so
+libexec/oops/vary_header.so
+@dirrm libexec/oops
+@dirrm etc/oops/tables
+@dirrm etc/oops