aboutsummaryrefslogtreecommitdiff
path: root/utils/scancpan
diff options
context:
space:
mode:
authorGravatar Christopher McCrory <chrismcc@gmail.com>2018-08-20 04:16:23 -0700
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-09-21 00:01:13 +0200
commitb8d768b247db4359bcbc8e4bfdea23763ee52230 (patch)
tree465f1c67b5bad25c5f757ff4a0d095fa86a2c845 /utils/scancpan
parentc6dd0a5935a75d70ecabec41398643f3ea8ff89b (diff)
downloadbuildroot-b8d768b247db4359bcbc8e4bfdea23763ee52230.tar.gz
buildroot-b8d768b247db4359bcbc8e4bfdea23763ee52230.tar.bz2
utils/scancpan: support more licenses
Signed-off-by: Christopher McCrory <chrismcc@gmail.com> Reviewed-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'utils/scancpan')
-rwxr-xr-xutils/scancpan7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/scancpan b/utils/scancpan
index 8f47521692..3b77b21330 100755
--- a/utils/scancpan
+++ b/utils/scancpan
@@ -699,9 +699,16 @@ while (my ($distname, $dist) = each %dist) {
? join q{ or }, @{$dist->{license}}
: $dist->{license};
# BR requires license name as in http://spdx.org/licenses/
+ $license =~ s|apache_1_1|Apache-1.1|;
$license =~ s|apache_2_0|Apache-2.0|;
+ $license =~ s|artistic|Artistic-1.0|;
$license =~ s|artistic_2|Artistic-2.0|;
+ $license =~ s|lgpl_2_1|LGPL-2.1|;
+ $license =~ s|lgpl_3_0|LGPL-3.0|;
+ $license =~ s|gpl_2|GPL-2.0|;
+ $license =~ s|gpl_3|GPL-3.0|;
$license =~ s|mit|MIT|;
+ $license =~ s|mozilla_1_1|Mozilla-1.1|;
$license =~ s|openssl|OpenSSL|;
$license =~ s|perl_5|Artistic or GPL-1.0+|;
my $license_files = join q{ }, keys %{$license_files{$distname}};