From 38e9e5f08ef9628a458e6b2804d092e8ca97f448 Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Mon, 25 Mar 2024 22:38:01 +0000 Subject: [PATCH] build: define new build directories. --- pkg/prebuild/cfg/directories.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkg/prebuild/cfg/directories.go diff --git a/pkg/prebuild/cfg/directories.go b/pkg/prebuild/cfg/directories.go new file mode 100644 index 000000000..80f8ba682 --- /dev/null +++ b/pkg/prebuild/cfg/directories.go @@ -0,0 +1,27 @@ +// apparmor.d - Full set of apparmor profiles +// Copyright (C) 2021-2024 Alexandre Pujol +// SPDX-License-Identifier: GPL-2.0-only + +package cfg + +import "github.com/arduino/go-paths-helper" + +var ( + // Root is the root directory for the build + Root *paths.Path = paths.New(".build") + + // RootApparmord is the final built apparmor.d directory + RootApparmord *paths.Path = Root.Join("apparmor.d") + + // DistDir is the directory where the distribution specific files are stored + DistDir *paths.Path = paths.New("dists") + + // FlagDir is the directory where the flags are stored + FlagDir *paths.Path = DistDir.Join("flags") + + // SystemdDir is the directory where the systemd drop-in files are stored + SystemdDir *paths.Path = paths.New("systemd") + + // Either or not overwrite some upstreamed profile + Overwrite bool = false +)