The legal review app used by SUSE Lawyers
Switch branches/tags
Nothing to show
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets first commit Nov 5, 2018
examples first commit Nov 5, 2018
lib remove routes that are no longer used Nov 5, 2018
migrations first commit Nov 5, 2018
script first commit Nov 5, 2018
staging first commit Nov 5, 2018
t consistently clear the cache for testing Nov 5, 2018
templates first commit Nov 5, 2018
.gitattributes first commit Nov 5, 2018
.gitignore first commit Nov 5, 2018
.perltidyrc first commit Nov 5, 2018
.travis.yml we only support newer versions of Perl anyway Nov 5, 2018
COPYING first commit Nov 5, 2018
Makefile.PL we only support newer versions of Perl anyway Nov 5, 2018 no parallel tests Nov 5, 2018
cavil.conf first commit Nov 5, 2018

Cavil Build Status

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 also a small curated subset of the license patterns the SUSE lawyers have created included in this distribution. Currently this subset consists of 20 patterns each for 100 popular licenses. This library of patterns might be expanded in the future however.

The easiest way to connect OBS to Cavil is the bot from the openSUSE Release Tools repository.

Getting Started

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 and the following dependencies:

$ sudo zypper in w3m postgresql96-server ruby2.1-rubygem-sass
$ sudo zypper in 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 \

Then use these commands to set up and tear down a development environment:

$ perl staging/ 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/

The morbo development web server will make the web application available under And script/cavil minion worker will start the job queue for processing background jobs.