build: move build logic in the Makefile.

This commit is contained in:
Alexandre Pujol 2022-10-15 23:11:31 +01:00
parent 62f2163875
commit a470063f0f
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
4 changed files with 28 additions and 49 deletions

View file

@ -1,6 +0,0 @@
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
.build/apparmor.d/* etc/apparmor.d
.build/root/etc/* etc/
.build/root/usr/* usr/

15
debian/rules vendored
View file

@ -4,20 +4,7 @@
#
%:
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
dh $@
override_dh_auto_configure:
./configure --complain
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