Tracey Bogue 2d84977ac0 Add Debian packaging for audit app
Create Debian packages for python-k8sapp-auditd and
stx-audit-helm.

Story: 2009101
Task: 43877

Signed-off-by: Tracey Bogue <tracey.bogue@windriver.com>
Change-Id: I726d348fb126639cbb41e1c64923d8c46bda5bfa
2021-12-02 08:26:29 -06:00

27 lines
605 B
Makefile
Executable File

#!/usr/bin/make -f
# export DH_VERBOSE = 1
export APP_NAME=auditd
export PBR_VERSION=1.0.0
export PYBUILD_NAME=k8sapp-auditd
export ROOT=$(CURDIR)/debian/tmp
export SKIP_PIP_INSTALL=1
%:
dh $@ --with=python3 --buildsystem=pybuild
override_dh_auto_build:
python3 setup.py build
override_dh_auto_install:
python3 setup.py install --install-layout=deb --skip-build --root $(ROOT)
python3 setup.py bdist_wheel \
--universal \
-d $(ROOT)/plugins/$(APP_NAME)
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
# (tbogue) FIXME
PYTHONDIR=$(CURDIR) stestr run || true
endif