aboutsummaryrefslogtreecommitdiffstats
path: root/meta/conf/licenses.conf
blob: c4469c2aff7a3121bc3ae499200a9f7480bc5b2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
# These aren't actually used anywhere that I can tell
# They may be in the future (or are used by someone else
# For completion sake, I've updated them

SRC_DISTRIBUTE_LICENSES += "AAL Abstyles Adobe Adobe-2006 Adobe-Glyph ADSL AFL-1.1"
SRC_DISTRIBUTE_LICENSES += "AFL-1.2 AFL-2.0 AFL-2.1 AFL-3.0 Afmparse AGPL-1.0 AGPL-3.0"
SRC_DISTRIBUTE_LICENSES += "Aladdin AMDPLPA AML AMPAS ANTLR-PD Apache-1.0 Apache-1.1"
SRC_DISTRIBUTE_LICENSES += "Apache-2.0 APAFML APL-1.0 APSL-1.0 APSL-1.1 APSL-1.2"
SRC_DISTRIBUTE_LICENSES += "APSL-2.0 Artistic-1.0 Artistic-1.0-cl8 Artistic-1.0-Perl"
SRC_DISTRIBUTE_LICENSES += "Artistic-2.0 Bahyph Barr Beerware BitstreamVera"
SRC_DISTRIBUTE_LICENSES += "BitTorrent-1.0 BitTorrent-1.1 Borceux BSD BSD-0-Clause"
SRC_DISTRIBUTE_LICENSES += "BSD-2-Clause BSD-2-Clause-FreeBSD BSD-2-Clause-NetBSD"
SRC_DISTRIBUTE_LICENSES += "BSD-3-Clause BSD-3-Clause-Attribution BSD-3-Clause-Clear"
SRC_DISTRIBUTE_LICENSES += "BSD-3-Clause-LBNL BSD-4-Clause BSD-4-Clause-UC"
SRC_DISTRIBUTE_LICENSES += "BSD-Protection BSL-1.0 bzip2 bzip2-1.0.5 bzip2-1.0.6"
SRC_DISTRIBUTE_LICENSES += "Caldera CATOSL-1.1 CC0-1.0 CC-BY-1.0 CC-BY-2.0 CC-BY-2.5"
SRC_DISTRIBUTE_LICENSES += "CC-BY-3.0 CC-BY-4.0 CC-BY-NC-1.0 CC-BY-NC-2.0 CC-BY-NC-2.5"
SRC_DISTRIBUTE_LICENSES += "CC-BY-NC-3.0 CC-BY-NC-4.0 CC-BY-NC-ND-1.0 CC-BY-NC-ND-2.0"
SRC_DISTRIBUTE_LICENSES += "CC-BY-NC-ND-2.5 CC-BY-NC-ND-3.0 CC-BY-NC-ND-4.0"
SRC_DISTRIBUTE_LICENSES += "CC-BY-NC-SA-1.0 CC-BY-NC-SA-2.0 CC-BY-NC-SA-2.5"
SRC_DISTRIBUTE_LICENSES += "CC-BY-NC-SA-3.0 CC-BY-NC-SA-4.0 CC-BY-ND-1.0 CC-BY-ND-2.0"
SRC_DISTRIBUTE_LICENSES += "CC-BY-ND-2.5 CC-BY-ND-3.0 CC-BY-ND-4.0 CC-BY-SA-1.0"
SRC_DISTRIBUTE_LICENSES += "CC-BY-SA-2.0 CC-BY-SA-2.5 CC-BY-SA-3.0 CC-BY-SA-4.0"
SRC_DISTRIBUTE_LICENSES += "CDDL-1.0 CDDL-1.1 CECILL-1.0 CECILL-1.1 CECILL-2.0"
SRC_DISTRIBUTE_LICENSES += "CECILL-2.1 CECILL-B CECILL-C ClArtistic CNRI-Jython"
SRC_DISTRIBUTE_LICENSES += "CNRI-Python CNRI-Python-GPL-Compatible Condor-1.1 CPAL-1.0"
SRC_DISTRIBUTE_LICENSES += "CPL-1.0 CPOL-1.02 Crossword CrystalStacker CUA-OPL-1.0 Cube"
SRC_DISTRIBUTE_LICENSES += "curl D-FSL-1.0 diffmark DOC Dotseqn DSDP DSSSL dvipdfm"
SRC_DISTRIBUTE_LICENSES += "ECL-1.0 ECL-2.0 eCos-2.0 EDL-1.0 EFL-1.0 EFL-2.0 eGenix"
SRC_DISTRIBUTE_LICENSES += "Elfutils-Exception Entessa EPL-1.0 ErlPL-1.1 EUDatagrid"
SRC_DISTRIBUTE_LICENSES += "EUPL-1.0 EUPL-1.1 Eurosym Fair Frameworx-1.0 FreeImage"
SRC_DISTRIBUTE_LICENSES += "FreeType FSFAP FSFUL FSFULLR FSF-Unlimited FTL GFDL-1.1"
SRC_DISTRIBUTE_LICENSES += "GFDL-1.2 GFDL-1.3 Giftware GL2PS Glide Glulxe gnuplot"
SRC_DISTRIBUTE_LICENSES += "GPL-1.0 GPL-2.0 GPL-2.0-with-autoconf-exception"
SRC_DISTRIBUTE_LICENSES += "GPL-2.0-with-bison-exception"
SRC_DISTRIBUTE_LICENSES += "GPL-2.0-with-classpath-exception"
SRC_DISTRIBUTE_LICENSES += "GPL-2.0-with-font-exception GPL-2.0-with-GCC-exception"
SRC_DISTRIBUTE_LICENSES += "GPL-2.0-with-OpenSSL-exception GPL-2-with-bison-exception"
SRC_DISTRIBUTE_LICENSES += "GPL-3.0 GPL-3.0-with-autoconf-exception"
SRC_DISTRIBUTE_LICENSES += "GPL-3.0-with-GCC-exception gSOAP-1 gSOAP-1.3b HaskellReport"
SRC_DISTRIBUTE_LICENSES += "HPND IBM-pibs ICU IJG ImageMagick iMatix Imlib2 Info-ZIP"
SRC_DISTRIBUTE_LICENSES += "Intel Intel-ACPI Interbase-1.0 IPA IPL-1.0 ISC JasPer-2.0"
SRC_DISTRIBUTE_LICENSES += "JSON LAL-1.2 LAL-1.3 Latex2e Leptonica LGPL-2.0 LGPL-2.1"
SRC_DISTRIBUTE_LICENSES += "LGPL-3.0 LGPLLR Libpng libtiff LiLiQ-P-1.1 LiLiQ-R-1.1"
SRC_DISTRIBUTE_LICENSES += "LiLiQ-Rplus-1.1 LPL-1.0 LPL-1.02 LPPL-1.0 LPPL-1.1 LPPL-1.2"
SRC_DISTRIBUTE_LICENSES += "LPPL-1.3a LPPL-1.3c MakeIndex MirOS MIT MIT-advertising"
SRC_DISTRIBUTE_LICENSES += "MIT-CMU MIT-enna MIT-feh MITNFA Motosoto mpich2 MPL-1.0"
SRC_DISTRIBUTE_LICENSES += "MPL-1.1 MPL-2.0 MPL-2.0-no-copyleft-exception MS-PL MS-RL"
SRC_DISTRIBUTE_LICENSES += "MTLL Multics Mup NASA-1.3 Nauman Naumen NBPL-1.0 NCSA"
SRC_DISTRIBUTE_LICENSES += "NetCDF Newsletr NGPL NLOD-1.0 NLPL Nokia NOSL Noweb NPL-1.0"
SRC_DISTRIBUTE_LICENSES += "NPL-1.1 NPOSL-3.0 NRL NTP Nunit OASIS OCCT-PL OCLC-2.0"
SRC_DISTRIBUTE_LICENSES += "ODbL-1.0 OFL-1.0 OFL-1.1 OGTSL OLDAP-1.1 OLDAP-1.2"
SRC_DISTRIBUTE_LICENSES += "OLDAP-1.3 OLDAP-1.4 OLDAP-2.0 OLDAP-2.0.1 OLDAP-2.1"
SRC_DISTRIBUTE_LICENSES += "OLDAP-2.2 OLDAP-2.2.1 OLDAP-2.2.2 OLDAP-2.3 OLDAP-2.4"
SRC_DISTRIBUTE_LICENSES += "OLDAP-2.5 OLDAP-2.6 OLDAP-2.7 OLDAP-2.8 OML OpenSSL OPL-1.0"
SRC_DISTRIBUTE_LICENSES += "OSET-PL-2.1 OSL-1.0 OSL-1.1 OSL-2.0 OSL-2.1 OSL-3.0"
SRC_DISTRIBUTE_LICENSES += "ParaTypeFFL-1.3 PD PDDL-1.0 PHP-3.0 PHP-3.01 Plexus"
SRC_DISTRIBUTE_LICENSES += "PostgreSQL Proprietary psfrag psutils Python-2.0 Qhull"
SRC_DISTRIBUTE_LICENSES += "QPL-1.0 Rdisc RHeCos-1 RHeCos-1.1 RPL-1.1 RPL-1.5 RPSL-1.0"
SRC_DISTRIBUTE_LICENSES += "RSA-MD RSCPL Ruby Saxpath SAX-PD SCEA Sendmail SGI-1"
SRC_DISTRIBUTE_LICENSES += "SGI-B-1.0 SGI-B-1.1 SGI-B-2.0 SimPL-2.0 Simple-2.0 SISSL"
SRC_DISTRIBUTE_LICENSES += "SISSL-1.2 Sleepycat SMAIL_GPL SMLNJ SMPPL SNIA Spencer-86"
SRC_DISTRIBUTE_LICENSES += "Spencer-94 Spencer-99 SPL-1.0 StandardML-NJ SugarCRM-1"
SRC_DISTRIBUTE_LICENSES += "SugarCRM-1.1.3 SWL TCL TMate TORQUE-1.1 TOSL UCB unfs3"
SRC_DISTRIBUTE_LICENSES += "Unicode-TOU Unlicense UPL-1.0 Vim VOSTROM VSL-1.0 W3C"
SRC_DISTRIBUTE_LICENSES += "W3C-19980720 Watcom-1.0 Wsuipa WTFPL WXwindows X11 Xerox"
SRC_DISTRIBUTE_LICENSES += "XFree86-1.0 XFree86-1.1 xinetd Xnet xpp XSkat XSL YPL-1.0"
SRC_DISTRIBUTE_LICENSES += "YPL-1.1 Zed Zend-2.0 Zimbra-1.3 Zimbra-1.4 Zlib ZPL-1.1"
SRC_DISTRIBUTE_LICENSES += "ZPL-2.0 ZPL-2.1"

