#!/usr/bin/make -f

DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

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

override_dh_auto_configure:
	dh_auto_configure -- --enable-cifsidmap --enable-cifscreds --with-libcap-ng=auto --enable-pam --with-pamdir=/lib/$(DEB_HOST_MULTIARCH)/security

override_dh_fixperms:
	dh_fixperms
	chmod u+s debian/cifs-utils/sbin/mount.cifs

