#!/usr/bin/make -f BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date) export DEB_BUILD_MAINT_OPTIONS := hardening=+all %: dh $@ --with=dkms --sourcedirectory=utils override_dh_install: dh_install set -e; if [ -e debian/ndiswrapper-source/usr/src/modules ]; then \ cd debian/ndiswrapper-source/usr/src/; \ tar cjf ndiswrapper.tar.bz2 --sort=name --mtime="$(BUILD_DATE)" --mode=go=rX,u+rw,a-s modules; \ rm -r modules; \ fi override_dh_dkms: dh_dkms -V