diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-03-28 16:39:58 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-03-30 05:52:39 +0200 |
commit | bc925b1da4e1fbe3f8562c2d0070774df06dc045 (patch) | |
tree | d5cacd5f2fb521ca75fed09b41a49d62b2d1ae9a /contrib/debian/rules | |
parent | 81c2461408bc2284f911a0d1a8f1c94e871797c3 (diff) | |
download | passt-bc925b1da4e1fbe3f8562c2d0070774df06dc045.tar passt-bc925b1da4e1fbe3f8562c2d0070774df06dc045.tar.gz passt-bc925b1da4e1fbe3f8562c2d0070774df06dc045.tar.bz2 passt-bc925b1da4e1fbe3f8562c2d0070774df06dc045.tar.lz passt-bc925b1da4e1fbe3f8562c2d0070774df06dc045.tar.xz passt-bc925b1da4e1fbe3f8562c2d0070774df06dc045.tar.zst passt-bc925b1da4e1fbe3f8562c2d0070774df06dc045.zip |
contrib: Add example of Debian package files
...using dh_apparmor to ship and apply AppArmor profiles. Tried on
current Debian testing (Bookworm, 12).
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/debian/rules')
-rwxr-xr-x | contrib/debian/rules | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/debian/rules b/contrib/debian/rules new file mode 100755 index 0000000..a926d32 --- /dev/null +++ b/contrib/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +override_dh_auto_install: + dh_auto_install -- prefix=/usr + mkdir -p debian/passt/etc/apparmor.d/ + cp contrib/apparmor/usr.bin.passt debian/passt/etc/apparmor.d/usr.bin.passt + dh_apparmor --profile-name=usr.bin.passt -ppasst + cp contrib/apparmor/usr.bin.pasta debian/passt/etc/apparmor.d/usr.bin.pasta + dh_apparmor --profile-name=usr.bin.pasta -ppasst + +%: + dh $@ |