aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-01-22 22:25:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-01-22 22:25:32 +0000
commitaa5668199f1cc75ce8a7b97ce2613eaf0d63d02a (patch)
tree667e15de03d6b16117716fe210bfa47dab907039 /packages/squid.xml
parentf1a38e60e8e89a51c5490ff01e40b33f03f6ac95 (diff)
downloadpfsense-packages-aa5668199f1cc75ce8a7b97ce2613eaf0d63d02a.tar.gz
pfsense-packages-aa5668199f1cc75ce8a7b97ce2613eaf0d63d02a.tar.bz2
pfsense-packages-aa5668199f1cc75ce8a7b97ce2613eaf0d63d02a.zip
Update packages with minor bug fixes.
Diffstat (limited to 'packages/squid.xml')
-rw-r--r--packages/squid.xml33
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/squid.xml b/packages/squid.xml
new file mode 100644
index 00000000..6a5bebda
--- /dev/null
+++ b/packages/squid.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<packagegui>
+ <name>squid</name>
+ <!-- Menu is where this packages menu will appear -->
+ <!-- configpath gets expanded out automatically and config items will be
+ stored in that location -->
+ <configpath>['installedpackages']['squid']['config']</configpath>
+ <fields/>
+ <custom_php_install_command>
+ echo "&lt;pre&gt;";
+ system("/bin/mkdir /usr/local/etc/squid");
+ $fout = fopen("/usr/local/etc/squid/squid.conf","w");
+ fwrite($fout, "http_port 127.0.0.1:3128\n");
+ fwrite($fout, "http_access deny to_localhost\n");
+ fwrite($fout, "acl our_networks src 10.0.0.0/8\n");
+ fwrite($fout, "http_access allow our_networks\n");
+ fwrite($fout, "visible_hostname insomnia.benzedrine.cx\n");
+ fwrite($fout, "httpd_accel_host virtual\n");
+ fwrite($fout, "httpd_accel_port 80\n");
+ fwrite($fout, "httpd_accel_with_proxy on\n");
+ fwrite($fout, "httpd_accel_uses_host_header on\n");
+ fclose($fout);
+ $fout = fopen("/usr/local/etc/rc.d/squid.sh","w");
+ fwrite($fout, "#!/bin/sh\n");
+ fwrite($fout, "/usr/local/sbin/squid\n\n");
+ fclose($fout);
+ system("chmod a+x /usr/local/etc/rc.d/squid.sh");
+ system("/usr/local/sbin/squid -z");
+ </custom_php_install_command>
+ <custom_php_deinstall_command>
+ system("/usr/bin/killall squid");
+ </custom_php_deinstall_command>
+</packagegui>