aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-11-03 11:44:30 -0400
committerjim-p <jimp@pfsense.org>2010-11-03 11:44:30 -0400
commit73665ee51381051f7174a0ea967f30a0bf42f3ae (patch)
treecccf77e78b817e2e0f5c2e7b10bf17f6d6ce2ecf
parentb3ba682e619de9a89dede8025d403c64318b993c (diff)
downloadpfsense-packages-73665ee51381051f7174a0ea967f30a0bf42f3ae.tar.gz
pfsense-packages-73665ee51381051f7174a0ea967f30a0bf42f3ae.tar.bz2
pfsense-packages-73665ee51381051f7174a0ea967f30a0bf42f3ae.zip
Keep downloaded shellcmd files around so the package system doesn't complain about missing dependencies on each boot.
-rw-r--r--config/shellcmd/shellcmd.inc7
-rw-r--r--config/shellcmd/shellcmd.xml4
-rwxr-xr-xpkg_config.7.xml2
3 files changed, 5 insertions, 8 deletions
diff --git a/config/shellcmd/shellcmd.inc b/config/shellcmd/shellcmd.inc
index 76ceeb31..cd46ada5 100644
--- a/config/shellcmd/shellcmd.inc
+++ b/config/shellcmd/shellcmd.inc
@@ -79,11 +79,8 @@ function php_install_command()
//rename PHP files from .tmp to .php
- exec("cp /tmp/shellcmd.tmp /usr/local/www/packages/shellcmd/shellcmd.php");
- unlink_if_exists("/tmp/shellcmd.tmp");
-
- exec("cp /tmp/shellcmd_edit.tmp /usr/local/www/packages/shellcmd/shellcmd_edit.php");
- unlink_if_exists("/tmp/shellcmd_edit.tmp");
+ exec("cp /usr/local/pkg/shellcmd.tmp /usr/local/www/packages/shellcmd/shellcmd.php");
+ exec("cp /usr/local/pkg/shellcmd_edit.tmp /usr/local/www/packages/shellcmd/shellcmd_edit.php");
//write_config();
diff --git a/config/shellcmd/shellcmd.xml b/config/shellcmd/shellcmd.xml
index 5860b68c..a4b67c7a 100644
--- a/config/shellcmd/shellcmd.xml
+++ b/config/shellcmd/shellcmd.xml
@@ -75,12 +75,12 @@
<item>http://www.pfsense.com/packages/config/shellcmd/shellcmd.inc</item>
</additional_files_needed>
<additional_files_needed>
- <prefix>/tmp/</prefix>
+ <prefix>/usr/local/pkg/</prefix>
<chmod>0755</chmod>
<item>http://www.pfsense.com/packages/config/shellcmd/shellcmd.tmp</item>
</additional_files_needed>
<additional_files_needed>
- <prefix>/tmp/</prefix>
+ <prefix>/usr/local/pkg/</prefix>
<chmod>0755</chmod>
<item>http://www.pfsense.com/packages/config/shellcmd/shellcmd_edit.tmp</item>
</additional_files_needed>
diff --git a/pkg_config.7.xml b/pkg_config.7.xml
index 59b9e77f..898f3a4e 100755
--- a/pkg_config.7.xml
+++ b/pkg_config.7.xml
@@ -331,7 +331,7 @@
<pkginfolink></pkginfolink>
<config_file>http://www.pfsense.com/packages/config/shellcmd/shellcmd.xml</config_file>
<depends_on_package_base_url>http://files.pfsense.org/packages/7/All/</depends_on_package_base_url>
- <version>0.4</version>
+ <version>0.5</version>
<status>Beta</status>
<required_version>1.2</required_version>
<maintainer>markjcrane@gmail.com</maintainer>