aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-15 17:01:13 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-15 17:01:13 +0000
commit3dea32c6a6c3e5bf5eb4078007588ace97835faf (patch)
treee3165f3c5d4b582d51aa0cd8c1ec067ae93b6c39
parentee1258fa3141a1d4547946615768429f31eea66b (diff)
downloadpfsense-packages-3dea32c6a6c3e5bf5eb4078007588ace97835faf.tar.gz
pfsense-packages-3dea32c6a6c3e5bf5eb4078007588ace97835faf.tar.bz2
pfsense-packages-3dea32c6a6c3e5bf5eb4078007588ace97835faf.zip
* Cleanup tabbing and make it consistent.
* Put a notice at the top of the configuration file that it was created by the pfSense package manager
-rw-r--r--packages/squid.xml13
1 files changed, 7 insertions, 6 deletions
diff --git a/packages/squid.xml b/packages/squid.xml
index 5fbf9e30..4125d2b1 100644
--- a/packages/squid.xml
+++ b/packages/squid.xml
@@ -9,14 +9,15 @@
<custom_php_install_command>
echo "&lt;pre&gt;";
system("/bin/mkdir /usr/local/etc/squid");
- system("/usr/bin/touch /usr/local/etc/squid/mime.conf");
- $lancfg = $config['interfaces']['lan'];
+ system("/usr/bin/touch /usr/local/etc/squid/mime.conf");
+ $lancfg = $config['interfaces']['lan'];
$lanif = $lancfg['if'];
$lanip = $lancfg['ipaddr'];
$lansa = gen_subnet($lancfg['ipaddr'], $lancfg['subnet']);
$lansn = $lancfg['subnet'];
$netmask = "";
$fout = fopen("/usr/local/etc/squid/squid.conf","w");
+ fwrite($fout, "# This file was automatically generated by the pfSense package manager\n");
fwrite($fout, "# cat squid.conf\n");
fwrite($fout, "http_port 3128\n");
fwrite($fout, "icp_port 0\n");
@@ -52,11 +53,11 @@
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/");
+ exec("rm -rf /usr/local/squid/");
+ exec("rm -rf /usr/local/etc/squid/");
+ exec("rm -rf /usr/local/libexec/squid/");
</custom_php_deinstall_command>
<process_kill_command>squid</process_kill_command>
</packagegui>