# Standards are great! Everyone has their own. In an effort to standardize licensing
# names, common-licenses will use the SPDX standard license names. In order to not
# break the non-standardized license names that we find in LICENSE, we'll set
# up a bunch of VarFlags to accomodate non-SPDX license names.
#
# We should really discuss standardizing this field, but that's a longer term goal.
# For now, we can do this and it should grab the most common LICENSE naming variations.
#
# We should NEVER have a GPL/LGPL without a version!!!!
# Any mapping to MPL/LGPL/GPL should be fixed

# AGPL variations
SPDXLICENSEMAP[AGPL-3] = "AGPL-3.0"
SPDXLICENSEMAP[AGPLv3] = "AGPL-3.0"
SPDXLICENSEMAP[AGPLv3.0] = "AGPL-3.0"

# GPL variations
SPDXLICENSEMAP[GPL-1] = "GPL-1.0"
SPDXLICENSEMAP[GPLv1] = "GPL-1.0"
SPDXLICENSEMAP[GPLv1.0] = "GPL-1.0"
SPDXLICENSEMAP[GPL-2] = "GPL-2.0"
SPDXLICENSEMAP[GPLv2] = "GPL-2.0"
SPDXLICENSEMAP[GPLv2.0] = "GPL-2.0"
SPDXLICENSEMAP[GPL-3] = "GPL-3.0"
SPDXLICENSEMAP[GPLv3] = "GPL-3.0"
SPDXLICENSEMAP[GPLv3.0] = "GPL-3.0"

