diff options
author | John Crispin <blogic@openwrt.org> | 2014-10-26 16:57:33 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-10-26 16:57:33 +0000 |
commit | ef7634e29e01793325998ecb32cb3541fb423109 (patch) | |
tree | e6e048f580022ead70c56842c4ad3fa04b9b9622 /scripts/metadata.pm | |
parent | 70fa8d00c06da8560aa7f4692b5366498808b9ad (diff) | |
download | upstream-ef7634e29e01793325998ecb32cb3541fb423109.tar.gz upstream-ef7634e29e01793325998ecb32cb3541fb423109.tar.bz2 upstream-ef7634e29e01793325998ecb32cb3541fb423109.zip |
generate list of license information for packages
Many packages define already metadata about their license (PKG_LICENSE),
but this is only included in the ipk files.
This change allows to create the information also on the build-host,
to get an overview on the used licenses.
In the full list, also all packages without this info are shown
Signed-off-by: Thomas Langer <thomas.langer@lantiq.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43070 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r-- | scripts/metadata.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 16acb8ea8f..fc8657322e 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -97,6 +97,8 @@ sub parse_package_metadata($) { /^Submenu: \s*(.+)\s*$/ and $pkg->{submenu} = $1; /^Submenu-Depends: \s*(.+)\s*$/ and $pkg->{submenudep} = $1; /^Source: \s*(.+)\s*$/ and $pkg->{source} = $1; + /^License: \s*(.+)\s*$/ and $pkg->{license} = $1; + /^LicenseFiles: \s*(.+)\s*$/ and $pkg->{licensefiles} = $1; /^Default: \s*(.+)\s*$/ and $pkg->{default} = $1; /^Provides: \s*(.+)\s*$/ and do { my @vpkg = split /\s+/, $1; |