/usr/share/perl5/Regexp/Pattern/License.pm is in licensecheck 3.0.29-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 | package Regexp::Pattern::License;
use utf8;
use strictures 2;
use Regexp::Pattern::License::Parts;
=head1 NAME
Regexp::Pattern::License - Regular expressions for legal licenses
=head1 VERSION
Version v3.0.29
=cut
our $VERSION = version->declare("v3.0.29");
=head1 DESCRIPTION
L<Regexp::Pattern::License> provides a hash of regular expression patterns
related to legal software licenses.
L<Regexp::Pattern> is a convention for organizing reusable regex patterns.
=head1 PATTERNS
=head2 Single licenses
Patterns each covering a single license.
=over
=item * adobe_2006
=item * adobe_glyph
=item * afl
=item * agpl
=item * apache
=item * apafml
=item * artistic
=item * beerware
=item * bsd_2_clause
=item * bsd_3_clause
=item * bsd_4_clause
=item * cc_by
=item * cc_by_nc
=item * cc_by_nc_nd
=item * cc_by_nc_sa
=item * cc_by_nd
=item * cc_by_sa
=item * cc_cc0
=item * cc_sp
=item * cddl
=item * cecill
=item * cecill_1
=item * cecill_1_1
=item * cecill_2
=item * cecill_2_1
=item * cecill_b
=item * cecill_c
=item * cube
=item * curl
=item * dsdp
=item * epl
=item * eurosym
=item * fsfap
=item * fsful
=item * fsfullr
=item * ftl
=item * gfdl
=item * gfdl_niv
=item * gpl
=item * isc
=item * lgpl
=item * llgpl
=item * libpng
=item * mit_advertising
=item * mit_enna
=item * mit_feh
=item * mit_new
=item * mit_new_materials
=item * mit_old
=item * mit_oldstyle
=item * mit_oldstyle_disclaimer
=item * mit_oldstyle_permission
=item * mpl
=item * ms_pl
=item * ms_rl
=item * ntp
=item * ntp_disclaimer
=item * openssl
=item * postgresql
=item * public_domain
=item * python
=item * qpl
=item * sgi_b
=item * unicode_strict
=item * unicode_tou
=item * wtfpl
=item * zlib
=item * zlib_acknowledgement
=back
=cut
my $D = qr/[-–]/; # dash
my $SD = qr/[ -–]/; # space or dash
my %P;
while ( my ( $key, $val ) = each %Regexp::Pattern::License::Parts::RE ) {
$P{$key} = $val->{pat};
}
my $the = qr/(?:[Tt]he )/;
my $gnu = qr/(?:GNU )/;
my $gpl = qr/General Public License/;
my $fsf = qr/(?:$the?Free Software Foundation)/;
my $by_fsf = qr/(?: (?:as )?published by $fsf)/;
my $niv
= qr/with no Invariant Sections(?:, with no Front-Cover Texts, and with no Back-Cover Texts)?/;
my $fsf_ul
= qr/$fsf gives unlimited permission to copy, distribute and modify it/;
my $fsf_ullr
= qr/$fsf_ul, with or without modifications, as long as this notice is preserved/;
our %RE = (
adobe_2006 => {
name => 'Adobe-2006',
caption => 'Adobe',
pat => qr/You agree to indemnify, hold harmless and defend/,
},
adobe_glyph => {
name => 'Adobe-Glyph',
caption => 'Adobe Glyph List',
pat =>
qr/and to permit others to do the same, provided that the derived work is not represented as being a copy/,
},
afl => {
name => 'AFL',
summary => 'Academic Free License',
pat => qr/$the?(?:Academic Free License(?: \(AFL\))?|AFL)/,
},
agpl => {
name => 'AGPL',
summary => 'GNU Affero General Public License',
pat => qr/$the?$gnu?(?:Affero $gpl(?: \(AGPL\))?$by_fsf?|AGPL)/,
},
aladdin => {
name => 'Aladdin',
summary => 'Aladdin Free Public License',
pat => qr/$the?Aladdin Free Public License/,
},
apache => {
name => 'Apache',
summary => 'Apache License',
pat => qr/$the?Apache(?: Software)? License/,
},
apafml => {
name => 'APAFML',
caption => 'Adobe Postscript AFM',
pat =>
qr/(?:AFM files it accompanies may be used|that the AFM files are not distributed)/,
},
artistic => {
name => 'Artistic',
summary => 'Artistic License',
pat => qr/$the?Artistic License/,
},
beerware => {
name => 'Beerware',
summary => 'Beer-Ware License',
pat =>
qr/(?:you can buy me a beer in return|$the?beer-?ware(?: License)?)/,
},
bsd_2_clause => {
name => 'BSD-2-Clause',
'name.alt.org.debian' => 'BSD-2-clause',
caption => 'BSD (2 clause)',
tags => ['bsd'],
pat =>
qr/$P{repro_copr_cond_discl}\W+$P{asis_sw_by_name}/,
},
bsd_3_clause => {
name => 'BSD-3-Clause',
'name.alt.org.debian' => 'BSD-3-clause',
caption => 'BSD (3 clause)',
tags => ['bsd'],
pat =>
qr/$P{repro_copr_cond_discl}\W+$P{nopromo_neither}/,
},
bsd_4_clause => {
name => 'BSD-4-Clause',
'name.alt.org.debian' => 'BSD-4-clause',
caption => 'BSD (4 clause)',
tags => ['bsd'],
pat => qr/$P{ad_mat_ack_this}/,
},
cc_by => {
name => 'CC-BY',
caption => 'CC by',
summary => 'Creative Commons Attribution Public License',
tags => ['cc'],
pat =>
qr/(?:$P{cc}$SD(?:$P{cc_by}|BY|$P{cc_url}by))/,
},
cc_by_nc => {
name => 'CC-BY-NC',
caption => 'CC by-nc',
summary =>
'Creative Commons Attribution-NonCommercial Public License',
tags => ['cc'],
pat =>
qr/(?:$P{cc}$SD(?:$P{cc_by}$SD$P{cc_nc}|BY${SD}NC|$P{cc_url}by-nc))/,
},
cc_by_nc_nd => {
name => 'CC-BY-NC-ND',
caption => 'CC by-nc-nd',
summary =>
'Creative Commons Attribution-NonCommercial-NoDerivatives Public License',
tags => ['cc'],
pat =>
qr/(?:$P{cc}$SD(?:$P{cc_by}$SD(?:$P{cc_nc}$SD$P{cc_nd}|$P{cc_nd}$SD$P{cc_nc})|BY${SD}NC${SD}ND|$P{cc_url}by-nc-nd))/,
},
cc_by_nc_sa => {
name => 'CC-BY-NC-SA',
caption => 'CC by-nc-sa',
summary =>
'Creative Commons Attribution-NonCommercial-ShareAlike Public License',
tags => ['cc'],
pat =>
qr/(?:$P{cc}$SD(?:$P{cc_by}$SD$P{cc_nc}$SD$P{cc_sa}|BY${SD}NC${SD}SA|$P{cc_url}by-nc-sa))/,
},
cc_by_nd => {
name => 'CC-BY-ND',
caption => 'CC by-nd',
summary =>
'Creative Commons Attribution-NoDerivatives Public License',
tags => ['cc'],
pat =>
qr/(?:$P{cc}$SD(?:$P{cc_by}$SD$P{cc_nd}|BY${SD}ND|$P{cc_url}by-nd))/,
},
cc_by_sa => {
name => 'CC-BY-SA',
caption => 'CC by-sa',
summary => 'Creative Commons Attribution-ShareAlike Public License',
tags => ['cc'],
pat =>
qr/(?:$P{cc}$SD(?:$P{cc_by}$SD$P{cc_sa}|BY${SD}SA|$P{cc_url}by-sa))/,
},
cc_cc0 => {
name => 'CC0',
summary => 'Creative Commons CC0 Public License',
tags => ['cc'],
pat =>
qr/(?:$P{cc}$SD(?:$P{cc_cc0}(?: \(?"CC0"?\)?)?|CC0|$P{cc_url_pd}zero))/,
},
cc_sp => {
caption => 'CC Sampling Plus',
summary => 'Creative Commons Sampling Plus Public License',
tags => ['cc'],
pat =>
qr/(?:$P{cc}$SD(?:$P{cc_sp}|$P{cc_url}sampling\+))/,
},
cddl => {
name => 'CDDL',
summary => 'Common Development and Distribution License',
pat =>
qr/$the?(?:(?:Common Development and Distribution License|COMMON DEVELOPMENT AND DISTRIBUTION LICENSE)(?: \(CDDL\))?|CDDL)/,
},
cecill => {
name => 'CECILL',
caption => 'CeCILL',
pat =>
qr/(?:CONTRAT DE LICENCE DE LOGICIEL LIBRE |(?:la )?licence |$the?FREE SOFTWARE LICENSING AGREEMENT )?CeCILL/,
},
cecill_1 => {
name => 'CECILL-1.0',
caption => 'CeCILL-1.0',
pat =>
qr/Version 1 du 21\/06\/2004/,
},
cecill_1_1 => {
name => 'CECILL-1.1',
caption => 'CeCILL-1.1',
pat =>
qr/Version 1\.1 of 10\/26\/2004/,
},
cecill_2 => {
name => 'CECILL-2.0',
caption => 'CeCILL-2.0',
pat =>
qr/Version 2\.0 (?:du|dated) 2006-09-05/,
},
cecill_2_1 => {
name => 'CECILL-2.1',
caption => 'CeCILL-2.1',
pat =>
qr/Version 2\.1 (?:du|dated) 2013-06-21/,
},
cecill_b => {
name => 'CECILL-B',
caption => 'CeCILL-B',
pat =>
qr/the two main principles guiding its drafting|CeCILL-B/,
},
cecill_c => {
name => 'CECILL-C',
caption => 'CeCILL-C',
pat =>
qr/CONTRAT DE LICENCE DE LOGICIEL LIBRE CeCILL-C/,
},
cube => {
name => 'Cube',
tags => ['zlib'],
pat =>
qr/$P{origin_sw_no_misrepresent}; $P{you_not_claim_wrote}\. $P{use_ack_nonreq}\. $P{altered_srcver_mark}\. $P{notice_no_alter_any}\. additional clause specific to Cube:? $P{src_no_relicense}/,
},
curl => {
tags => ['mit'],
pat => qr/$P{note_copr_perm}\.\s+$P{asis_sw_warranty}/,
},
dsdp => {
name => 'DSDP',
'caption.alt.org.fedora' => 'DSDP a.k.a. MIT (PetSC variant)',
tags => ['mit'],
pat => qr/This program discloses material protectable/,
},
epl => {
name => 'EPL',
summary => 'Eclipse Public License',
pat => qr/$the?(?:Eclipse Public License(?: \(EPL\))?|EPL)/,
},
eurosym => {
name => 'Eurosym',
tags => ['zlib'],
pat =>
qr/$P{origin_sw_no_misrepresent}.*?$P{altered_srcver_mark}.*?$P{change_redist_share}.*?$P{notice_no_alter}/,
},
fsfap => {
name => 'FSFAP',
caption => 'FSF All Permissive',
pat =>
qr/Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved/,
},
fsful => {
name => 'FSFUL',
caption => 'FSF Unlimited',
pat => qr/This configure script is free software; $fsf_ul/,
},
fsfullr => {
name => 'FSFULLR',
caption => 'FSF Unlimited (with Retention)',
pat => qr/This file is free software; $fsf_ullr/,
},
ftl => {
name => 'FTL',
caption => 'Freetype',
pat =>
qr/$the?(?:FreeType(?: [Pp]roject)? (?:LICENSE|[Ll]icense)(?: \(FTL\))?)/,
},
gfdl => {
name => 'GFDL',
summary => 'GNU Free Documentation License',
pat =>
qr/$the?$gnu?(?:Free Documentation License(?: \(GFDL\))?$by_fsf?|GFDL)/,
},
gfdl_niv => {
name => 'GFDL-NIV',
caption => 'GFDL (no invariant sections)',
summary =>
'GNU Free Documentation License, with no Front-Cover or Back-Cover Texts or Invariant Sections',
pat =>
qr/$the?$gnu?(?:Free Documentation License(?: \(GFDL\))?$by_fsf?[,;]? $niv|GFDL-NIV)/,
},
gpl => {
name => 'GPL',
summary => 'The GNU General Public License',
pat => qr/$the?$gnu?(?:$gpl(?: \(GPL\))?$by_fsf?|GPL)/,
},
isc => {
name => 'ISC',
tags => ['mit'],
pat => qr/$P{note_copr_perm}\.\s+$P{asis_sw_name_discl}/,
},
icu => {
name => 'ICU',
tags => ['mit'],
pat =>
qr/$P{note_copr_perm} of the Software and that $P{repro_copr_perm_appear_doc}\.\s+$P{asis_sw_warranty}(?:[^.]+\.\s+){2}$P{nopromo_except}/,
},
lgpl => {
name => 'LGPL',
summary => 'The GNU Lesser General Public License',
pat =>
qr/$the?$gnu?(?:(?:Library|Lesser(?: \(Library\))?) $gpl(?: \(LGPL\))?$by_fsf?|LGPL)/,
},
llgpl => {
name => 'LLGPL',
summary => 'Lisp Lesser General Public License',
pat => qr/$the?(?:Lisp Lesser $gpl(?: \(LLGPL\))?|\bLLGPL\b)/,
},
libpng => {
name => 'Libpng',
pat =>
qr/$P{origin_src_no_misrepresent}\. $P{altered_ver_mark}\. $P{copr_no_alter}/,
},
mit_advertising => {
name => 'MIT-advertising',
caption => 'MIT (advertising)',
tags => ['mit'],
pat => qr/$P{note_marketing}\b[^.,]+, and $P{ack_doc_mat_pkg_use}/,
},
mit_cmu => {
name => 'MIT-CMU',
description => <<'END',
Identical to NTP, except...
* omit explicit permission for charging fee
* exclude suitability disclaimer
* exclude terse "as is" warranty disclaimer
* include elaborate warranty disclaimer
* include liability disclaimer
fingerprint: "without specific written permission"
SPDX and fedora sample seem not generic but the unique file COPYING from project net-snmp.
END
tags => ['mit'],
pat =>
qr/Permission $P{to_dist} $P{sw_doc} $P{any_purpose} and $P{nofee} $P{granted}, $P{retain_copr_appear} and that $P{repro_copr_perm_appear_doc}, and that $P{nopromo_name_written}\./,
},
mit_cmu_warranty => {
'name.alt.org.debian' => 'MIT-CMU~warranty',
caption => 'MIT (CMU, retain warranty disclaimer)',
'caption.alt.org.fedora' => 'MIT (MLton / Standard ML of New Jersey)',
description => <<'END',
Identical to MIT-CMU, except...
* add requirement of "warranty disclaimer" appearing in documentation
fingerprint: "warranty disclaimer appear"
END
tags => ['mit'],
pat =>
qr/Permission $P{to_dist} $P{sw_doc} $P{any_purpose} and $P{nofee} $P{granted}, $P{retain_copr_appear} and that $P{repro_copr_perm_warr_appear_doc}, and that $P{nopromo_name_written_prior}\./,
},
mit_enna => {
name => 'MIT-enna',
caption => 'MIT (enna)',
tags => ['mit'],
pat => qr/$P{ack_pub_use_nosrc}/,
pat =>
qr/$P{perm_granted}, $P{free_charge}, $P{to_pers} $P{the_sw}, $P{to_deal_the_sw_rights} $P{to_mod_sublic} $P{sw}, and $P{to_perm_pers}, $P{subj_cond}:? $P{retain_copr_perm_sw_copr}\. $P{ack_pub_use_nosrc}\. This includes acknowledgments in either Copyright notices, Manuals, Publicity and Marketing documents or any documentation provided with any product containing this software\. $P{license_not_lib}\./,
},
mit_feh => {
name => 'MIT-feh',
caption => 'MIT (feh)',
tags => ['mit'],
pat =>
qr/$P{perm_granted}, $P{free_charge}, $P{to_pers} $P{the_sw}, $P{to_deal_the_sw_rights} $P{to_mod_sublic} $P{sw}, and $P{to_perm_pers}, $P{subj_cond}:? $P{retain_copr_perm_sw_doc} and $P{ack_doc_pkg_use}\./,
},
mit_new => {
'name.alt.org.spdx' => 'MIT',
'name.alt.org.debian' => 'Expat',
caption => 'MIT (Expat)',
'caption.alt.org.debian' => 'MIT/X11 (BSD like)',
'caption.alt.org.fedora' => 'MIT (Modern Style with sublicense)',
tags => ['mit'],
pat =>
qr/$P{to_mod_sublic} $P{sw}\b[^.]+\s+$P{retain_copr_perm_subst}/,
},
mit_new_materials => {
'name.alt.org.debian' => 'MIT~Khronos',
caption => 'MIT (Khronos)',
tags => ['mit'],
pat =>
qr/$P{perm_granted}, $P{free_charge}, $P{to_pers} $P{the_material}, $P{to_deal_mat}/,
},
mit_old => {
'name.alt.org.debian' => 'MIT~old',
'name.alt.org.gentoo' => 'Old-MIT',
caption => 'MIT (old)',
tags => ['mit'],
pat => qr/$P{perm_granted}, $P{free_agree_fee}/,
},
mit_oldstyle => {
'name.alt.org.debian' => 'MIT~oldstyle',
caption => 'MIT (Old Style)',
description => <<'END',
Origin: Possibly by Jamie Zawinski in 1993 for xscreensaver.
END
tags => ['mit'],
pat => qr/documentation\. +No representations are made/,
},
mit_oldstyle_disclaimer => {
'name.alt.org.debian' => 'MIT~oldstyle~disclaimer',
caption => 'MIT (Old Style, legal disclaimer)',
tags => ['mit'],
pat => qr/supporting documentation\.\s+$P{asis_name_sw}/,
},
mit_oldstyle_permission => {
'name.alt.org.debian' => 'MIT~oldstyle~permission',
tags => ['mit'],
pat => qr/$P{without_written_prior}\.\s+$P{asis_name_sw}/,
},
mpl => {
name => 'MPL',
summary => 'Mozilla Public License',
pat =>
qr/$the?(?:Mozilla Public License(?: \(\"?(?:https?:?\/\/mozilla.org\/)?MPL\"?\))?(?: (?:as )?published by $the{0,2}Mozilla Foundation)?|MPL)/,
},
ms_pl => {
name => 'MS-PL',
caption => 'Ms-PL',
pat =>
qr/$the?(?:Microsoft Permissive License(?: \(Ms-PL\))?|Ms-PL)/,
},
ms_rl => {
name => 'MS-RL',
caption => 'Ms-RL',
pat =>
qr/$the?(?:Microsoft Reciprocal License(?: \(Ms-RL\))?|Ms-RL)/,
},
ntp => {
name => 'NTP',
tags => ['mit'],
pat => $P{asis_expr_warranty},
},
ntp_disclaimer => {
'name.alt.org.debian' => 'NTP~disclaimer',
caption => 'NTP (legal disclaimer)',
tags => ['mit'],
pat => qr/$P{asis_expr_warranty}\.\s+$P{discl_name_warranties}/,
},
openssl => {
name => 'OpenSSL',
summary => 'OpenSSL License',
pat => qr/$P{redist_ack_this}/,
},
postgresql => {
name => 'PostgreSQL',
tags => ['mit'],
pat => qr/$P{permission_use_fee_agree}/i,
},
public_domain => {
name => 'public-domain',
caption => 'Public domain',
pat => qr/$the?public domain/,
},
ofl => {
name => 'OFL',
'caption.alt.org.debian' => 'SIL',
pat =>
qr/$the?(?:SIL )?(?:OPEN FONT LICENSE|[Oo]pen [Ff]ont [Ll]icense)(?: \(OFL\))?/,
},
python => {
name => 'Python',
caption => 'PSF',
pat =>
qr/$the?Python Software Foundation License|PYTHON SOFTWARE FOUNDATION LICENSE/,
},
qpl => {
name => 'QPL',
summary => '$the?Q Public License',
pat =>
qr/$the?(?:Q Public License(?: \(QPL\))?$by_fsf?|QPL)/,
},
rpsl => {
name => 'RPSL',
caption => 'RealNetworks Public Source License',
pat =>
qr/$the?RealNetworks Public Source License/,
},
sgi_b => {
name => 'SGI-B',
caption => 'SGI Free Software License B',
pat =>
qr/$the?(?:SGI (?:Free Software License|FREE SOFTWARE LICENSE) B(?: \(SGI-B\))?$by_fsf?|(?:SGI )?FreeB\b|SGI-B)/,
},
unicode_strict => {
name => 'Unicode-strict',
caption => 'Unicode strict',
pat => qr/hereby grants the right to freely use/,
},
unicode_tou => {
name => 'Unicode-TOU',
caption => 'Unicode Terms Of Use',
pat =>
qr/distribute all documents and files solely for informational/,
},
wtfpl => {
name => 'WTFPL',
caption => 'do What The Fuck you want to Public License',
pat =>
qr/$the?(?:[Dd]o What The Fuck [Yy]ou [Ww]ant [Tt]o Public License|DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE(?: \(WTFPL\))?|WTFPL)/,
},
zlib => {
name => 'Zlib',
caption => 'zlib/libpng',
tags => ['zlib'],
pat =>
qr/$P{origin_sw_no_misrepresent}; $P{you_not_claim_wrote}\. $P{use_ack_nonreq}\. $P{altered_srcver_mark}\. $P{notice_no_alter}/,
},
zlib_acknowledgement => {
name => 'NUnit',
'name.alt.org.SPDF' => 'zlib-acknowledgement',
tags => ['zlib'],
pat =>
qr/$P{origin_sw_no_misrepresent}; $P{you_not_claim_wrote}\. $P{use_ack_req}\. Portions Copyright \S+ [\d-]+ Charlie Poole or Copyright \S+ [\d-]+ James W\. Newkirk, Michael C\. Two, Alexei A\. Vorontsov or Copyright \S+ [\d-]+ Philip A\. Craig $P{altered_srcver_mark}\. $P{notice_no_alter}/,
},
);
=head2 Licensing traits
Patterns each covering a single trait occuring in licenses.
=over
=item * clause_retention
=item * clause_reproduction
=item * clause_advertising
=item * clause_advertising_always
=item * clause_non_endorsement
=item * fsf_unlimited
=item * fsf_unlimited_retention
=item * version_later
=item * version_later_paragraph
=item * version_later_postfix
=item * version_number
=item * version_prefix
=back
=cut
$RE{'clause_retention'} = {
caption => 'retention clause',
tags => ['trait'],
pat => qr/$P{retain_notice_cond_discl}/,
};
$RE{'clause_reproduction'} = {
caption => 'reproduction clause',
tags => ['trait'],
pat => qr/$P{repro_copr_cond_discl}/,
};
$RE{'clause_advertising'} = {
caption => 'advertising clause',
tags => ['trait'],
pat => qr/$P{ad_mat_ack_this}/,
};
$RE{'clause_advertising_always'} = {
caption => 'advertising clause (always)',
tags => ['trait'],
pat => qr/$P{redist_ack_this}/,
};
$RE{'clause_non_endorsement'} = {
caption => 'non-endorsement clause',
tags => ['trait'],
pat => qr/$P{nopromo_neither}/,
};
$RE{'fsf_unlimited'} = {
tags => ['trait'],
pat => qr/$fsf_ul/,
};
$RE{'fsf_unlimited_retention'} = {
tags => ['trait'],
pat => qr/$fsf_ullr/,
};
$RE{'version_later'} = {
caption => 'version "or later"',
tags => ['trait'],
pat => qr/,? $P{ver_later_postfix}|\. $P{ver_later_para}/,
};
$RE{'version_later_paragraph'} = {
caption => 'version "or later" postfix (paragraphs)',
tags => ['trait'],
pat => qr/$P{ver_later_para}/,
};
$RE{'version_later_postfix'} = {
caption => 'version "or later" (postfix)',
tags => ['trait'],
pat => qr/$P{ver_later_postfix}/,
};
$RE{'version_number'} = {
caption => 'version number',
tags => ['trait'],
pat => qr/$P{ver_number}/,
};
$RE{'version_prefix'} = {
caption => 'version prefix',
tags => ['trait'],
pat => qr/$P{ver_prefix}/,
};
=head2 License combinations
Patterns each covering a single combination of multiple licenses.
=over
=item * perl
=back
=cut
$RE{'perl'} = {
name => 'Artistic or GPL-1+',
caption => 'Perl',
tags => ['combo'],
pat =>
qr/the same terms as $the?Perl(?: ?5)?( programming| language| system){0,3} itself/,
};
=head2 Multiple licenses
Patterns each covering multiple licenses.
=over
=item * bsd
=item * gnu
=item * mit
=back
=cut
$RE{'bsd'} = {
name => 'BSD~unspecified',
caption => 'BSD (unspecified)',
tags => ['group'],
pat =>
qr/$P{repro_copr_cond_discl}(?:(?:[\d\W]+$P{ad_mat_ack_this}.*)?[\d\W]+$P{nopromo_neither})?/,
};
$RE{'gnu'} = {
name => 'AGPL/GPL/LGPL',
summary => 'a GNU license (AGPL or GPL or LGPL)',
tags => ['group'],
pat => qr/(?:$RE{agpl}{pat}|$RE{gpl}{pat}|$RE{lgpl}{pat})/,
};
$RE{'mit'} = {
name => 'MIT~unspecified',
caption => 'MIT (unspecified)',
tags => ['group'],
pat => qr/$the?MIT/,
};
=encoding UTF-8
=head1 AUTHOR
Jonas Smedegaard C<< <dr@jones.dk> >>
=head1 COPYRIGHT AND LICENSE
Copyright © 2016 Jonas Smedegaard
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3, or (at your option) any
later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program. If not, see <https://www.gnu.org/licenses/>.
=cut
1;
|