Skip to content

Commit

Permalink
build; make the pkgname configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
roddhjav committed Jan 16, 2025
1 parent 462a972 commit e41c5f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/prebuild/directories.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion pkg/prebuild/prepare/overwrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e41c5f6

Please sign in to comment.