44 lines
1 KiB
Makefile
Executable file
44 lines
1 KiB
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 \
|
|
-DBASTIONGUARD_INIT_SYSTEM=AUTO \
|
|
-DBG_PACKAGING=ON \
|
|
-DENABLE_CEF=OFF \
|
|
-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
|