#!/usr/bin/make -f #export DH_VERBOSE = 1 include /usr/share/dpkg/pkg-info.mk export DEB_VERSION_UPSTREAM # see FEATURE AREAS in dpkg-buildflags(1) export DEB_BUILD_MAINT_OPTIONS = hardening=+all ARCH=$(shell dpkg-architecture -q DEB_HOST_MULTIARCH) DKMS_CONFIGURE_OPTIONS=\ --prefix=/usr \ --includedir=/usr/include \ --libdir=/usr/lib/$(ARCH) \ --ipt-bin=/usr/sbin/iptables-legacy \ --enable-natevents \ --enable-snmp-rules \ --enable-macaddress \ --enable-vlan \ --enable-direction \ --enable-sampler \ --enable-physdev \ --enable-promisc \ --promisc-mpls %: dh $@ --with dkms override_dh_installchangelogs: dh_installchangelogs NEWS override_dh_auto_configure: dh_auto_configure -- --disable-dkms --ipt-bin=/usr/sbin/iptables-legacy override_dh_auto_build: dh_auto_build -- libipt_NETFLOW.so libip6t_NETFLOW.so override_dh_auto_install: $(MAKE) DESTDIR=debian/tmp linstall override_dh_auto_clean: [ ! -e Makefile ] || $(MAKE) lclean override_dh_dkms: sed -e 's#`\./version.sh`#$(DEB_VERSION_UPSTREAM)#;s#^PRE_BUILD="\(.*\)"#PRE_BUILD="\1 $(DKMS_CONFIGURE_OPTIONS)"#' dkms.conf > debian/dkms dh_dkms