Add Github Action & add support for the last Ubuntu LTS.
This commit is contained in:
parent
b52cbe564c
commit
0fc9c8b5b0
14 changed files with 518 additions and 44 deletions
11
debian/rules
vendored
11
debian/rules
vendored
|
|
@ -3,16 +3,21 @@
|
|||
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||
#
|
||||
|
||||
DH_OPTIONS ?=
|
||||
|
||||
%:
|
||||
dh $@ --with=config-package
|
||||
|
||||
override_dh_auto_configure:
|
||||
./configure --distribution=debian --options=$(DH_OPTIONS)
|
||||
./configure --dist=debian
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
||||
go build -o .build/ ./cmd/aa-log
|
||||
|
||||
override_dh_install:
|
||||
mv systemd system
|
||||
find system -type f -exec \
|
||||
install -Dm0644 {} $$(pwd)/debian/apparmor.d/usr/lib/systemd/{}.d/apparmor.conf \;
|
||||
install -Dm755 .build/aa-log $$(pwd)/debian/apparmor.d/usr/bin/aa-log
|
||||
dh_install
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue