aboutsummaryrefslogtreecommitdiffstats
path: root/www/squid31/pkg-install
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1996-06-03 10:21:13 +0800
committerasami <asami@FreeBSD.org>1996-06-03 10:21:13 +0800
commit481ccf5caea856d90f8348a60fbf6b32a91fb891 (patch)
tree5561645790c0d55e8a3b16bc823f9dca4b5ab8f1 /www/squid31/pkg-install
parentf9d4c4e77809771014f306b48d0aaa9bab6e3966 (diff)
downloadfreebsd-ports-graphics-481ccf5caea856d90f8348a60fbf6b32a91fb891.tar.gz
freebsd-ports-graphics-481ccf5caea856d90f8348a60fbf6b32a91fb891.tar.zst
freebsd-ports-graphics-481ccf5caea856d90f8348a60fbf6b32a91fb891.zip
A post-harvest www cache proxy.
Submitted by: Andrew V. Stesin <stesin@elvisti.kiev.ua> and Peter Stubbs <PETERS@staidan.qld.edu.au>
Diffstat (limited to 'www/squid31/pkg-install')
-rw-r--r--www/squid31/pkg-install36
1 files changed, 36 insertions, 0 deletions
diff --git a/www/squid31/pkg-install b/www/squid31/pkg-install
new file mode 100644
index 00000000000..e476199106d
--- /dev/null
+++ b/www/squid31/pkg-install
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+PKGNAME=$1
+
+case $2 in
+ PRE-INSTALL)
+ ;;
+ POST-INSTALL)
+ echo "==> Post-installation configuration of ${PKGNAME}"
+ echo ""
+ echo " o you DO need running nameservice to start and run ${PKGNAME}"
+ echo " o add the following line to /etc/rc.local to start"
+ echo " ${PKGNAME} automatically:"
+ echo ""
+ echo " (cd /tmp; exec ${PREFIX:-/usr/local}/bin/RunCache) &"
+ echo ""
+ echo " o use the ${PKGNAME} proxy and caching WWW Server by"
+ echo " configuring your WWW Navigator (Netscape, Mosaic,...)"
+ echo " to use it as a proxy server."
+ echo ""
+ echo "==> Press Enter to edit the ${PKGNAME} config file."
+ echo " (The defaults are reasonable; and the file is well commented)"
+ echo " You'd probably like to pay attention to the"
+ echo " ACTUAL locations of BOTH cache \"spool\" AND logfiles."
+ read skip
+ chown root:wheel ${PREFIX:-/usr/local}/etc/squid.conf*
+ chmod 644 ${PREFIX:-/usr/local}/etc/squid.conf*
+ ${EDITOR:-vi} ${PREFIX:-/usr/local}/etc/squid.conf
+ ;;
+ *)
+ echo "Unexpected Argument $2!!!"
+ exit 1
+ ;;
+esac
+exit 0
+