summaryrefslogtreecommitdiffstats
path: root/debian/rules
blob: 70a49a5212a165e12626b7f9b21d4ffd212e7c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh ${@}

override_dh_auto_install:
	dh_auto_install -- PREFIX=/usr UDEVDIR=/lib/udev SYSTEMDDIR=/lib/systemd

	# removing unique files
	rm -f debian/nvme-cli/etc/nvme/hostid
	rm -f debian/nvme-cli/etc/nvme/hostnqn
	rm -f debian/nvme-cli/usr/lib/dracut/dracut.conf.d/70-nvmf-autoconnect.conf

	# removing useless files
	-rmdir -p debian/nvme-cli/usr/lib/dracut/dracut.conf.d

override_dh_auto_test:
	# disabled, requires a NVMe device