File: rules

package info (click to toggle)
fastnetmon 1.2.8%2Bgit20250911-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,808 kB
  • sloc: cpp: 50,149; perl: 2,522; python: 655; php: 422; sh: 267; ruby: 75; makefile: 70; ansic: 27
file content (21 lines) | stat: -rwxr-xr-x 591 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifeq (,$(filter-out mips mipsel m68k powerpc powerpcspe sh4,$(DEB_HOST_ARCH)))
EXTRA_ARGS += -DUSE_NEW_ATOMIC_BUILTINS=ON
endif

%:
	dh $@ --buildsystem=cmake --sourcedirectory=src

override_dh_auto_configure:
	dh_auto_configure -- \
		-DENABLE_CUSTOM_BOOST_BUILD=FALSE \
		-DDO_NOT_USE_SYSTEM_LIBRARIES_FOR_BUILD=FALSE \
		-DLINK_WITH_ABSL=TRUE \
		-DCMAKE_INSTALL_SYSTEMD_SERVICEDIR=/usr/lib/systemd/system \
		$(EXTRA_ARGS)

override_dh_installsystemd:
	dh_installsystemd --no-start --no-enable --restart-after-upgrade