aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Stefan Haischt <dsh@pfsense.org>2007-10-14 18:09:02 +0000
committerDaniel Stefan Haischt <dsh@pfsense.org>2007-10-14 18:09:02 +0000
commit9df6fa122363498a3200f33981ad6e075107a940 (patch)
treee1aa5c03e80ad9be3b14cb513e29cdd623d8f2a3
parent7c98ff7a85c11ca8b7f11eaa23e5595f34016080 (diff)
downloadpfsense-packages-9df6fa122363498a3200f33981ad6e075107a940.tar.gz
pfsense-packages-9df6fa122363498a3200f33981ad6e075107a940.tar.bz2
pfsense-packages-9df6fa122363498a3200f33981ad6e075107a940.zip
* manually copy files
-rw-r--r--packages/dyntables/pkg/dyntables.inc10
-rw-r--r--packages/dyntables/pkg/dyntables.xml4
2 files changed, 10 insertions, 4 deletions
diff --git a/packages/dyntables/pkg/dyntables.inc b/packages/dyntables/pkg/dyntables.inc
index 853eea11..97e8a422 100644
--- a/packages/dyntables/pkg/dyntables.inc
+++ b/packages/dyntables/pkg/dyntables.inc
@@ -43,11 +43,17 @@ function syncPackageDyntables() {
}
function installPackageDyntables() {
-
+ /* move temp files */
+ @rename('/usr/local/www/diag_dhcp_leases.php', '/usr/local/pkg/diag_dhcp_leases.php.org');
+ @rename('/usr/local/pkg/dyntables.js', '/usr/local/www/javascript/dyntables.js');
+ @rename('/usr/local/pkg/diag_dhcp_leases.php', '/usr/local/www/diag_dhcp_leases.php');
}
function deinstallPackageDyntables() {
-
+ /* move backup files */
+ @unlink('/usr/local/www/diag_dhcp_leases.php');
+ @unlink('/usr/local/www/javascript/dyntables.js');
+ @rename('/usr/local/pkg/diag_dhcp_leases.php.org', '/usr/local/www/diag_dhcp_leases.php');
}
function checkForExtension($alertClass) {
diff --git a/packages/dyntables/pkg/dyntables.xml b/packages/dyntables/pkg/dyntables.xml
index 529e587e..8a249966 100644
--- a/packages/dyntables/pkg/dyntables.xml
+++ b/packages/dyntables/pkg/dyntables.xml
@@ -81,7 +81,7 @@
|
-->
<additional_files_needed>
- <prefix>/usr/local/www/</prefix>
+ <prefix>/usr/local/pkg/</prefix>
<chmod>0755</chmod>
<item>http://www.pfsense.com/packages/config/dyntables/www/php/diag_dhcp_leases.php</item>
</additional_files_needed>
@@ -91,7 +91,7 @@
|
-->
<additional_files_needed>
- <prefix>/usr/local/www/javascript</prefix>
+ <prefix>/usr/local/pkg/</prefix>
<chmod>0755</chmod>
<item>http://www.pfsense.com/packages/config/dyntables/www/js/dyntables.js</item>
</additional_files_needed>