build: initial support for opensuse.

This commit is contained in:
Alexandre Pujol 2023-02-04 21:10:39 +00:00
parent 222b57acb5
commit e031c129ed
Failed to generate hash of commit

7
configure vendored
View file

@ -102,6 +102,11 @@ configure() {
;; ;;
opensuse)
LIBEXEC="/{usr/,}libexec"
sed -i -e '/Archlinux/d' "$ROOT/apparmor.d/tunables/extend"
;;
*) _die "$DISTRIBUTION is not a supported distribution." ;; *) _die "$DISTRIBUTION is not a supported distribution." ;;
esac esac
} }
@ -142,7 +147,7 @@ _resolve_attachments() {
# Parse the variables in the profile hearder # Parse the variables in the profile hearder
variables=( variables=(
[libexec]="$LIBEXEC" [multiarch]="*-linux-gnu*" [libexec]="$LIBEXEC" [multiarch]="*-linux-gnu*"
[user_share_dirs]="/home/*/.local/share" [user_share_dirs]="/home/*/.local/share" [etc_ro]="/{usr/,}etc/"
) )
mapfile -t lines < <(grep '^@{.*}[ ]*[+=][ ]*.*$' "$path") mapfile -t lines < <(grep '^@{.*}[ ]*[+=][ ]*.*$' "$path")
for line in "${lines[@]}"; do for line in "${lines[@]}"; do