2021-04-04 00:22:09 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# rules makefile.
|
|
|
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
|
|
|
#
|
|
|
|
|
|
|
|
%:
|
|
|
|
dh $@ --with=config-package
|
2021-12-02 13:35:13 +01:00
|
|
|
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"
|
2021-12-04 23:09:20 +01:00
|
|
|
go build ./cmd/aa-log
|
|
|
|
|
|
|
|
override_dh_auto_configure:
|
2022-09-13 19:14:58 +02:00
|
|
|
./configure --complain
|
2021-04-04 01:00:47 +02:00
|
|
|
|
|
|
|
override_dh_install:
|
2021-09-27 21:24:22 +02:00
|
|
|
mv systemd system
|
|
|
|
find system -type f -exec \
|
|
|
|
install -Dm0644 {} $$(pwd)/debian/apparmor.d/usr/lib/systemd/{}.d/apparmor.conf \;
|
2021-12-04 23:09:20 +01:00
|
|
|
install -Dm755 aa-log $$(pwd)/debian/apparmor.d/usr/bin/aa-log
|
2021-04-04 01:00:47 +02:00
|
|
|
dh_install
|