#!/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_installsystemd: dh_installsystemd --name pmacctd --no-start dh_installsystemd --name nfacctd --no-start dh_installsystemd --name sfacctd --no-start dh_installsystemd --name uacctd --no-start override_dh_installsystemd: dh_installsystemd --name pmacctd --no-enable dh_installsystemd --name nfacctd --no-enable dh_installsystemd --name sfacctd --no-enable dh_installsystemd --name uacctd --no-enable %: dh $@