Name ecryptfs-utils
Description ecryptfs cryptographic filesystem (utilities)
Version 111-6ubuntu3
Package Base
Homepage https://launchpad.net/ecryptfs
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors ['Filesystems Group <filesystems-devel@lists.alioth.debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/ecryptfs-utils/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/ecryptfs-utils/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/ecryptfs-utils/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/ecryptfs-utils/plain/debian/patches/set-up-encrypted-swap-on-nvme-and-mmc.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/ecryptfs-utils/plain/debian/patches/swapfile-support.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/ecryptfs-utils/plain/debian/patches/use-pkg-config_gpgme.diff?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/ecryptfs-utils/plain/debian/watch?h=ubuntu/noble']
Dependencies ['gettext-base', 'keyutils', 'libc6', 'libecryptfs1', 'libgpgme11', 'libkeyutils1', 'libpam-runtime', 'libpam0g', 'libtspi1']
Optional-Dependencies ['cryptsetup', 'rsync']
Build-Dependencies ['debhelper-compat', 'distro-info', 'intltool', 'libglib2.0-dev', 'libgpg-error-dev', 'libgpgme-dev', 'libkeyutils-dev', 'libnss3-dev', 'libpam0g-dev', 'pkgconf', 'swig', 'libtspi-dev']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash bbbff82e2a0b9ba068d61370d723db956b6c8bf03a1fb418ce417ed955a0733c
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_BUILD_ARCH     ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

export DEB_CFLAGS_MAINT_APPEND = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh ${@} --with autoreconf

override_dh_autoreconf:
	dh_autoreconf ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-gpg --enable-pam --enable-static --enable-tspi \
		--disable-gui --disable-openssl --disable-pkcs11-helper \
		--disable-pywrap \
		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

	# Adding kmod integration
	install -D -m 0644 debian/local/ecryptfs-utils.kmod debian/ecryptfs-utils/lib/modules-load.d/ecryptfs.conf

	# Removing useless files
	rm -f debian/tmp/usr/lib/*/*.la

override_dh_fixperms:
	dh_fixperms

	chmod 4755 debian/ecryptfs-utils/sbin/mount.ecryptfs_private

override_dh_install:
	dh_install --fail-missing

.PHONY: override_dh_autoreconf override_dh_auto_configure \
	override_dh_auto_install override_dh_install \
	override_dh_fixperms