Name fuse3
Description Filesystem in Userspace (3.x version)
Version 3.14.0-5build1
Package Base
Homepage https://github.com/libfuse/libfuse/wiki
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors []
Distro-repo https://git.launchpad.net/ubuntu/+source/fuse3/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/fuse3/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/fuse3/plain/debian/patches/Fix-max_threads-command-line-parameter-propagation.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/fuse3/plain/debian/patches/Fix_memory_leak_in_high_level_API.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/fuse3/plain/debian/patches/revert_upgrade_of_fuse_kernel.h.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/fuse3/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/fuse3/plain/debian/patches/update_header_name.patch?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/fuse3/plain/debian/watch?h=ubuntu/noble']
Dependencies ['adduser', 'libc6', 'libfuse3-3', 'mount', 'sed']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'pkgconf', 'meson', 'systemd-dev', 'python3 <!nocheck>', 'python3-pytest <!nocheck>']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash 1e5580eeb72e830f0b242254b2438669a94c9912abf1e2f188b2992f188cc995
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

SHELL := sh -e

DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

ifeq ($(DEB_HOST_ARCH_OS), kfreebsd)
	DEB_CONFIGURE_EXTRA_FLAGS = -Dudevrulesdir=/lib/udev/rules.d
endif

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifeq (,$(filter noudeb, $(DEB_BUILD_PROFILES)))
  with_udeb = yes
endif

override_dh_auto_configure:
	dh_auto_configure -- -Ddefault_library=both -Duseroot=false \
		$(DEB_CONFIGURE_EXTRA_FLAGS)

override_dh_compress:
	dh_compress -Xusr/share/doc/libfuse3-dev/examples -XREADME.md

override_dh_fixperms:
	dh_fixperms
	chmod a-x debian/libfuse3-dev/usr/share/doc/libfuse3-dev/examples/cuse_client.c

ifeq ($(DEB_BUILD_ARCH),linux)
	chmod 0755 debian/fuse3/bin/fusermount3
endif

override_dh_install:
	# remove unused files
	rm -f debian/tmp/etc/init.d/fuse3
	rm -f debian/tmp/usr/lib/udev/rules.d/99-fuse3.rules

	dh_install

	# adjusting /lib for multiarch
	mkdir -p debian/libfuse3-3/lib/$(DEB_HOST_MULTIARCH)
	mv debian/libfuse3-3/lib/*.so* debian/libfuse3-3/lib/$(DEB_HOST_MULTIARCH)
ifeq ($(with_udeb),yes)
	mkdir -p debian/libfuse3-3-udeb/lib/$(DEB_HOST_MULTIARCH)
	mv debian/libfuse3-3-udeb/lib/*.so* debian/libfuse3-3-udeb/lib/$(DEB_HOST_MULTIARCH)
endif

	# adding initramfs-tools integration
	install -D -m 0755 debian/local/fuse.hook debian/fuse3/usr/share/initramfs-tools/hooks/fuse

override_dh_auto_test:
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
ifeq (,$(findstring $(DEB_BUILD_ARCH),powerpc ppc64 sparc64 s390x hppa))
		(cd obj-${DEB_HOST_GNU_TYPE}; python3 -m pytest test/) \
			|| true
endif
endif

override_dh_link:
	# correcting symlink targets
	for LIB in debian/tmp/usr/lib/*/*.so; \
	do \
		dh_link -plibfuse3-dev lib/$(DEB_HOST_MULTIARCH)/$$(basename $$(readlink $${LIB})) usr/lib/$(DEB_HOST_MULTIARCH)/$$(basename $${LIB}); \
	done

	dh_link --remaining-packages

override_dh_missing:
	dh_missing --fail-missing

%:
	dh ${@} --buildsystem=meson

.PHONY: override_dh_auto_configure override_dh_compress \
	override_dh_fixperms override_dh_install \
	override_dh_link override_dh_missing