#LGPL variations
SPDXLICENSEMAP[LGPLv2] = "LGPL-2.0"
SPDXLICENSEMAP[LGPLv2.0] = "LGPL-2.0"
SPDXLICENSEMAP[LGPL2.1] = "LGPL-2.1"
SPDXLICENSEMAP[LGPLv2.1] = "LGPL-2.1"
SPDXLICENSEMAP[LGPLv3] = "LGPL-3.0"

#MPL variations
SPDXLICENSEMAP[MPL-1] = "MPL-1.0"
SPDXLICENSEMAP[MPLv1] = "MPL-1.0"
SPDXLICENSEMAP[MPLv1.1] = "MPL-1.1"
SPDXLICENSEMAP[MPLv2] = "MPL-2.0"

#MIT variations
SPDXLICENSEMAP[MIT-X] = "MIT"
SPDXLICENSEMAP[MIT-style] = "MIT"

#Openssl variations
SPDXLICENSEMAP[openssl] = "OpenSSL"

#Python variations
SPDXLICENSEMAP[PSF] = "Python-2.0"
SPDXLICENSEMAP[PSFv2] = "Python-2.0"
SPDXLICENSEMAP[Python-2] = "Python-2.0"

#Apache variations
SPDXLICENSEMAP[Apachev2] = "Apache-2.0"
SPDXLICENSEMAP[Apache-2] = "Apache-2.0"

