diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-11 19:20:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-11 19:20:14 +0000 |
commit | 6f6f905337660aabccc81c61cd3f5ef65042ac0f (patch) | |
tree | 5ad2a567ae414097bbb5a5a28ad935349169325a /packages | |
parent | 8df8bb9b653e5ef9d3c7b5a86baf8e5aa06b9d17 (diff) | |
download | pfsense-packages-6f6f905337660aabccc81c61cd3f5ef65042ac0f.tar.gz pfsense-packages-6f6f905337660aabccc81c61cd3f5ef65042ac0f.tar.bz2 pfsense-packages-6f6f905337660aabccc81c61cd3f5ef65042ac0f.zip |
no need for configpath tag
Diffstat (limited to 'packages')
-rw-r--r-- | packages/squidGuard.xml | 63 |
1 files changed, 31 insertions, 32 deletions
diff --git a/packages/squidGuard.xml b/packages/squidGuard.xml index f0aa9b88..9b3f542d 100644 --- a/packages/squidGuard.xml +++ b/packages/squidGuard.xml @@ -1,41 +1,40 @@ <?xml version="1.0" encoding="utf-8" ?> <packagegui> <name>squidGuard</name> - <configpath>installedpackages->package->$packagename->configuration->settings</configpath> <custom_php_install_command> - $fout = fopen("/usr/local/etc/squid/squidGuard.conf","w"); - fwrite($fout, "# This configuration was generated by the pfSense package manager.\n"); - fwrite($fout, "# cat squidGuard.conf\n\n"); - fwrite($fout, "dbhome /var/db/squidGuard\n"); - fwrite($fout, "logdir /usr/local/squid/logs\n"); - fwrite($fout, "acl {\n"); - fwrite($fout, "\t default {\n"); - fwrite($fout, "\t pass all\n"); - fwrite($fout, "\t }\n"); - fwrite($fout, "}\n"); - fclose($fout); - sync_package("squid"); - $fout = fopen("/usr/local/etc/squid/squid.conf","a"); - fwrite($fout, "redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squid/squidGuard.conf\n"); - fwrite($fout, "redirect_children 4\n"); - fclose($fout); - mwexec("/usr/bin/touch /usr/local/squid/logs/squidGuard.log"); - mwexec("/usr/sbin/chown squid /usr/local/squid/logs/squidGuard.log"); - mwexec("/usr/bin/chgrp squid /usr/local/squid/logs/squidGuard.log"); - mwexec("/bin/chmod 744 /usr/local/squid/logs/squidGuard.log"); - mwexec("/usr/bin/touch /var/log/squidGuard.log"); - mwexec("/usr/sbin/chown squid /var/log/squidGuard.log"); - mwexec("/usr/bin/chgrp squid /var/log/squidGuard.log"); - mwexec("/bin/chmod 744 /var/log/squidGuard.log"); - mwexec("/usr/sbin/chown -R squid /var/db/squidGuard"); - mwexec("/usr/bin/chgrp -R squid /var/db/squidGuard"); - mwexec("/bin/chmod -R 755 /var/db/squidGuard"); - mwexec("/usr/local/sbin/squid -k reconfigure"); + $fout = fopen("/usr/local/etc/squid/squidGuard.conf","w"); + fwrite($fout, "# This configuration was generated by the pfSense package manager.\n"); + fwrite($fout, "# cat squidGuard.conf\n\n"); + fwrite($fout, "dbhome /var/db/squidGuard\n"); + fwrite($fout, "logdir /usr/local/squid/logs\n"); + fwrite($fout, "acl {\n"); + fwrite($fout, "\t default {\n"); + fwrite($fout, "\t pass all\n"); + fwrite($fout, "\t }\n"); + fwrite($fout, "}\n"); + fclose($fout); + sync_package("squid"); + $fout = fopen("/usr/local/etc/squid/squid.conf","a"); + fwrite($fout, "redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squid/squidGuard.conf\n"); + fwrite($fout, "redirect_children 4\n"); + fclose($fout); + mwexec("/usr/bin/touch /usr/local/squid/logs/squidGuard.log"); + mwexec("/usr/sbin/chown squid /usr/local/squid/logs/squidGuard.log"); + mwexec("/usr/bin/chgrp squid /usr/local/squid/logs/squidGuard.log"); + mwexec("/bin/chmod 744 /usr/local/squid/logs/squidGuard.log"); + mwexec("/usr/bin/touch /var/log/squidGuard.log"); + mwexec("/usr/sbin/chown squid /var/log/squidGuard.log"); + mwexec("/usr/bin/chgrp squid /var/log/squidGuard.log"); + mwexec("/bin/chmod 744 /var/log/squidGuard.log"); + mwexec("/usr/sbin/chown -R squid /var/db/squidGuard"); + mwexec("/usr/bin/chgrp -R squid /var/db/squidGuard"); + mwexec("/bin/chmod -R 755 /var/db/squidGuard"); + mwexec("/usr/local/sbin/squid -k reconfigure"); </custom_php_install_command> <custom_php_deinstall_command> - unlink_if_exists("/var/log/squidGuard.log"); - rmdir_recursive("/var/db/squidGuard"); - sync_package("squid"); + unlink_if_exists("/var/log/squidGuard.log"); + rmdir_recursive("/var/db/squidGuard"); + sync_package("squid"); </custom_php_deinstall_command> <process_kill_command>squid</process_kill_command> </packagegui> |