1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#!/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_auto_install-indep:
override_dh_auto_install-arch:
dh_auto_install
sed -e 's/__DEB_HOST_MULTIARCH__/$(DEB_HOST_MULTIARCH)/g' <debian/postinst.in > debian/postinst
sed -e 's/__DEB_HOST_MULTIARCH__/$(DEB_HOST_MULTIARCH)/g' <debian/prerm.in > debian/prerm
override_dh_fixperms:
dh_fixperms
chmod u+s debian/cifs-utils/sbin/mount.cifs
override_dh_auto_clean-indep:
override_dh_auto_clean-arch:
rm -f debian/postinst debian/prerm
|