Name nfs-common
Description NFS support files common to client and server
Version 1:2.8.3-1
Package Base nfs-utils
Homepage https://linux-nfs.org/
Maintainers ['Debian kernel team <debian-kernel@lists.debian.org>']
Contributors ['Anibal Monsalve Salazar <anibal@debian.org>', 'Ben Hutchings <benh@debian.org>', 'Salvatore Bonaccorso <carnil@debian.org>']
Distro-repo https://salsa.debian.org/kernel-team/nfs-utils
Sources ['https://sources.debian.org/data/main/n/nfs-utils/1:2.8.3-1/debian/watch', 'https://sources.debian.org/src/nfs-utils/1:2.8.3-1/debian/patches/always-run-generator.patch', 'https://sources.debian.org/src/nfs-utils/1:2.8.3-1/debian/patches/multiarch-kerberos-paths.patch', 'https://sources.debian.org/src/nfs-utils/1:2.8.3-1/debian/patches/series']
Dependencies ['adduser', 'init-system-helpers', 'keyutils', 'libc6', 'libcap2', 'libcom-err2', 'libdevmapper1.02.1', 'libevent-core-2.1-7t64', 'libgssapi-krb5-2', 'libk5crypto3', 'libkeyutils1', 'libkrb5-3', 'libmount1', 'libnfsidmap1', 'libtirpc3t64', 'libwrap0', 'rpcbind', 'ucf']
Optional-Dependencies ['open-iscsi', 'python3', 'watchdog']
Build-Dependencies ['debhelper-compat', 'libwrap0-dev', 'libevent-dev', 'libkrb5-dev', 'libblkid-dev', 'libkeyutils-dev', 'pkgconf', 'libldap2-dev', 'libcap-dev', 'libtirpc-dev', 'libdevmapper-dev', 'libmount-dev', 'libnl-3-dev', 'libnl-genl-3-dev', 'libreadline-dev', 'libsqlite3-dev', 'libxml2-dev']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 3bf0edc765f16d07a579712e8f40307ad61457eb82fbe928f7a107e7101e3ec1
#! /usr/bin/make -f

#export DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# set and export all variables from dpkg-architecture
# and using DEB_HOST_MULTIARCH
include /usr/share/dpkg/architecture.mk

%:
	dh $@

override_dh_auto_configure:
# Use --with-systemd=/lib/systemd/system if backporting to bookworm or earlier
	dh_auto_configure -- \
		--mandir='$${prefix}/share/man' \
		--enable-libmount-mount \
		--enable-junction \
		--enable-svcgss \
		--with-pluginpath=/usr/lib/$(DEB_HOST_MULTIARCH)/libnfsidmap \
		--with-tcp-wrappers \
		--with-systemd \
		--disable-sbin-override

override_dh_bugfiles:
	dh_bugfiles
	install -m 0644 debian/nfs-utils.bug-control debian/nfs-common/usr/share/bug/nfs-utils/control
	install -m 0644 debian/nfs-utils.bug-presubj debian/nfs-common/usr/share/bug/nfs-utils/presubj

override_dh_fixperms:
	dh_fixperms
	chmod u+s debian/nfs-common/usr/sbin/mount.nfs

override_dh_install:
	# we will let the generator produce these units, see LP: #1971935
	# and https://bugs.debian.org/1014429
	dh_install -Xvar-lib-nfs-rpc_pipefs.mount -Xrpc_pipefs.target

override_dh_installinit:
	dh_installinit -pnfs-common -R
	install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server

override_dh_missing:
	dh_missing --list-missing