aboutsummaryrefslogtreecommitdiffstats
path: root/config/p3scan.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2011-01-25 05:20:28 -0500
committerChris Buechler <cmb@pfsense.org>2011-01-25 05:21:06 -0500
commit7af18d10dc23084ae8390241c2e9951d530248f7 (patch)
treebba85a3958c7c11a8ce0bc8d6b0addad3a24c2f1 /config/p3scan.inc
parentdc3d5f22067dd659e4e8bd407e0745f78769fc85 (diff)
downloadpfsense-packages-7af18d10dc23084ae8390241c2e9951d530248f7.tar.gz
pfsense-packages-7af18d10dc23084ae8390241c2e9951d530248f7.tar.bz2
pfsense-packages-7af18d10dc23084ae8390241c2e9951d530248f7.zip
archive some more dead packages
Diffstat (limited to 'config/p3scan.inc')
-rw-r--r--config/p3scan.inc63
1 files changed, 0 insertions, 63 deletions
diff --git a/config/p3scan.inc b/config/p3scan.inc
deleted file mode 100644
index 902df50f..00000000
--- a/config/p3scan.inc
+++ /dev/null
@@ -1,63 +0,0 @@
-<?php
-require_once('globals.inc');
-require_once('config.inc');
-require_once('util.inc');
-require_once('service-utils.inc');
-
-if(!function_exists("filter_configure"))
- require_once("filter.inc");
-
-define('VIRUSDIR', '/var/tmp/p3scan');
-
-function p3scan_install_command() {
- global $g;
-
- $pidfile = "{$g['varrun_path']}/p3scan.pid";
- $rcfile = array();
- $rcfile['file'] = 'p3scan.sh';
- $rcfile['start'] = "p3scan -f /usr/local/etc/p3scan.conf -l $pidfile";
- $rcfile['stop'] = "kill `cat $pidfile`\nrm $pidfile";
- write_rcfile($rcfile);
-
- make_dirs(VIRUSDIR);
- chown(VIRUSDIR, 'proxy');
- chmod(VIRUSDIR, 0700);
- make_dirs(VIRUSDIR . '/children');
- chown(VIRUSDIR, 'proxy');
- chmod(VIRUSDIR, 0700);
-
- p3scan_resync();
-}
-
-function p3scan_resync() {
- global $g, $config;
-
- $virusdir = VIRUSDIR;
- $conf = <<<EOD
-ip = 127.0.0.1
-user = proxy
-justdelete
-virusregexp = .*: (.*) FOUND
-virusdir = $virusdir
-spamcheck = /usr/local/bin/spamc
-template = /usr/local/etc/p3scan.mail
-scannertype = basic
-
-EOD;
-
- if ($config['installedpackages']['sassassin']['config'][0]['enable'] == 'on')
- $conf .= "checkspam\n";
-
- $virusen = $config['installedpackages']['clamav']['config'][0]['scan_pop3'];
- if ($virusen == 'on')
- $scanner = '/usr/local/bin/clamdscan --no-summary';
- else
- $scanner = 'echo';
- $conf .= "scanner = $scanner\n";
-
- file_put_contents('/usr/local/etc/p3scan.conf', $conf);
-
- restart_service('p3scan');
- filter_configure();
-}
-?>