diff options
author | Perry Mason <crazypark2@yahoo.dk> | 2009-02-10 01:11:40 +0100 |
---|---|---|
committer | Perry Mason <crazypark2@yahoo.dk> | 2009-02-10 01:11:40 +0100 |
commit | 866f1103c7cea844cced219cbbeacce6b788c54c (patch) | |
tree | 774f8b5e9d86d6eda9454e4e198c56a274a2b4b7 | |
parent | a2799181a436de9f1cac953b5a577d50c6a0e3b2 (diff) | |
parent | 834c44906bd92fffd4a1c969ddf58957f40ea0ee (diff) | |
download | pfsense-packages-866f1103c7cea844cced219cbbeacce6b788c54c.tar.gz pfsense-packages-866f1103c7cea844cced219cbbeacce6b788c54c.tar.bz2 pfsense-packages-866f1103c7cea844cced219cbbeacce6b788c54c.zip |
Merge branch 'master' of http://gitweb.pfsense.org/pfsense-packages/mainline
-rw-r--r-- | config/snort/snort_download_rules.php | 17 | ||||
-rw-r--r-- | pkg_config.7.xml | 28 |
2 files changed, 26 insertions, 19 deletions
diff --git a/config/snort/snort_download_rules.php b/config/snort/snort_download_rules.php index caeb92aa..33a4f896 100644 --- a/config/snort/snort_download_rules.php +++ b/config/snort/snort_download_rules.php @@ -97,7 +97,6 @@ if(!$pgtitle_output) echo "<img src=\"/themes/metallic/images/misc/loader_tab.gif\"> Getting release information from snort.org...\n"; echo "</div>\n"; ob_flush(); - sleep(1); ini_set('user_agent','Mozilla/4.0 (compatible; MSIE 6.0)'); $text = file_get_contents("http://www.snort.org/pub-bin/downloads.cgi"); echo "<script type=\"text/javascript\">\n"; @@ -219,20 +218,22 @@ $static_output = gettext("Downloading current snort rules... "); */ update_all_status($static_output); update_output_window("{$dl}"); -download_file_with_progress_bar($dl, $tmpfname . "/{$snort_filename}", "read_body_snort"); +download_file_with_progress_bar($dl, $tmpfname . "/{$snort_filename}", "read_body_firmware"); verify_downloaded_file($tmpfname . "/{$snort_filename}"); /* download snort rules md5 file */ $static_output = gettext("Downloading current snort rules md5... "); update_all_status($static_output); update_output_window("{$dl_md5}"); -download_file_with_progress_bar($dl_md5, $tmpfname . "/{$snort_filename_md5}", "read_body_snort");); +download_file_with_progress_bar($dl_md5, $tmpfname . "/{$snort_filename_md5}", "read_body_firmware"); verify_downloaded_file($tmpfname . "/{$snort_filename_md5}"); /* verify downloaded rules signature */ +update_status(gettext("Verifying MD5 Signature...")); verify_snort_rules_md5($tmpfname); /* extract rules */ +update_status(gettext("Extracting rules...")); extract_snort_rules_md5($tmpfname); $static_output = gettext("Your snort rules are now up to date."); @@ -241,11 +242,16 @@ update_all_status($static_output); $config['installedpackages']['snort']['last_ruleset_download'] = date("Y-m-d"); write_config(); +update_status(gettext("Stopping Snort...")); +update_output_window(gettext("One moment please...")); stop_service("snort"); -sleep(2); +update_status(gettext("Starting Snort...")); +update_output_window(gettext("One moment please...")); start_service("snort"); /* cleanup temporary directory */ +update_status(gettext("Cleaning up...")); +update_output_window(gettext("One moment please...")); exec("/bin/rm -rf {$tmpfname};"); /* hide progress bar and lets end this party */ @@ -262,7 +268,7 @@ hide_progress_bar_status(); <?php -function read_body_snort($ch, $string) { +function read_body_firmware($ch, $string) { global $fout, $file_size, $downloaded, $counter, $version, $latest_version, $current_installed_pfsense_version; $length = strlen($string); $downloaded += intval($length); @@ -281,6 +287,7 @@ function read_body_snort($ch, $string) { if($counter > 150) { update_output_window($text); update_progress_bar($downloadProgress); + flush(); $counter = 0; } fwrite($fout, $string); diff --git a/pkg_config.7.xml b/pkg_config.7.xml index 63359535..b79d2ad0 100644 --- a/pkg_config.7.xml +++ b/pkg_config.7.xml @@ -143,7 +143,7 @@ <depends_on_package_base_url>http://files.pfsense.org/packages/7/All/</depends_on_package_base_url> <depends_on_package>snort-2.8.2.1.tbz</depends_on_package> <config_file>http://www.pfsense.com/packages/config/snort/snort.xml</config_file> - <version>2.8.2.3</version> + <version>2.8.2.4</version> <required_version>1.2</required_version> <status>Stable</status> <configurationfile>snort.xml</configurationfile> @@ -205,19 +205,19 @@ <config_file>http://www.pfsense.com/packages/config/lightsquid/lightsquid.xml</config_file> <configurationfile>lightsquid.xml</configurationfile> </package> - <package>
- <name>vnstat</name>
- <website>http://humdi.net/vnstat/</website>
- <descr>A console-based network traffic monitor</descr>
- <category>Network Management</category>
- <depends_on_package_base_url>http://www.pfsense.com/packages/config/vnstat/bin/</depends_on_package_base_url>
- <depends_on_package>vnstat-1.6_3.tbz</depends_on_package>
- <version>1.6.3</version>
- <status>Beta</status>
- <required_version>1.2.3</required_version>
- <maintainer>crazypark2@yahoo.dk</maintainer>
- <config_file>http://www.pfsense.com/packages/config/vnstat/vnstat.xml</config_file>
- <configurationfile>vnstat.xml</configurationfile>
+ <package> + <name>vnstat</name> + <website>http://humdi.net/vnstat/</website> + <descr>A console-based network traffic monitor</descr> + <category>Network Management</category> + <depends_on_package_base_url>http://www.pfsense.com/packages/config/vnstat/bin/</depends_on_package_base_url> + <depends_on_package>vnstat-1.6_3.tbz</depends_on_package> + <version>1.6.3</version> + <status>Beta</status> + <required_version>1.2.3</required_version> + <maintainer>crazypark2@yahoo.dk</maintainer> + <config_file>http://www.pfsense.com/packages/config/vnstat/vnstat.xml</config_file> + <configurationfile>vnstat.xml</configurationfile> </package> <package> <name>phpSysInfo</name> |