diff --git a/pkg/prebuild/directories.go b/pkg/prebuild/directories.go index cd5958b7..dcf368f5 100644 --- a/pkg/prebuild/directories.go +++ b/pkg/prebuild/directories.go @@ -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") diff --git a/pkg/prebuild/prepare/overwrite.go b/pkg/prebuild/prepare/overwrite.go index 530e8869..d974b26e 100644 --- a/pkg/prebuild/prepare/overwrite.go +++ b/pkg/prebuild/prepare/overwrite.go @@ -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