build; make the pkgname configurable.
Some checks failed
Ubuntu / check (push) Has been cancelled
Ubuntu / build (default, ubuntu-22.04) (push) Has been cancelled
Ubuntu / build (default, ubuntu-24.04) (push) Has been cancelled
Ubuntu / build (full-system-policy, ubuntu-22.04) (push) Has been cancelled
Ubuntu / build (full-system-policy, ubuntu-24.04) (push) Has been cancelled
Ubuntu / tests (push) Has been cancelled

This commit is contained in:
Alexandre Pujol 2025-01-17 00:06:35 +01:00
parent 462a972abc
commit e41c5f6055
Failed to generate hash of commit
2 changed files with 4 additions and 1 deletions

View file

@ -10,6 +10,9 @@ var (
// AppArmor ABI version // AppArmor ABI version
ABI uint = 0 ABI uint = 0
// Pkgname is the name of the package
Pkgname string = "apparmor.d"
// Root is the root directory for the build (default: .build) // Root is the root directory for the build (default: .build)
Root *paths.Path = paths.New(".build") Root *paths.Path = paths.New(".build")

View file

@ -11,7 +11,7 @@ import (
"github.com/roddhjav/apparmor.d/pkg/prebuild" "github.com/roddhjav/apparmor.d/pkg/prebuild"
) )
const ext = ".apparmor.d" var ext = "." + prebuild.Pkgname
type Overwrite struct { type Overwrite struct {
prebuild.Base prebuild.Base