Licenses: Difference between revisions
mNo edit summary Tag: Reverted |
mNo edit summary Tag: Reverted |
||
Line 72: | Line 72: | ||
<h4>Look for other software packages that may have already been curated at <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">O</span> and provide links to the related licenses in use</h4> | <h4>Look for other software packages that may have already been curated at <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">O</span> and provide links to the related licenses in use</h4> | ||
<input type="text" onkeyup="searchtextkeyup(event, this, ' | <input type="text" onkeyup="searchtextkeyup(event, this, 'licensesallversions');" size="30" /><button onclick="searchOSSelot(this, 'licensesallversions');">Search for an <span style="font-family: OSSelot-Bold; font-weight: 500; color: #1565af;">O</span> list of concluded licenses</button><br /> | ||
<span style="display: none;"></span> | <span style="display: none;"></span> | ||
<br /> | <br /> |
Revision as of 23:47, 14 July 2023
Obtain licenses
Shell script
Use a shell script to encapsulate the search Web script in such a way that the licenses of a given package and optionally given version are extracted from the related SPDX tag:value files at the O Github repository:
#!/bin/bash if test -z "$1" then echo "Usage: $0 <package> <version>" exit 1 fi package="$1" version="$2" if test "$version" then package="$package/version-$version" fi wget -qO - https://www.osselot.org/licenses.php?$package
If the script is called "getlicenses" and invoked for the software package that was used as example on the search page as
getlicenses angular 15.2.2 | grep -v '^<'
the following list of licenses is returned:
Apache-2.0 Apache-2.0 AND 0BSD AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-Salesforce AND ISC AND MIT BSD-3-Clause CC-BY-4.0 MIT NOASSERTION Public-domain NOASSERTION
If the version number had been omitted, the licenses of all available versions would have been listed:
getlicenses angular | grep -v '^<' angular/version-15.1.0: Apache-2.0 Apache-2.0 AND 0BSD AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-Salesforce AND ISC AND MIT BSD-3-Clause CC-BY-4.0 MIT NOASSERTION Public-domain angular/version-15.2.2: Apache-2.0 Apache-2.0 AND 0BSD AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-Salesforce AND ISC AND MIT BSD-3-Clause CC-BY-4.0 MIT NOASSERTION Public-domain angular/version-16.0.1: Apache-2.0 Apache-2.0 AND 0BSD AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-Salesforce AND ISC AND MIT BSD-3-Clause CC-BY-4.0 MIT NOASSERTION Public-domain angular/version-16.1.2: Apache-2.0 Apache-2.0 AND 0BSD AND BSD-2-Clause AND BSD-3-Clause AND BSD-3-Clause-Salesforce AND ISC AND MIT BSD-3-Clause CC-BY-4.0 MIT NOASSERTION Public-domain
Same as with the other Web scripts, the license URL can, of course, also be called directly in a browser such as https://www.osselot.org/licenses.php?angular.
Web interface to immediately search for a given package and provide a list of licenses
Look for other software packages that may have already been curated at O and provide links to the related licenses in use
Interface to obtain entire disclosure documents
A similar interface is provided that instead of the licenses the entire disclosure files of package versions are made available through links.