1
0
mirror of https://passt.top/passt synced 2024-11-05 20:31:11 +00:00
passt/contrib/debian/rules
Stefano Brivio bc925b1da4 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>
2022-03-30 05:52:39 +02:00

13 lines
382 B
Makefile
Executable File

#!/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 $@