diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-15 17:05:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-15 17:05:53 +0000 |
commit | 18697761a2cee97690309683da8506c5392f359b (patch) | |
tree | 1eebad219115af63e39a19e56532769cd708eed3 | |
parent | 3dea32c6a6c3e5bf5eb4078007588ace97835faf (diff) | |
download | pfsense-packages-18697761a2cee97690309683da8506c5392f359b.tar.gz pfsense-packages-18697761a2cee97690309683da8506c5392f359b.tar.bz2 pfsense-packages-18697761a2cee97690309683da8506c5392f359b.zip |
More minor cleanups. No funcitonal changes.
-rw-r--r-- | packages/squid.xml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/squid.xml b/packages/squid.xml index 4125d2b1..bcb20981 100644 --- a/packages/squid.xml +++ b/packages/squid.xml @@ -2,8 +2,7 @@ <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 gets expanded out automatically and config items will be stored in that location --> <configpath>['installedpackages']['squid']['config']</configpath> <fields/> <custom_php_install_command> @@ -17,8 +16,9 @@ $lansn = $lancfg['subnet']; $netmask = ""; $fout = fopen("/usr/local/etc/squid/squid.conf","w"); + fwrite($fout, "#\n"); fwrite($fout, "# This file was automatically generated by the pfSense package manager\n"); - fwrite($fout, "# cat squid.conf\n"); + fwrite($fout, "#\n"); fwrite($fout, "http_port 3128\n"); fwrite($fout, "icp_port 0\n"); fwrite($fout, "acl localnet src " . $lansa . "/" . $lansn . "\n"); @@ -48,16 +48,16 @@ system("/usr/local/sbin/squid"); filter_configure(); </custom_php_install_command> - <start_command>/usr/local/sbin/squid</start_command> <custom_php_pre_deinstall_command> exec("mv /var/db/pkg/squid* /tmp/"); filter_configure(); exec("mv /tmp/squid* /var/db/pkg/"); - </custom_php_pre_deinstall_command> + </custom_php_pre_deinstall_command> <custom_php_deinstall_command> exec("rm -rf /usr/local/squid/"); exec("rm -rf /usr/local/etc/squid/"); exec("rm -rf /usr/local/libexec/squid/"); </custom_php_deinstall_command> + <start_command>/usr/local/sbin/squid</start_command> <process_kill_command>squid</process_kill_command> -</packagegui> +</packagegui>
\ No newline at end of file |