File: rules

package info (click to toggle)
pmacct 1.7.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,548 kB
  • sloc: ansic: 106,538; sh: 4,876; cpp: 4,340; python: 3,631; makefile: 502
file content (62 lines) | stat: -rwxr-xr-x 1,683 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_HOST_ARCH_OS = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

ifeq ($(DEB_HOST_ARCH_OS),linux)
    extra_confflags += --enable-nflog
endif


override_dh_auto_configure:
	export CFLAGS=-fcommon; dh_auto_configure -- \
		--with-pgsql-includes=`pg_config --includedir` \
		--enable-l2           \
		--enable-ipv6         \
		--enable-plabel       \
		--enable-mysql        \
		--enable-pgsql        \
		--enable-sqlite3      \
		--enable-rabbitmq     \
		--enable-zmq          \
		--enable-kafka        \
		--enable-geoipv2      \
		--enable-jansson      \
		--enable-64bit        \
		--enable-threads      \
		--enable-traffic-bins \
		--enable-bgp-bins     \
		--enable-bmp-bins     \
		--enable-st-bins      \
		$(extra_confflags)

		# build-deps not available in debian
		# --enable-avro         \
		# does not support the current version
		# --enable-mongodb      \
		# libndpi outdated
		# --enable-ndpi         \

override_dh_installinit:
	dh_installinit --name pmacctd --no-start
	dh_installinit --name nfacctd --no-start
	dh_installinit --name sfacctd --no-start
	dh_installinit --name uacctd --no-start

override_dh_systemd_start:
	dh_systemd_start --name pmacctd --no-start
	dh_systemd_start --name nfacctd --no-start
	dh_systemd_start --name sfacctd --no-start
	dh_systemd_start --name uacctd --no-start

override_dh_systemd_enable:
	dh_systemd_enable --name pmacctd --no-enable
	dh_systemd_enable --name nfacctd --no-enable
	dh_systemd_enable --name sfacctd --no-enable
	dh_systemd_enable --name uacctd --no-enable

%:
	dh $@ --with autotools_dev,systemd,autoreconf