From e031c129edd2a737d6c3b05a892200e4b4de6199 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 4 Feb 2023 21:10:39 +0000 Subject: [PATCH] build: initial support for opensuse. --- configure | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 0a58eab3..b074b7cf 100755 --- a/configure +++ b/configure @@ -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." ;; esac } @@ -142,7 +147,7 @@ _resolve_attachments() { # Parse the variables in the profile hearder variables=( [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") for line in "${lines[@]}"; do