OpenSCAP compliance scanning for Cockpit.
Based on cockpit-project/starter-kit.
On Fedora:
sudo dnf install gettext nodejs npm make
git clone https://github.com/swiftraccoon/cockpit-oscap.git
cd cockpit-oscap
make
make install compiles and installs the package in /usr/local/share/cockpit/. The
convenience targets srpm and rpm build the source and binary rpms,
respectively.
For development, run make devel-install to link the checkout into Cockpit's
package lookup path. Or manually:
mkdir -p ~/.local/share/cockpit
ln -s `pwd`/dist ~/.local/share/cockpit/oscap
After changing the code and running make again, reload the Cockpit page in
your browser.
Watch mode rebuilds automatically on code changes:
make watch
To uninstall the locally installed version:
make devel-uninstall
npm run eslint
npm run eslint:fix
npm run stylelint
npm run stylelint:fix