Add esvm service file
This commit is contained in:
@@ -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 {} \;
|
||||
|
||||
Reference in New Issue
Block a user