/dev/null &"); $start = "/usr/local/sbin/spamd-setup &\n" . "/sbin/pflogd &\n" . "/sbin/mount_fdescfs fdescfs /dev/fd\n" . "/usr/local/libexec/spamlogd &\n"; "/usr/local/libexec/spamd -G 5:4:864 -g -d -b 127.0.0.1 &\n" . $stop = "/usr/bin/killall spamd-setup &\n" . "/usr/bin/killall spamd\n" . "/usr/bin/killall mount_fdescfs\n" . "/usr/bin/killall spamlogd\n"; write_rcfile(array( "file" => "spamd.sh", "start" => $start, "stop" => $stop ) ); start_service("spamd"); } function custom_php_deinstall_command() { global $config, $g; unlink_if_exists("/usr/local/pkg/spamd.sh"); unlink_if_exists("/usr/local/pkg/pf/spamd_rules.php"); unlink_if_exists("/usr/local/www/spamd_rules.php"); } ?>