"denyhosts.sh", "start" => "/usr/local/bin/python2.5 /usr/local/bin/denyhosts.py --config /usr/local/etc/denyhosts.conf --daemon", "stop" => "rm /var/run/denyhosts.pid" ) ); denyhosts_sync_package(); //start denyhosts exec("/usr/local/etc/rc.d/denyhosts.sh start"); //if (pkg_is_service_running('notes')) { //documentation purposes //} conf_mount_ro(); config_unlock(); } function denyhosts_deinstall_command() { conf_mount_rw(); config_lock(); exec("pkg_delete denyhosts"); exec("rm -R /usr/local/www/packages/denyhosts/"); //restore original hosts.allow file if (file_exists('/usr/local/www/exec.php')) { exec ("rm /etc/hosts.allow"); exec ("cp /etc/hosts.allow.bak /etc/hosts.allow"); } //remove the configuration exec ("rm /usr/local/etc/denyhosts*"); //create a new hosts.allow file //$hosts_allow = "#\n"; //$hosts_allow .= "# hosts.allow access control file for \"tcp wrapped\" applications.\n"; //$hosts_allow .= "#\n"; //$hosts_allow .= "ALL : ALL : allow\n"; //$fout = fopen("/etc/hosts.allow","w"); //fwrite($fout, $tmp); //unset($tmp); //fclose($fout); conf_mount_ro(); config_unlock(); } ?>