BastionGuard/debian/rules
specialworld83 f0f913a209 Release 2.0
2026-07-15 10:52:22 +02:00

42 lines
977 B
Makefile
Executable file

#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --buildsystem=cmake --parallel
override_dh_auto_configure:
set -ex; \
dh_auto_configure -- \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="$(CFLAGS) -Wno-error=unused-result" \
-DCMAKE_CXX_FLAGS="$(CXXFLAGS) -Wno-error=unused-result" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
-DENABLE_SYSTEMD_SERVICES=OFF \
-DENABLE_USER_AGENT_AUTO=OFF \
-DINSTALL_NGINX_DEFAULTS=OFF \
-DBG_PACKAGING=ON \
-DBG_DEBIAN_NO_INSTALL_CODE=ON
override_dh_auto_build:
set -ex; \
dh_auto_build -- -j1
override_dh_auto_install:
set -ex; \
dh_auto_install --destdir=debian/tmp
execute_after_dh_auto_install:
set -ex; \
rm -f debian/tmp/usr/share/icons/hicolor/icon-theme.cache
override_dh_strip:
set -ex; \
dh_strip --exclude=bsc_ebpf.o
override_dh_install:
set -ex; \
dh_install --sourcedir=debian/tmp