aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-05-12 20:39:55 -0400
committerjim-p <jim@pingle.org>2009-05-12 20:41:49 -0400
commitc74e4dc2ea303c9c54874c3d527be52722cb09e7 (patch)
treeaa87e25029241dd82553052b35d22d61783d26c9
parent4e5739166700711a36ed03a90d2bf18dd4c57d1f (diff)
downloadpfsense-packages-c74e4dc2ea303c9c54874c3d527be52722cb09e7.tar.gz
pfsense-packages-c74e4dc2ea303c9c54874c3d527be52722cb09e7.tar.bz2
pfsense-packages-c74e4dc2ea303c9c54874c3d527be52722cb09e7.zip
Dashboard 0.7.6
* Add IPSec Mobile Client/Tunnel Status * Show FreeBSD version on System Information * Removed the uninstall routine. It didn't work properly most of the time, and after a firmware update it actually resulted in the wrong file being replaced.
-rw-r--r--config/dashboard/dashboard.inc39
-rw-r--r--config/dashboard/dashboard.xml7
-rwxr-xr-xpkg_config.7.xml2
-rw-r--r--pkg_config.xml2
4 files changed, 17 insertions, 33 deletions
diff --git a/config/dashboard/dashboard.inc b/config/dashboard/dashboard.inc
index 07f4610c..5907945a 100644
--- a/config/dashboard/dashboard.inc
+++ b/config/dashboard/dashboard.inc
@@ -3,33 +3,20 @@
function dashboard_install() {
global $g, $config;
assign_privs();
- if(!file_exists("/usr/local/www/index.php.before_dashboard")) {
- /* backup the pre-dashboard files */
- mwexec("mv /usr/local/www/index.php /usr/local/www/index.php.before_dashboard");
- mwexec("mv /usr/local/www/fbegin.inc /usr/local/www/fbegin.inc.before_dashboard");
- mwexec("mv /usr/local/www/diag_logs_filter.php /usr/local/www/diag_logs_filter.php.before_dashboard");
- mwexec("mv /usr/local/www/diag_logs_filter_dynamic.php /usr/local/www/diag_logs_filter_dynamic.php.before_dashboard");
- } else {
- /* Move the files, since we do not know what version they are, don't try to keep them. */
- mwexec("mv /usr/local/www/index.php /usr/local/www/index.php.tmp");
- mwexec("mv /usr/local/www/fbegin.inc /usr/local/www/fbegin.inc.tmp");
- mwexec("mv /usr/local/www/diag_logs_filter.php /usr/local/www/diag_logs_filter.php.tmp");
- mwexec("mv /usr/local/www/diag_logs_filter_dynamic.php /usr/local/www/diag_logs_filter_dynamic.php.tmp");
- }
- mwexec("tar xzvpf /usr/local/pkg/widgets.tgz -C /");
- assign_privs();
-}
+
+ /* Copy, then rm the files for backup. For some odd reason, mv alone does
+ * not always result in the proper file being used. */
+ mwexec("cp /usr/local/www/index.php /usr/local/www/index.php.before_dashboard");
+ mwexec("cp /usr/local/www/fbegin.inc /usr/local/www/fbegin.inc.before_dashboard");
+ mwexec("cp /usr/local/www/diag_logs_filter.php /usr/local/www/diag_logs_filter.php.before_dashboard");
+ mwexec("cp /usr/local/www/diag_logs_filter_dynamic.php /usr/local/www/diag_logs_filter_dynamic.php.before_dashboard");
-function dashboard_deinstall() {
- global $g, $config;
- assign_privs();
- if(file_exists("/usr/local/www/index.php.before_dashboard")) {
- /* restore the files prior to the dashboard package installation */
- mwexec("mv /usr/local/www/index.php.before_dashboard /usr/local/www/index.php");
- mwexec("mv /usr/local/www/fbegin.inc.before_dashboard /usr/local/www/fbegin.inc");
- mwexec("mv /usr/local/www/diag_logs_filter.php.before_dashboard /usr/local/www/diag_logs_filter.php");
- mwexec("mv /usr/local/www/diag_logs_filter_dynamic.php.before_dashboard /usr/local/www/diag_logs_filter_dynamic.php");
- }
+ mwexec("rm /usr/local/www/index.php");
+ mwexec("rm /usr/local/www/fbegin.inc");
+ mwexec("rm /usr/local/www/diag_logs_filter.php");
+ mwexec("rm /usr/local/www/diag_logs_filter_dynamic.php");
+
+ mwexec("tar xzvpf /usr/local/pkg/widgets.tgz -C /");
assign_privs();
}
diff --git a/config/dashboard/dashboard.xml b/config/dashboard/dashboard.xml
index 3b6de1b0..799504ba 100644
--- a/config/dashboard/dashboard.xml
+++ b/config/dashboard/dashboard.xml
@@ -7,7 +7,7 @@
/* $Id$ */
/* ========================================================================== */
/*
- authng.xml
+ dashboard.xml
part of pfSense (http://www.pfSense.com)
Copyright (C) 2007 to whom it may belong
All rights reserved.
@@ -46,7 +46,7 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>dashboard</name>
- <version>0.7.5.3</version>
+ <version>0.7.6</version>
<title>Dashboard</title>
<include_file>/usr/local/pkg/dashboard.inc</include_file>
<additional_files_needed>
@@ -62,7 +62,4 @@
<custom_php_install_command>
dashboard_install();
</custom_php_install_command>
- <custom_php_deinstall_command>
- dashboard_deinstall();
- </custom_php_deinstall_command>
</packagegui>
diff --git a/pkg_config.7.xml b/pkg_config.7.xml
index 9a7f21b3..8e53b989 100755
--- a/pkg_config.7.xml
+++ b/pkg_config.7.xml
@@ -78,7 +78,7 @@
<descr>Adds pfSense dashboard that will be included with 2.0. WARNING! Cannot be deinstalled.</descr>
<category>System</category>
<config_file>http://www.pfsense.com/packages/config/dashboard/dashboard.xml</config_file>
- <version>0.7.5.3</version>
+ <version>0.7.6</version>
<status>BETA</status>
<required_version>1.2</required_version>
<maximum_version>1.9</maximum_version>
diff --git a/pkg_config.xml b/pkg_config.xml
index ee71e707..34bc49e7 100644
--- a/pkg_config.xml
+++ b/pkg_config.xml
@@ -86,7 +86,7 @@
<descr>Adds pfSense dashboard that will be included with 2.0. This requires 1.2 or newer. WARNING! Cannot be deinstalled.</descr>
<category>System</category>
<config_file>http://www.pfsense.com/packages/config/dashboard/dashboard.xml</config_file>
- <version>1.7.5.3</version>
+ <version>1.7.6</version>
<status>BETA</status>
<required_version>1.2</required_version>
<maximum_version>1.9</maximum_version>