Debian: improve install method.

This commit is contained in:
Alexandre Pujol 2021-09-27 20:24:22 +01:00
parent 8e9ccc3bf7
commit c96c641d80
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 4 additions and 3 deletions

View File

@ -76,6 +76,6 @@ preprocess-debian:
- debian
script:
- apt-get update -q
- apt-get install -y apparmor
- apt-get install -y apparmor apparmor-profiles
- dpkg --install $PKGDEST/*
- apparmor_parser --preprocess /etc/apparmor.d 1> /dev/null

5
debian/rules vendored
View File

@ -12,6 +12,7 @@ override_dh_auto_configure:
./configure --distribution=debian
override_dh_install:
find systemd/ -type f -exec \
install -Dm0644 {} $$(pwd)/debian/apparmor.d/usr/lib/systemd/system/$(basename {})/apparmor.conf \;
mv systemd system
find system -type f -exec \
install -Dm0644 {} $$(pwd)/debian/apparmor.d/usr/lib/systemd/{}.d/apparmor.conf \;
dh_install