From 783721d42370b30de032d1a886506b69cf68f606 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 26 Sep 2014 09:03:41 -0300 Subject: Remove anyterm (it has closed binaries and bash inside), and also removed unmaintained freeswitch and freeswitch-dev (port was removed from FreeBSD ports tree) --- config/anyterm/access_anyterm.php | 44 -------------- config/anyterm/anyterm.inc | 118 -------------------------------------- config/anyterm/anyterm.xml | 116 ------------------------------------- config/anyterm/binaries7/anytermd | Bin 3111332 -> 0 bytes config/anyterm/binaries8/anytermd | Bin 3156865 -> 0 bytes 5 files changed, 278 deletions(-) delete mode 100644 config/anyterm/access_anyterm.php delete mode 100644 config/anyterm/anyterm.inc delete mode 100644 config/anyterm/anyterm.xml delete mode 100755 config/anyterm/binaries7/anytermd delete mode 100755 config/anyterm/binaries8/anytermd (limited to 'config/anyterm') diff --git a/config/anyterm/access_anyterm.php b/config/anyterm/access_anyterm.php deleted file mode 100644 index b1703932..00000000 --- a/config/anyterm/access_anyterm.php +++ /dev/null @@ -1,44 +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. -*/ - -require("guiconfig.inc"); - -if($config['installedpackages']['anyterm']['config'][0]['stunnelport']) { - $port = $config['installedpackages']['anyterm']['config'][0]['stunnelport']; - $httpors = "https"; -} else { - $port = $config['installedpackages']['anyterm']['config'][0]['port']; - $httpors = "http"; -} - -$location = "{$_SERVER['SERVER_ADDR']}:{$port}/anyterm.html"; - -Header("Location: {$httpors}://{$location}"); - -?> \ No newline at end of file diff --git a/config/anyterm/anyterm.inc b/config/anyterm/anyterm.inc deleted file mode 100644 index 5ec4e5f1..00000000 --- a/config/anyterm/anyterm.inc +++ /dev/null @@ -1,118 +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. -*/ - -function anyterm_deinstall() { - global $g, $config; - conf_mount_rw(); - exec("killall anytermd"); - exec("rm /usr/local/etc/rc.d/anyterm.sh"); - exec("rm /usr/local/sbin/anytermd"); -} - -function anyterm_install() { - global $g, $config; - - conf_mount_rw(); - - // Grab latest version of executablevi / - $freebsdv=trim(`uname -r | cut -d'.' -f1`); - `fetch -q -o /usr/local/sbin/ https://packages.pfsense.org/packages/config/anyterm/binaries{$freebsdv}/anytermd`; - exec("chmod a+rx /usr/local/sbin/anytermd"); - - if($config['installedpackages']['anyterm']['config'][0]['username']) - $port = " --port {$config['installedpackages']['anyterm']['config'][0]['port']}"; - - // This will bring up the pfSense style menu - $anytermd_command = "anytermd --user root --command '/etc/rc.initial' --auth trivial $port"; - - $anyterm = << -ENDOFF - - fi -} - -anyterm_stop () { - echo "Stopping anyterm." - killall anyterm -} - -run_rc_command "\$1" - -EOD; - - // Write out file - $fd = fopen("/usr/local/etc/rc.d/anyterm.sh", "w"); - fwrite($fd, $anyterm); - fclose($fd); - // Make executable - exec("chmod a+rx /usr/local/etc/rc.d/anyterm.sh"); - - // Write out Anyterm configuration file (username and password for auth) - $fd = fopen("/var/etc/anyterm.conf", "w"); - fwrite($fd, $config['installedpackages']['anyterm']['config'][0]['username'] . "\n"); - fwrite($fd, $config['installedpackages']['anyterm']['config'][0]['password'] . "\n"); - fclose($fd); - exec("chmod a-r /var/etc/anyterm.conf ; chmod ug+r /var/etc/anyterm.conf ; killall anytermd"); - exec($anytermd_command); - -} - -?> \ No newline at end of file diff --git a/config/anyterm/anyterm.xml b/config/anyterm/anyterm.xml deleted file mode 100644 index f3b78012..00000000 --- a/config/anyterm/anyterm.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - anyterm - 1.0 - anyterm - /pkg_edit.php?xml=anyterm.xml&id=0 - /usr/local/pkg/anyterm.inc - - Anyterm - -
Diagnostics
- /pkg_edit.php?xml=anyterm.xml&id=0 -
- - Anyterm - anyterm.sh - anytermd - Ajax Interactive Shell - - installedpackages->anyterm->config - - /usr/local/pkg/ - 077 - https://packages.pfsense.org/packages/config/anyterm/anyterm.inc - - - /usr/local/www/ - 077 - https://packages.pfsense.org/packages/config/anyterm/access_anyterm.php - - - - Settings - /pkg_edit.php?xml=anyterm.xml&id=0 - - - - Ajax Shell - access_anyterm.php - - - - - Username - username - Enter the username for accessing Anyterm - input - - - Password - password - Enter the password for accessing Anyterm - password - - - Port - port - Enter the port that Anyterm will listen on Default is 8080. - input - - - STunnel Port - stunnelport - - - - input - - - - anyterm_install(); - - - anyterm_deinstall(); - -
\ No newline at end of file diff --git a/config/anyterm/binaries7/anytermd b/config/anyterm/binaries7/anytermd deleted file mode 100755 index ce5304e7..00000000 Binary files a/config/anyterm/binaries7/anytermd and /dev/null differ diff --git a/config/anyterm/binaries8/anytermd b/config/anyterm/binaries8/anytermd deleted file mode 100755 index 733f7197..00000000 Binary files a/config/anyterm/binaries8/anytermd and /dev/null differ -- cgit v1.2.3