summaryrefslogtreecommitdiffstats
path: root/www/squid31/pkg-install
blob: 7efd84949fd23aa507e37e45be4420515d9ad36e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/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 ""
	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 "    o Note that before you can run ${PKGNAME} you will"
	echo "      need to initialise the cache directory."
	echo "      You can do this by typing \"squid -z\"."
	echo ""
	echo "==> Press Enter to edit the ${PKGNAME} config file."
	echo "    (The defaults are reasonable; and the file is well commented)"
	tput md
	echo "    You'd certainly like to pay attention to the"
	echo "    ACTUAL locations of cache \"spool\", logfiles, pidfile!"
	tput me
	if [ -z "${PACKAGE_BUILDING}" ]; then read skip; fi
	chown root:wheel ${PREFIX}/etc/squid/squid.conf*
	chmod 644 ${PREFIX}/etc/squid/squid.conf*
	[ -f ${PREFIX}/etc/squid/squid.conf ] || \
		cp -fp	${PREFIX}/etc/squid/squid.conf.default \
			${PREFIX}/etc/squid/squid.conf
	[ -f ${PREFIX}/etc/squid/mime.conf ] || \
		cp -fp	${PREFIX}/etc/squid/mime.conf.default \
			${PREFIX}/etc/squid/mime.conf
	${EDITOR:-vi} ${PREFIX}/etc/squid/squid.conf \
		      ${PREFIX}/etc/squid/mime.conf
	;;
    *)
	echo "Unexpected Argument $2!!!"
	exit 1
	;;
esac
exit 0
OpenPOWER on IntegriCloud