license.conf 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. LICENSE_EXPRESSION=
  2. LICENSE_NAMES=
  3. MODULE_LICENSES_RESTRICTIONS=
  4. MODULE_LICENSES_RESTRICTION_EXCEPTIONS=
  5. MODULE_LICENSES_RESTRICTION_TYPES=
  6. MODULEWISE_LICENSES_RESTRICTIONS=
  7. MODULEWISE_LICENSES_RESTRICTION_TYPES=
  8. DEFAULT_MODULE_LICENSE=Service-Default-License
  9. EXPLICIT_LICENSE_PREFIXES=
  10. EXPLICIT_LICENSE_EXCEPTIONS=
  11. # List of license properties which can be used to restrict transitive dependencies. There are three variables checked for each
  12. # property:
  13. # * LICENSES_<PROP_NAME>_STATIC: list of licenses which propagates this property when linking with code published by one of
  14. # them statically.
  15. # * LICENSES_<PROP_NAME>_DYNAMIC: list of licenses which propagates this property when linking with code published by one of
  16. # them dyamically.
  17. # * LICENSES_<PROP_NAME>: list of licenses which propagates this property regrdless of type of linking with code published by
  18. # one of them. Putting some license into this list is equivalent to putting it into both
  19. # LICENSES_<PROP_NAME>_STATIC and LICENSES_<PROP_NAME>_DYNAMIC lists.
  20. LICENSE_PROPERTIES= \
  21. FORBIDDEN \
  22. NDA \
  23. REQUIRE_CITATION \
  24. REQUIRE_DISCLOSURE \
  25. SERVICE \
  26. UNATTRIBUTED \
  27. # NB: Licenses lists below are sorted case-insensitively. Please, keep the list sorted.
  28. LICENSES_UNATTRIBUTED= \
  29. AFL-2.0 \
  30. Amazon-SL \
  31. APSL-1.0 \
  32. Artistic-1.0-Perl \
  33. Artistic-2.0 \
  34. ASM-BSD-3-Clause \
  35. BCL \
  36. Bison-Exception \
  37. Bison-exception-2.2 \
  38. BouncyCastle-MIT \
  39. BSD-3-Clause-Clear \
  40. BSD-3-Clause-Open-MPI \
  41. BSD-4-Clause-Shortened \
  42. Bsd-New-Tcpdump \
  43. Carnegie-Mellon \
  44. Carnegie-Mellon-Contributors \
  45. CC-BY-NC-1.0 \
  46. CC-BY-NC-2.0 \
  47. CC-BY-NC-2.5 \
  48. CC-BY-NC-3.0 \
  49. CC-BY-NC-ND-1.0 \
  50. CC-BY-NC-ND-2.0 \
  51. CC-BY-NC-ND-2.5 \
  52. CC-BY-NC-ND-3.0 \
  53. CC-BY-NC-SA-1.0 \
  54. CC-BY-NC-SA-2.0 \
  55. CC-BY-NC-SA-2.5 \
  56. CC-BY-NC-SA-3.0 \
  57. CC-BY-ND-1.0 \
  58. CC-BY-ND-2.0 \
  59. CC-BY-ND-2.5 \
  60. CC-BY-ND-3.0 \
  61. CC-BY-SA-1.0 \
  62. CC-BY-SA-2.0 \
  63. CC-BY-SA-2.5 \
  64. CC-BY-SA-3.0 \
  65. CC-BY-SA-4.0 \
  66. CDDL \
  67. CECILL-B \
  68. ClArtistic \
  69. DSO-1.1 \
  70. Elastic-License-2.0 \
  71. FSFUL \
  72. FSFULLR \
  73. GCC-exception-3.1 \
  74. GDAL \
  75. GFDL-1.1-or-later \
  76. Go-License \
  77. Google-Patent-License-Webm \
  78. Google-Patent-License-Webrtc \
  79. GPL-2.0-only WITH freertos-exception-2.0 \
  80. GPL-2.0-only WITH Mysql-Linking-Exception-2018 \
  81. GPL-2.0-only WITH Universal-FOSS-exception-1.0 \
  82. GPL-2.0-or-later WITH Avisynth-C-Interface-Exception \
  83. GPL-2.0-or-later WITH Bison-Exception-2.0 \
  84. GPL-2.0-or-later WITH Bison-exception-2.2 \
  85. GPL-2.0-or-later WITH C-Interface-Exception \
  86. GPL-2.0-or-later WITH freertos-exception-2.0 \
  87. GPL-2.0-or-later WITH Libtool-exception \
  88. GPL-2.0-or-later WITH mif-exception \
  89. GWT-Terms \
  90. Hdf5 \
  91. HPND-sell-variant \
  92. HSQLDB-BSD-3-Clause \
  93. Ibm-Dhcp \
  94. Ietf-trust \
  95. ImageMagick \
  96. Intel-Material \
  97. IPL-1.0 \
  98. JAMon-BSD-3-Clause \
  99. jQuery-MIT \
  100. LGPL-3.0-or-later WITH ZeroMQ-Exception \
  101. LicenseRef-scancode-afpl-9.0 \
  102. LicenseRef-scancode-amd-historical \
  103. LicenseRef-scancode-anu-license \
  104. LicenseRef-scancode-autoconf-simple-exception \
  105. LicenseRef-scancode-autoconf-simple-exception-2.0 \
  106. LicenseRef-scancode-bsd-3-clause-jtag \
  107. LicenseRef-scancode-bsd-axis-nomod \
  108. LicenseRef-scancode-bsd-new-nomod \
  109. LicenseRef-scancode-bsd-no-disclaimer \
  110. LicenseRef-scancode-bsd-x11 \
  111. LicenseRef-scancode-bsla-no-advert \
  112. LicenseRef-scancode-cavium-malloc \
  113. LicenseRef-scancode-cc-by-2.0-uk \
  114. LicenseRef-scancode-cc-devnations-2.0 \
  115. LicenseRef-scancode-cc-sampling-1.0 \
  116. LicenseRef-scancode-cmu-simple \
  117. LicenseRef-scancode-commercial-license \
  118. LicenseRef-scancode-commons-clause \
  119. LicenseRef-scancode-delorie-historical \
  120. LicenseRef-scancode-flex-2.5 \
  121. LicenseRef-scancode-free-unknown \
  122. LicenseRef-scancode-gary-s-brown \
  123. LicenseRef-scancode-generic-cla \
  124. LicenseRef-scancode-generic-exception \
  125. LicenseRef-scancode-intel-osl-1993 \
  126. LicenseRef-scancode-jdom \
  127. LicenseRef-scancode-mit-xfig \
  128. LicenseRef-scancode-newlib-historical \
  129. LicenseRef-scancode-nilsson-historical \
  130. LicenseRef-scancode-openssl \
  131. LicenseRef-scancode-openssl-exception-lgpl-3.0-plus \
  132. LicenseRef-scancode-openssl-nokia-psk-contribution \
  133. LicenseRef-scancode-osf-1990 \
  134. LicenseRef-scancode-other-copyleft \
  135. LicenseRef-scancode-other-permissive \
  136. LicenseRef-scancode-paul-mackerras \
  137. LicenseRef-scancode-paul-mackerras-new \
  138. LicenseRef-scancode-pcre \
  139. LicenseRef-scancode-ppp \
  140. LicenseRef-scancode-proprietary-license \
  141. LicenseRef-scancode-secret-labs-2011 \
  142. LicenseRef-scancode-ssleay-windows \
  143. LicenseRef-scancode-sun-source \
  144. LicenseRef-scancode-unknown \
  145. LicenseRef-scancode-unknown-license-reference \
  146. LicenseRef-scancode-unknown-spdx \
  147. LicenseRef-scancode-warranty-disclaimer \
  148. LicenseRef-scancode-xfree86-1.0 \
  149. LPL-1.02 \
  150. MirOS \
  151. Mit-Xfig \
  152. NAIST-2003 \
  153. NOSL \
  154. NPL-1.1 \
  155. Nvidia-Gov \
  156. OFL-1.1 \
  157. Oracle \
  158. Oracle-technology \
  159. PSF-3.7.2 \
  160. Quicklz \
  161. Ruby \
  162. Sendmail \
  163. Spencer-99 \
  164. SSPL-1.0 \
  165. Stlport-4.5 \
  166. SZIP \
  167. TCL \
  168. TU-Berlin-1.0 \
  169. Unicode-TOU \
  170. Universal-FOSS-exception-1.0 \
  171. Unknown \
  172. Vcalendar \
  173. Vim \
  174. X11-Adobe-Dec \
  175. X11-Hanson \
  176. Xfree86-1.0 \
  177. Xnet
  178. LICENSES_FORBIDDEN= \
  179. AGPL-3.0-only \
  180. AGPL-3.0-or-later \
  181. Artistic-1.0 \
  182. confluent-community-1.0 \
  183. # Group for proprietary code licenses
  184. LICENSES_NDA= \
  185. Intel-NDA \
  186. mimepp \
  187. OracleOebs
  188. # These licenses allow use with opensource code only
  189. LICENSES_REQUIRE_DISCLOSURE= \
  190. CDDL-1.0 \
  191. CDDL-1.1 \
  192. CECILL-2.0 \
  193. CPL-1.0 \
  194. EPL-1.0 \
  195. EPL-2.0 \
  196. GPL \
  197. GPL-1.0-only \
  198. GPL-1.0-or-later \
  199. GPL-1.0-or-later WITH Linux-syscall-note \
  200. GPL-1.1 \
  201. GPL-2.0 \
  202. GPL-2.0-only \
  203. GPL-2.0-only WITH OpenJDK-assembly-exception-1.0 \
  204. GPL-2.0-or-later \
  205. GPL-2.0-or-later WITH GCC-exception-2.0 \
  206. GPL-2.0-or-later WITH Linux-syscall-note \
  207. GPL-3.0-only \
  208. GPL-3.0-or-later \
  209. GPLv2+ \
  210. TMate \
  211. LICENSES_REQUIRE_DISCLOSURE_STATIC= \
  212. LGPL \
  213. LGPL-1.0-or-later \
  214. LGPL-2.0-only \
  215. LGPL-2.0-or-later \
  216. LGPL-2.0-or-later WITH Libtool-exception \
  217. LGPL-2.0-or-later WITH Linux-syscall-note \
  218. LGPL-2.0-or-later WITH Qt-LGPL-exception-1.1 \
  219. LGPL-2.1-only \
  220. LGPL-2.1-only WITH Linux-syscall-note \
  221. LGPL-2.1-or-later \
  222. LGPL-2.1-or-later WITH Linux-syscall-note \
  223. LGPL-3.0-only \
  224. LGPL-3.0-or-later
  225. # These licenses allows any kind of linkage with proprietary code
  226. LICENSES_REQUIRE_CITATION= \
  227. 0BSD \
  228. AML \
  229. Apache-1.0 \
  230. Apache-1.1 \
  231. Apache-2.0 \
  232. Apache-2.0 WITH LLVM-exception \
  233. APSL-2.0 \
  234. Beerware \
  235. blessing \
  236. Brian-Gladman-3-Clause \
  237. BSD \
  238. BSD-1-Clause \
  239. BSD-2-Clause \
  240. BSD-2-Clause-Patent \
  241. BSD-2-Clause-Views \
  242. BSD-3-Clause \
  243. BSD-3-Clause WITH Google-Patent-License-Webm \
  244. BSD-3-Clause WITH Google-Patent-License-Webrtc \
  245. BSD-4-Clause \
  246. BSD-4-Clause-UC \
  247. BSD-derived \
  248. Bsd-Original-Uc-1986 \
  249. Bsd-Simplified-Darwin \
  250. BSD-Source-Code \
  251. Bsd-Unchanged \
  252. Bsd-Unmodified \
  253. BSL-1.0 \
  254. BSLA \
  255. bzip2-1.0.6 \
  256. CC-BY-1.0 \
  257. CC-BY-2.0 \
  258. CC-BY-2.5 \
  259. CC-BY-3.0 \
  260. CC-BY-4.0 \
  261. CC-PDDC \
  262. CC0-1.0 \
  263. Cmu-Computing-Services \
  264. CUP-Parser \
  265. curl \
  266. Custom-eigen \
  267. Custom-fft2d \
  268. Custom-fft4g \
  269. Custom-Oasis-Pkcs11 \
  270. Custom-openldap \
  271. Custom-punycode \
  272. Custom-punycode-libpsl \
  273. Custom-swig \
  274. Custom-wcwidth \
  275. DOC \
  276. EDL-1.0 \
  277. Facebook-SDK \
  278. FDK \
  279. Fftpack-2004 \
  280. FSFAP \
  281. FTL \
  282. GPL-2.0-only WITH Classpath-exception-2.0 \
  283. GPL-2.0-only WITH GCC-exception-2.0 \
  284. GPL-2.0-only WITH Linux-syscall-note \
  285. GPL-3.0-only WITH Bison-exception-2.2 \
  286. GPL-3.0-or-later WITH Bison-exception-2.2 \
  287. H2 \
  288. HPND \
  289. IBM-pibs \
  290. ICU \
  291. Ietf \
  292. IJG \
  293. Info-Zip \
  294. Intel-LLVM-SGA \
  295. Intel-Simplified \
  296. ISC \
  297. JSON \
  298. Khronos \
  299. Libpbm \
  300. Libpng \
  301. libpng-2.0 \
  302. libtiff \
  303. LicenseRef-scancode-ams-fonts \
  304. LicenseRef-scancode-bitstream \
  305. LicenseRef-scancode-mit-no-advert-export-control \
  306. LicenseRef-scancode-oasis-ws-security-spec \
  307. LicenseRef-scancode-paul-mackerras-binary \
  308. LicenseRef-scancode-swig \
  309. LicenseRef-scancode-ws-policy-specification \
  310. Linux-OpenIB \
  311. Martin-Birgmeier \
  312. Minpack \
  313. MIT \
  314. MIT WITH Musl-Exception \
  315. MIT-0 \
  316. MIT-CMU \
  317. MIT-Modern-Variant \
  318. MIT-Nagy \
  319. Mit-Old-Style \
  320. MIT-open-group \
  321. Mit-Veillard-Variant \
  322. Mozilla-GC \
  323. MPL-1.0 \
  324. MPL-1.1 \
  325. MPL-2.0 \
  326. NCSA \
  327. NetCDF \
  328. Not-Applicable \
  329. NTP \
  330. Nvidia \
  331. OGC-1.0 \
  332. OLDAP-2.8 \
  333. OML \
  334. OpenSSL \
  335. PayPal-SDK \
  336. PCRE \
  337. PD \
  338. PHP-3.01 \
  339. PIL \
  340. Plexus \
  341. PostgreSQL \
  342. Protobuf-License \
  343. PSF \
  344. PSF-2.0 \
  345. Public-Domain \
  346. Public-Domain-US-Govt \
  347. Python-2.0 \
  348. Qhull \
  349. Red-Hat-Attribution \
  350. Repoze-public \
  351. RSA-1990 \
  352. RSA-MD \
  353. RSA-MD4 \
  354. SAX-PD \
  355. SGI-B-2.0 \
  356. Sleepycat \
  357. SMLNJ \
  358. Snprintf \
  359. Softsurfer \
  360. Spencer-94 \
  361. SSH-short \
  362. SSLeay \
  363. Sunpro \
  364. Unicode \
  365. Unicode-DFS-2016 \
  366. Unicode-Icu-58 \
  367. Unicode-Mappings \
  368. Unittest-Permissive-License \
  369. Unlicense \
  370. Unrar \
  371. UPL-1.0 \
  372. Vertica \
  373. W3C \
  374. W3C-19980720 \
  375. WTFPL \
  376. X11 \
  377. X11-Lucent \
  378. X11-XConsortium-Veillard \
  379. YandexOpen \
  380. Zlib \
  381. zlib-acknowledgement \
  382. ZPL-2.1 \
  383. LICENSES_REQUIRE_CITATION_DYNAMIC= \
  384. LGPL \
  385. LGPL-2.0-only \
  386. LGPL-2.0-or-later \
  387. LGPL-2.1-only \
  388. LGPL-2.1-or-later \
  389. LGPL-3.0-only \
  390. LGPL-3.0-or-later
  391. LICENSES_SERVICE= \
  392. Service-Default-License \
  393. Service-Dll-Harness \
  394. Service-Prebuilt-Tool \
  395. Service-Py23-Proxy \
  396. Service-Unknown-License-Java \
  397. macro _DONT_REQUIRE_LICENSE() {
  398. SET(EXPLICIT_LICENSE_PREFIXES "")
  399. }
  400. ### @usage: LICENSE(licenses...)
  401. ###
  402. ### Specify the licenses of the module, separated by spaces. Specifying multiple licenses interpreted as permission to use this
  403. ### library satisfying all conditions of any of the listed licenses.
  404. ###
  405. ### A license must be prescribed for contribs
  406. macro LICENSE(Flags...) {
  407. SET(LICENSE_EXPRESSION $Flags)
  408. SET(LICENSE_NAMES $Flags)
  409. }
  410. ### @usage LICENSE_RESTRICTION(ALLOW_ONLY|DENY LicenseProperty...)
  411. ###
  412. ### Restrict licenses of direct and indirect module dependencies.
  413. ###
  414. ### ALLOW_ONLY restriction type requires dependent module to have at least one license without properties not listed in restrictions list.
  415. ###
  416. ### DENY restriction type forbids dependency on module with no license without any listed property from the list.
  417. ###
  418. ### Note: Can be used multiple times on the same module all specified constraints will be checked.
  419. ### All macro invocation for the same module must use same constraints type (DENY or ALLOW_ONLY)
  420. macro LICENSE_RESTRICTION(TYPE, RESTRICTIONS...) {
  421. SET_APPEND(MODULE_LICENSES_RESTRICTION_TYPES $TYPE)
  422. SET_APPEND(MODULE_LICENSES_RESTRICTIONS $RESTRICTIONS)
  423. }
  424. ### @usage MODULEWISE_LICENSE_RESTRICTION(ALLOW_ONLY|DENY LicenseProperty...)
  425. ###
  426. ### Restrict licenses per module only, without it peers.
  427. ###
  428. ### ALLOW_ONLY restriction type requires module to have at least one license without properties not listed in restrictions list.
  429. ###
  430. ### DENY restriction type forbids module with no license without any listed property from the list.
  431. ###
  432. ### Note: Can be used multiple times on the same module all specified constraints will be checked.
  433. ### All macro invocation for the same module must use same constraints type (DENY or ALLOW_ONLY)
  434. macro MODULEWISE_LICENSE_RESTRICTION(TYPE, RESTRICTIONS...) {
  435. SET_APPEND(MODULEWISE_LICENSES_RESTRICTION_TYPES $TYPE)
  436. SET_APPEND(MODULEWISE_LICENSES_RESTRICTIONS $RESTRICTIONS)
  437. }
  438. ### @usage LICENSE_RESTRICTION_EXCEPTIONS(Module...)
  439. ###
  440. ### List of modules for exception from LICENSE_RESTRICTION and MODULEWISE_LICENSE_RESTRICTION logic.
  441. macro LICENSE_RESTRICTION_EXCEPTIONS(EXCEPT...) {
  442. SET_APPEND(MODULE_LICENSES_RESTRICTION_EXCEPTIONS $EXCEPT)
  443. }