Rethink the configure process.

This commit is contained in:
Alexandre Pujol 2021-12-04 22:09:20 +00:00
parent 0fc9c8b5b0
commit 1644b70d6d
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
19 changed files with 156 additions and 125 deletions

10
debian/rules vendored
View file

@ -5,19 +5,19 @@
%:
dh $@ --with=config-package
override_dh_auto_configure:
./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
go build ./cmd/aa-log
override_dh_auto_configure:
./configure
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
install -Dm755 aa-log $$(pwd)/debian/apparmor.d/usr/bin/aa-log
dh_install