From a82fe7dbcf74e3f2b92f203fe76668edb9bceefb Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Tue, 1 Aug 2006 23:37:44 +0000 Subject: - moved sshterm package to its own folder --- packages/diag_shell.php | 83 ------------------------------- packages/sshterm.xml | 72 --------------------------- packages/sshterm/diag_shell_head.php | 83 +++++++++++++++++++++++++++++++ packages/sshterm/diag_shell_releng.php | 81 ++++++++++++++++++++++++++++++ packages/sshterm/sshterm.xml | 90 ++++++++++++++++++++++++++++++++++ pkg_config.xml | 2 +- 6 files changed, 255 insertions(+), 156 deletions(-) delete mode 100644 packages/diag_shell.php delete mode 100644 packages/sshterm.xml create mode 100644 packages/sshterm/diag_shell_head.php create mode 100644 packages/sshterm/diag_shell_releng.php create mode 100644 packages/sshterm/sshterm.xml diff --git a/packages/diag_shell.php b/packages/diag_shell.php deleted file mode 100644 index 3e810431..00000000 --- a/packages/diag_shell.php +++ /dev/null @@ -1,83 +0,0 @@ -. - All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - POSSIBILITY OF SUCH DAMAGE. -*/ - -$pgtitle = array(gettext("Diagnostics"), gettext("Shell")); - -require("guiconfig.inc"); - -if ($_POST) { - unset($input_errors); - /* NOP */ -} - -$pgtitle = "Diagnostics: Shell"; -include("head.inc"); -/* put your custom HTML head content here */ -/* using some of the $pfSenseHead function calls */ -echo $pfSenseHead->getHTML(); - -?> - - - - - -
- -
- - - - - -
: - - - - - - - - - - - - - - -
-
-
- diff --git a/packages/sshterm.xml b/packages/sshterm.xml deleted file mode 100644 index c49dba65..00000000 --- a/packages/sshterm.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - sshterm - 1.0 - Diagnostics: Shell - - - http://www.pfsense.org/packages/config/diag_shell.php - - - - - Shell -
Diagnostics
- sshterm.xml - /diag_shell.php -
- - ['installedpackages']['sshterm']['config'] - - - - - - - - - - - - - -
diff --git a/packages/sshterm/diag_shell_head.php b/packages/sshterm/diag_shell_head.php new file mode 100644 index 00000000..3e810431 --- /dev/null +++ b/packages/sshterm/diag_shell_head.php @@ -0,0 +1,83 @@ +. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +*/ + +$pgtitle = array(gettext("Diagnostics"), gettext("Shell")); + +require("guiconfig.inc"); + +if ($_POST) { + unset($input_errors); + /* NOP */ +} + +$pgtitle = "Diagnostics: Shell"; +include("head.inc"); +/* put your custom HTML head content here */ +/* using some of the $pfSenseHead function calls */ +echo $pfSenseHead->getHTML(); + +?> + + + + + +
+ +
+ + + + + +
: + + + + + + + + + + + + + + +
+
+
+ diff --git a/packages/sshterm/diag_shell_releng.php b/packages/sshterm/diag_shell_releng.php new file mode 100644 index 00000000..fdc2733c --- /dev/null +++ b/packages/sshterm/diag_shell_releng.php @@ -0,0 +1,81 @@ +. + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +*/ + +$pgtitle = array("Diagnostics", "Shell"); +require("guiconfig.inc"); + +if ($_POST) { + unset($input_errors); + /* NOP */ +} + +include("head.inc"); ?> + + +

+ + +
+ +
+ + +
+ + + + + + + +
SSH Terminal: + + + + + + + + + + + + + + +
+ +
+ diff --git a/packages/sshterm/sshterm.xml b/packages/sshterm/sshterm.xml new file mode 100644 index 00000000..a21aa340 --- /dev/null +++ b/packages/sshterm/sshterm.xml @@ -0,0 +1,90 @@ + + + + + + sshterm + 1.0 + Diagnostics: Shell + + + /usr/local/www/ + 0755 + http://www.pfsense.org/packages/config/sshterm/diag_shell_head.php + + + /usr/local/www/ + 0755 + http://www.pfsense.org/packages/config/sshterm/diag_shell_releng.php + + + + + Shell +
Diagnostics
+ sshterm.xml + /diag_shell.php +
+ + ['installedpackages']['sshterm']['config'] + + + + + + + + + + + $version = readfile("/etc/version"); + + if ($version == "HEAD") { + unlink("/usr/local/www/diag_shell_releng.php"); + rename("/usr/local/www/diag_shell_head.php", + "/usr/local/www/diag_shell.php"); + } else { + unlink("/usr/local/www/diag_shell_head.php"); + rename("/usr/local/www/diag_shell_releng.php", + "/usr/local/www/diag_shell.php"); + } + + + +
diff --git a/pkg_config.xml b/pkg_config.xml index 6dad039b..44b0c05b 100644 --- a/pkg_config.xml +++ b/pkg_config.xml @@ -56,7 +56,7 @@ me@daniel.stefan.haischt.name http://www.pfsense.com/packages/All/ sshtools-0.2.2.tbz - http://www.pfsense.org/packages/config/sshterm.xml + http://www.pfsense.org/packages/config/sshterm/sshterm.xml sshterm.xml -- cgit v1.2.3