Add esvm service file

This commit is contained in:
2026-04-07 18:45:25 +03:00
parent 707786ea90
commit cde109747a
3 changed files with 15 additions and 5 deletions
+7 -1
View File
@@ -28,10 +28,16 @@ build() {
package() {
make -C libraries/libapparmor DESTDIR="$BPM_OUTPUT" install
make -C binutils DESTDIR="$BPM_OUTPUT" install
make -C parser DESTDIR="$BPM_OUTPUT" SBINDIR="$BPM_OUTPUT"/usr/sbin APPARMOR_BIN_PREFIX="$BPM_OUTPUT"/usr/lib/apparmor install
make -C parser -j1 DESTDIR="$BPM_OUTPUT" SBINDIR="$BPM_OUTPUT"/usr/sbin APPARMOR_BIN_PREFIX="$BPM_OUTPUT"/usr/lib/apparmor install install-systemd
make -C profiles DESTDIR="$BPM_OUTPUT" install
make -C utils DESTDIR="$BPM_OUTPUT" install
# Install esvm service
install -Dm644 "$BPM_WORKDIR"/apparmor.esv "$BPM_OUTPUT"/etc/esvm/services/apparmor.esv
# Remove systemd directory
rm -r "$BPM_OUTPUT"/usr/lib/systemd
# Set file mode to allow the perl library to be stripped:
# https://gitlab.com/apparmor/apparmor/issues/34
find "$BPM_OUTPUT"/usr/lib/perl/ -type f -iname "*.so" -exec chmod 755 {} \;