build: fully replace make by just.
This commit is contained in:
parent
4a3a98c77d
commit
7d2229cd05
22 changed files with 113 additions and 182 deletions
|
|
@ -2,7 +2,7 @@
|
|||
title: Building the profiles
|
||||
---
|
||||
|
||||
The profiles in `apparmor.d` must not be used directly. They need to be prebuilt (by running `make`). This page documents all possibles prebuild tasks. It is not intended to be read by end user, and it is only targeted at developers and maintainers.
|
||||
The profiles in `apparmor.d` must not be used directly. They need to be prebuilt (by running `just complain`). This page documents all possibles prebuild tasks. It is not intended to be read by end user, and it is only targeted at developers and maintainers.
|
||||
|
||||
The build system is fully configurable, general usage can be seen with:
|
||||
```sh
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ This is the current list of features that must be implemented to get to a stable
|
|||
- [ ] Provide packages repo for ubuntu/debian
|
||||
- [ ] Provide complain/enforced packages version
|
||||
- [x] Add a `just` target to install the profiles in the right place
|
||||
- [ ] Fully drop the Makefile in favor of `just`
|
||||
- [x] Fully drop the Makefile in favor of `just`
|
||||
|
||||
## Next features
|
||||
|
||||
|
|
|
|||
|
|
@ -6,12 +6,12 @@ Misconfigured AppArmor profiles is one of the most effective ways to break someo
|
|||
|
||||
**Current**
|
||||
|
||||
- [x] **[Build:](https://gitlab.com/roddhjav/apparmor.d/-/pipelines)** `make`
|
||||
- [x] **[Build:](https://gitlab.com/roddhjav/apparmor.d/-/pipelines)** `just complain`
|
||||
- Build the profiles for all supported distributions.
|
||||
- All CI jobs validate the profiles syntax and ensure they can be safely loaded into a kernel.
|
||||
- Ensure the profile entry point (`@{exec_path}`) is defined.
|
||||
|
||||
- [x] **[Checks:](https://github.com/roddhjav/apparmor.d/blob/main/tests/check.sh)** `make check` checks basic style of profiles:
|
||||
- [x] **[Checks:](https://github.com/roddhjav/apparmor.d/blob/main/tests/check.sh)** `just check` checks basic style of profiles:
|
||||
- Ensure apparmor.d header & licence
|
||||
- Ensure 2 spaces indentation
|
||||
- Ensure local include for profile and subprofiles
|
||||
|
|
@ -19,7 +19,7 @@ Misconfigured AppArmor profiles is one of the most effective ways to break someo
|
|||
- Ensure modern profile naming
|
||||
- Ensure `vim:syntax=apparmor`
|
||||
|
||||
- [x] **[Integration Tests:](integration.md)** `just integration <dist> <flavor>`
|
||||
- [x] **[Integration Tests:](integration.md)** `just test-run <dist> <flavor>`
|
||||
- Run simple CLI commands to ensure no logs are raised.
|
||||
- Uses the [bats](https://github.com/bats-core/bats-core) test system.
|
||||
- Run in the Github Action as well as in all local [test VM](vm.md).
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ profile foo @{exec_path} {
|
|||
|
||||
## Development Install
|
||||
|
||||
It is not recommended installing the full project *"manually"* (with `make`, `sudo make install`). The distribution specific packages are intended to be used in development as they include additional rule to ensure compatibility with upstream (see `debian/`, `PKGBUILD` and `dists/apparmor.d.spec`).
|
||||
It is not recommended installing the full project *"manually"* (with `just complain`, `sudo just install`). The distribution specific packages are intended to be used in development as they include additional rule to ensure compatibility with upstream (see `debian/`, `PKGBUILD` and `dists/apparmor.d.spec`).
|
||||
|
||||
Instead, install an individual profile or the development package, the following way.
|
||||
|
||||
|
|
@ -66,25 +66,25 @@ Instead, install an individual profile or the development package, the following
|
|||
=== ":material-arch: Archlinux"
|
||||
|
||||
```sh
|
||||
make pkg
|
||||
just pkg
|
||||
```
|
||||
|
||||
=== ":material-ubuntu: Ubuntu"
|
||||
|
||||
```sh
|
||||
make dpkg
|
||||
just dpkg
|
||||
```
|
||||
|
||||
=== ":material-debian: Debian"
|
||||
|
||||
```sh
|
||||
make dpkg
|
||||
just dpkg
|
||||
```
|
||||
|
||||
=== ":simple-suse: openSUSE"
|
||||
|
||||
```sh
|
||||
make rpm
|
||||
just rpm
|
||||
```
|
||||
|
||||
=== ":material-docker: Docker"
|
||||
|
|
@ -102,7 +102,7 @@ Instead, install an individual profile or the development package, the following
|
|||
**Format**
|
||||
|
||||
```sh
|
||||
make dev name=<profile-name>
|
||||
just dev <profile-name>
|
||||
```
|
||||
|
||||
**Exampe**
|
||||
|
|
@ -110,7 +110,7 @@ make dev name=<profile-name>
|
|||
: Testing the profile `pass`
|
||||
|
||||
```
|
||||
make dev name=pass
|
||||
just dev pass
|
||||
```
|
||||
|
||||
This:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue