1
0
Fork 0

Adding nvme-udeb (Closes: #982917).

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-16 12:09:58 +01:00
parent f3ccf66393
commit 7a5846af09
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
2 changed files with 28 additions and 1 deletions

9
debian/control vendored
View file

@ -27,3 +27,12 @@ Description: NVMe management tool
(PCIe). (PCIe).
. .
The nvme-cli tool provides management functions for these devices. The nvme-cli tool provides management functions for these devices.
Package: nvme-cli-udeb
Section: debian-installer
Package-Type: udeb
Architecture: any
Depends:
${misc:Depends},
${shlibs:Depends},
Description: NVMe management tool

20
debian/rules vendored
View file

@ -5,8 +5,26 @@ export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%: %:
dh ${@} 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: override_dh_auto_install:
dh_auto_install -- PREFIX=/usr UDEVDIR=/lib/udev SYSTEMDDIR=/lib/systemd dh_auto_install -- DESTDIR=$(CURDIR)/debian/nvme-cli PREFIX=/usr UDEVDIR=/lib/udev SYSTEMDDIR=/lib/systemd
# removing unique files # removing unique files
rm -f debian/nvme-cli/etc/nvme/hostid rm -f debian/nvme-cli/etc/nvme/hostid