build; make the pkgname configurable.

This commit is contained in:
Alexandre Pujol 2025-01-17 00:06:35 +01:00
parent 462a972abc
commit e41c5f6055
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 4 additions and 1 deletions

View file

@ -10,6 +10,9 @@ var (
// AppArmor ABI version
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 *paths.Path = paths.New(".build")

View file

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