blob: c84c9b6b77b4b6be84f039e4595b190515b26174 (
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
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
dh ${@}
execute_after_dh_auto_clean:
rm -rf build-udeb
execute_after_dh_auto_configure:
mkdir -p build-udeb
find . -maxdepth 1 -mindepth 1 -and -not -name debian -and -not -name ".git*" -and -not -name ".pc*" -exec cp -a {} build-udeb \;
dh_auto_configure --builddirectory build-udeb
execute_after_dh_auto_build:
DEB_CFLAGS_MAINT_APPEND=-Os dh_auto_build \
--reload-all-buildenv-variables \
--builddirectory build-udeb \
-- \
nvme HAVE_SYSTEMD=no LIBHUGETLBFS=no
execute_after_dh_auto_install:
$(MAKE) -C build-udeb install-bin DESTDIR=$(CURDIR)/debian/nvme-cli-udeb PREFIX=/usr
override_dh_auto_install:
dh_auto_install -- DESTDIR=$(CURDIR)/debian/nvme-cli 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
|