1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#!/usr/bin/make -f
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
ifneq ($(DEB_BUILD_ARCH),s390)
TPMFLAGS = --enable-opencryptoki
endif
CFLAGS += -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
%:
dh --with quilt ${@}
override_dh_auto_clean:
dh_auto_clean
rm -f config.guess config.sub
override_dh_auto_configure:
cp -f /usr/share/misc/config.guess .
cp -f /usr/share/misc/config.sub .
dh_auto_configure -- --enable-static --enable-gpg --disable-gui --enable-pam --disable-openssl --disable-pkcs11-helper --disable-tspi $(TPMFLAGS) CFLAGS="$(CFLAGS)"
override_dh_auto_install:
dh_auto_install
install -D -m 0644 debian/local/ecryptfs-utils.pam-auth-update debian/ecryptfs-utils/usr/share/pam-configs/ecryptfs-utils
chmod 4755 debian/tmp/sbin/mount.ecryptfs_private
# Removing useless files
find debian/tmp -name "*.pyc" | xargs rm -f
rm -f debian/tmp/usr/lib/*.la
override_dh_install:
dh_install --fail-missing --sourcedir=debian/tmp
override_dh_strip:
dh_strip --dbg-package=ecryptfs-utils-dbg
override_dh_fixperms:
dh_fixperms -Xsbin/mount.ecryptfs_private
|