mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-29 22:35:15 +01:00
arch: ensure the build files are installed correctly.
This commit is contained in:
parent
027f9e883c
commit
b0690c0e55
1 changed files with 8 additions and 8 deletions
16
PKGBUILD
16
PKGBUILD
|
@ -34,19 +34,19 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
local _build='.build/apparmor.d'
|
local _build='.build'
|
||||||
cd "$srcdir/$pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
|
|
||||||
# Install all files from root/
|
# Install all files from $_build/root
|
||||||
mapfile -t root < <(find root -type f -printf "%P\n")
|
mapfile -t root < <(find "$_build/root" -type f -printf "%P\n")
|
||||||
for file in "${root[@]}"; do
|
for file in "${root[@]}"; do
|
||||||
install -Dm0644 "root/$file" "$pkgdir/$file"
|
install -Dm0644 "$_build/root/$file" "$pkgdir/$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Install all files from $_build
|
# Install all files from $_build/apparmor.d
|
||||||
mapfile -t build < <(find "$_build/" -type f -printf "%P\n")
|
mapfile -t apparmor < <(find "$_build/apparmor.d" -type f -printf "%P\n")
|
||||||
for file in "${build[@]}"; do
|
for file in "${apparmor[@]}"; do
|
||||||
install -Dm0644 "$_build/$file" "$pkgdir/etc/apparmor.d/$file"
|
install -Dm0644 "$_build/apparmor.d/$file" "$pkgdir/etc/apparmor.d/$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Ensure some systemd services do not start before apparmor rules are loaded
|
# Ensure some systemd services do not start before apparmor rules are loaded
|
||||||
|
|
Loading…
Reference in a new issue