summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: e3fe8a01d7fda76ca0c2f6b2addb3675849f145e (plain)
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
44
45
46
47
48
#! /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_md5sums:
	dh_md5sums -Xvar/lib

override_dh_missing:
	dh_missing --list-missing