Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
packages [2015/04/20 08:09] hesspackages [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-~~NOCACHE~~ 
-====== Software Packages ===== 
-As of version 3.8 NRSW is composed of the following software {{:nrsw:packages:packages.txt | packages}}.  
-Licenses include NetModule proprietary license as well as various opensource licenses. See also our [[legal:oss-notice|Open Source Software Notice]]. 
-<php> 
-$licenses = Array(       
-  "apache-1.0"                    => "Apache v1.0", 
-  "apache-1.1"                    => "Apache v1.1", 
-  "apache-2.0"                    => "Apache v2.0", 
-  "bsd"                           => "BSD", 
-  "bsd-1"                         => "BSD 1-clause", 
-  "bsd-2"                         => "BSD 2-clause", 
-  "bsd-3"                         => "BSD 3-clause", 
-  "bsd-4"                         => "BSD 4-clause", 
-  "bsd-sun"                       => "BSD/SUN", 
-  "dual-bsd-gpl"                  => "GPL/BSD Dual", 
-  "gpl-2"                         => "GPL v2",  
-  "gpl-3.1-with-gcc-exception"    => "GPL v3.1 (GCC)", 
-  "isc"                           => "ISC",  
-  "kernel"                        => "GPL v2",  
-  "lgpl-2.1"                      => "LGPL v2.1",  
-  "mit"                           => "MIT",  
-  "openssl"                       => "OpenSSL",  
-  "ppp-mix"                       => "PPP Mix (BSD/GPL)",  
-  "php-3.0"                       => "PHP v3.0",  
-  "public-domain"                 => "Public Domain",  
-  "vendor"                        => "NetModule", 
-  "zlib"                          => "Zlib", 
-); 
-$licenseurls = Array(       
-  "apache-1.0"                    => "", 
-  "apache-1.1"                    => "", 
-  "apache-2.0"                    => "", 
-  "bsd"                           => "", 
-  "bsd-1"                         => "", 
-  "bsd-2"                         => "", 
-  "bsd-3"                         => "http://opensource.org/licenses/BSD-3-Clause", 
-  "bsd-4"                         => "", 
-  "bsd-sun"                       => "", 
-  "dual-bsd-gpl"                  => "", 
-  "gpl-2"                         => "https://www.gnu.org/licenses/gpl-2.0.txt",  
-  "gpl-3.1-with-gcc-exception"    => "https://www.gnu.org/licenses/gcc-exception-3.1.html", 
-  "isc"                           => "http://opensource.org/licenses/ISC",  
-  "kernel"                        => "http://ftp.kernel.org/pub/linux/kernel/COPYING",  
-  "lgpl-2.1"                      => "https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt",  
-  "mit"                           => "http://opensource.org/licenses/MIT",  
-  "openssl"                       => "https://www.openssl.org/source/license.html",  
-  "ppp-mix"                       => "https://ppp.samba.org/README.html",  
-  "php-3.0"                       => "http://php.net/license/3_01.txt",  
-  "public-domain"                 => "",  
-  "vendor"                        => "", 
-  "zlib"                          => "http://opensource.org/licenses/zlib-license.php", 
-); 
  
-echo "<html>"; 
-echo "<table>"; 
-echo "<tr><th>Package</th><th>Version</th><th>License</th></tr>"; 
-$lines = file("data/media/nrsw/packages/packages.txt"); 
-foreach ($lines as $line_num => $line) { 
-  if  (substr($line, 0, 1) === "#") continue; // fist 2 lines 
-  $fields = preg_split('/\s+/', $line); // split at spaces -> 4 colums with package, license, modified and URL 
-  if (count($fields) >= 4) { 
-    $package = $fields[0]; 
-    $name = array_shift(preg_split('/-\d/', $package)); // first part is name 
-    $lic = $fields[1]; 
-    $license = (array_key_exists($lic,$licenses)) ? $licenses[$lic] : "unknown license key"; 
-    $licenseurl = (array_key_exists($lic,$licenseurls)) ? $licenseurls[$lic] : ""; 
-    $modified = $fields[2]; 
-    $url = $fields[3]; 
-    $version = substr($package,strlen($name)+1, strlen($package)); 
-    $version =  ($modified == "yes" && $license != "NetModule") ? $version . "-modified" : $version; 
-    echo "<tr>"; 
-    echo ($url!="") ? "<td><a href='$url'>". $name . "</a></td>" : "<td>". $name . "</td>"; 
-    echo "<td>". $version . "</td>"; 
-    echo ($licenseurl!="") ? "<td><a href='$licenseurl'>". $license . "</a></td>" : "<td>". $license . "</td>"; 
-    // echo "<td>". $license . "</td>"; 
-    echo "</tr>"; 
-  } 
-} 
-echo "</table>"; 
-echo "</html>"; 
-</php>