Cavil is a legal review system for the Open Build Service. It is used in the development of openSUSE Tumbleweed, openSUSE Leap, as well as SUSE Linux Enterprise.
This distribution contains the two main components of the system. A Mojolicious web application that lawyers can use to efficiently review package contents, and Minion background jobs to process and index packages, to create easy to digest license reports.
Additionally there is large curated set of license patterns the SUSE lawyers have created included in this distribution. Currently this set consists of over 20000 patterns for all known Open Source licenses.
The easiest way to connect OBS to Cavil is the
legal-auto.py bot from the
openSUSE Release Tools repository. But you can also upload
tarballs directly for analysis.
The easiest way to get started with Cavil is the included staging scripts for setting up a quick development
environment. All you need is an empty PostgreSQL database (with the
pgcrypto extension activated) and the following
$ sudo zypper in -C postgresql-server postgresql-contrib 'rubygem(sass)' $ sudo zypper in -C perl-Mojolicious perl-Mojolicious-Plugin-AssetPack \ perl-Mojo-Pg perl-Minion perl-File-Unpack perl-Cpanel-JSON-XS \ perl-Spooky-Patterns-XS perl-Net-OpenID-Consumer 'perl(LWP::UserAgent)' \ perl-BSD-Resource perl-Term-ProgressBar perl-Text-Glob
Then use these commands to set up and tear down a development environment:
$ perl staging/start.pl postgresql://tester:testing@/test ... $ CAVIL_CONF=staging/do_not_commit/cavil.conf morbo script/cavil ... $ CAVIL_CONF=staging/do_not_commit/cavil.conf script/cavil minion worker ... $ perl staging/stop.pl ...
morbo development web server will make the web application available under
script/cavil minion worker will start the job queue for processing background jobs.