#Artistic variations
SPDXLICENSEMAP[Artisticv1] = "Artistic-1.0"
SPDXLICENSEMAP[Artistic-1] = "Artistic-1.0"

#Academic variations
SPDXLICENSEMAP[AFL-2] = "AFL-2.0"
SPDXLICENSEMAP[AFL-1] = "AFL-1.2"
SPDXLICENSEMAP[AFLv2] = "AFL-2.0"
SPDXLICENSEMAP[AFLv1] = "AFL-1.2"

#Other variations
SPDXLICENSEMAP[EPLv1.0] = "EPL-1.0"

#Silicon Graphics variations
SPDXLICENSEMAP[SGIv1] = "SGI-1"

# Additional license directories. Add your custom licenses directories this path.
# LICENSE_PATH += "${COREBASE}/custom-licenses"

# Set if you want the license.manifest copied to the image
#COPY_LIC_MANIFEST = "1"

# If you want the pkg licenses copied over as well you must set
# both COPY_LIC_MANIFEST and COPY_LIC_DIRS
#COPY_LIC_DIRS = "1"

## SPDX temporary directory
SPDX_TEMP_DIR = "${WORKDIR}/spdx_temp"
SPDX_MANIFEST_DIR = "/home/yocto/fossology_scans"

## SPDX Format info
SPDX_VERSION = "SPDX-1.1"
DATA_LICENSE = "CC0-1.0"

## Fossology scan information
# You can set option to control if the copyright information will be skipped
# during the identification process.
#
# It is defined as [FOSS_COPYRIGHT] in ./meta/conf/licenses.conf.
# FOSS_COPYRIGHT = "true"
#   NO copyright will be processed. That means only license information will be
#   identified and output to SPDX file
# FOSS_COPYRIGHT = "false"
#   Copyright will be identified and output to SPDX file along with license
#   information. The process will take more time than not processing copyright
#   information.
#

FOSS_NO_COPYRIGHT = "true"

# A option defined as[FOSS_RECURSIVE_UNPACK] in ./meta/conf/licenses.conf. is
# used to control if FOSSology server need recursively unpack tar.gz file which
# is sent from do_spdx task.
#
# FOSS_RECURSIVE_UNPACK = "false":
#    FOSSology server does NOT recursively unpack. In the current release, this
#    is the default choice because recursively unpack will not necessarily break
#    down original compressed files.
# FOSS_RECURSIVE_UNPACK = "true":
#    FOSSology server recursively unpack components.
#

FOSS_RECURSIVE_UNPACK = "false"

# An option defined as [FOSS_FULL_SPDX] in ./meta/conf/licenses.conf is used to
# control what kind of SPDX output to get from the FOSSology server.
#
# FOSS_FULL_SPDX = "true":
#   Tell FOSSology server to return full SPDX output, like if the program was
#   run from the command line. This is needed in order to get license refs for
#   the full package rather than individual files only.
#
# FOSS_FULL_SPDX = "false":
#   Tell FOSSology to only process license information for files. All package
#   license tags in the report will be "NOASSERTION"
#

FOSS_FULL_SPDX = "true"

# FOSSologySPDX instance server. http://localhost/repo is the default
# installation location for FOSSology.
#
# For more information on FOSSologySPDX commandline:
#   https://github.com/spdx-tools/fossology-spdx/wiki/Fossology-SPDX-Web-API
#

FOSS_BASE_URL = "http://localhost/repo/?mod=spdx_license_once"
FOSS_SERVER = "${FOSS_BASE_URL}&fullSPDXFlag=${FOSS_FULL_SPDX}&noCopyright=${FOSS_NO_COPYRIGHT}&recursiveUnpack=${FOSS_RECURSIVE_UNPACK}"

FOSS_WGET_FLAGS = "-qO - --no-check-certificate --timeout=0"