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

12 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 $@