mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
24 lines
658 B
Makefile
Executable File
24 lines
658 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# rules makefile.
|
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
|
#
|
|
|
|
%:
|
|
dh $@ --with=config-package
|
|
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 ./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 aa-log $$(pwd)/debian/apparmor.d/usr/bin/aa-log
|
|
dh_install
|