From a0c47eb26d0936e571b7630b06c8596625db2dec Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Mon, 27 Mar 2023 23:08:44 +0100 Subject: [PATCH] build: remove displace file. --- configure | 18 +++--------------- debian/apparmor.d.displace | 7 ------- 2 files changed, 3 insertions(+), 22 deletions(-) delete mode 100644 debian/apparmor.d.displace diff --git a/configure b/configure index 753762e0..59ed2412 100755 --- a/configure +++ b/configure @@ -14,14 +14,6 @@ _warning() { printf ' Warning: %s\n' "$*" >&2; } _title() { printf '%s\n' "$*" >&2; } _msg() { printf ' - %s\n' "$*" >&2; } -# Displace files in the package sources -# $@ List of files to displace -_displace_files() { - for path in "$@"; do - mv "${ROOT:?}/$path" "${ROOT:?}/$path.apparmor.d" - done -} - # Process management function to run a function over all the profile files # $1 The function to run # $2 Usage message to print @@ -81,7 +73,7 @@ configure() { arch|endeavouros|cachyos|manjarolinux) _msg "Configure libexec." LIBEXEC="/{usr/,}lib" - sed -i -e '/Debian/d' "$ROOT/apparmor.d/tunables/extend" + sed -i -e '/Debian/d' "$ROOT/apparmor.d/tunables/etc.d/apparmor.d" ;; debian|ubuntu|whonix|core) @@ -99,16 +91,12 @@ configure() { _msg "Configure libexec." LIBEXEC="/{usr/,}libexec" - sed -i -e '/Archlinux/d' "$ROOT/apparmor.d/tunables/extend" - - _msg "Displace overwritten files." - _displace_files apparmor.d/tunables/global \ - apparmor.d/tunables/xdg-user-dirs apparmor.d/abstractions/trash + sed -i -e '/Archlinux/d' "$ROOT/apparmor.d/tunables/etc.d/apparmor.d" ;; opensuse) LIBEXEC="/{usr/,}libexec" - sed -i -e '/Archlinux/d' "$ROOT/apparmor.d/tunables/extend" + sed -i -e '/Archlinux/d' "$ROOT/apparmor.d/tunables/etc.d/apparmor.d" ;; *) _die "$DISTRIBUTION is not a supported distribution." ;; diff --git a/debian/apparmor.d.displace b/debian/apparmor.d.displace deleted file mode 100644 index f8766b79..00000000 --- a/debian/apparmor.d.displace +++ /dev/null @@ -1,7 +0,0 @@ -# apparmor.d - Full set of apparmor profiles -# Copyright (C) 2021 Alexandre Pujol -# SPDX-License-Identifier: GPL-2.0-only - -/etc/apparmor.d/tunables/global.apparmor.d -/etc/apparmor.d/tunables/xdg-user-dirs.apparmor.d -/etc/apparmor.d/abstractions/trash.apparmor.d