Giter VIP home page Giter VIP logo

license-scanner's Introduction

Theory of operation:

The license reporting tool operates in two passes.

Step 1: gather. This step gathers information about the specified files. You may specify a specific file to analyze, or a directory. If a directory is specified, gather will walk down the directory tree ananalyze all files contained there. By default, gather will store it's intermediate results in sqlite database in the current working directory. See the cli help for how to specify a different directory.

Step 2: report. This step produces a license compliance report using the existing database

The reason it operates in two passes is to account for the situation where you have to have a third-party run a report on code that you do not have access to.

Sample run:

$ ./gather  -i /bin/ls
Starting gather run. Gather version 1.0
Gather: /bin/ls
Gather: /lib/libselinux.so.1
Gather: /lib/librt.so.1
Gather: /lib/libcap.so.2
Gather: /lib64/libacl.so.1
Gather: /lib/libc.so.6
Gather: /lib/libselinux.so.1
Gather: /lib/librt.so.1
Gather: /lib/libcap.so.2
Gather: /lib64/libacl.so.1
Gather: /lib/libc.so.6
Gather: /lib/libdl.so.2
Gather: /lib/ld-linux.so.2
Gather: /lib/libpthread.so.0
Gather: /lib/libattr.so.1
Gather: /lib/libselinux.so.1
Gather: /lib/librt.so.1
Gather: /lib/libcap.so.2
Gather: /lib64/libacl.so.1
Gather: /lib/libc.so.6
Gather: /lib/libdl.so.2
Gather: /lib/ld-linux.so.2
Gather: /lib/libpthread.so.0
Gather: /lib/libattr.so.1
Gather done

$ ./report --license-compat ./sample-license-compat-list.csv
libacl.so.1     [LGPLv2+]
    libattr.so.1        [LGPLv2+]
        libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]

libattr.so.1        [LGPLv2+]
    libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]

libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]

libcap.so.2     [LGPLv2+]
    libattr.so.1        [LGPLv2+]
        libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]

libdl.so.2      [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]

libpthread.so.0     [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]

librt.so.1      [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    libpthread.so.0     [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]

libselinux.so.1     [Public Domain]
    ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    libdl.so.2      [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]

ls  **((GPLv3+))
    libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    libacl.so.1     [LGPLv2+]
        libattr.so.1        [LGPLv2+]
        libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    libcap.so.2     [LGPLv2+]
        libattr.so.1        [LGPLv2+]
            libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    librt.so.1      [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        libpthread.so.0     [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
            ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
            libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
    libselinux.so.1 -->((Public Domain))
        ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        libdl.so.2      [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
            ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
            libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
        libc.so.6       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]
            ld-linux.so.2       [LGPLv2+ and LGPLv2+ with exceptions and GPLv2+]

license-scanner's People

Contributors

superchalupa avatar jharg avatar

Stargazers

 avatar nomoreorless avatar Stacy Olivas avatar  avatar Gutem avatar  avatar Grant Murphy avatar nanouck avatar Russ Herrold avatar Bruce Clounie avatar jamie goodwin avatar tom zhou avatar

Watchers

Russ Herrold avatar Mario Limonciello avatar James Cloos avatar Sonylal avatar  avatar Todd Swierk avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.