#!/usr/bin/make -f # -*- makefile -*- export DEB_BUILD_MAINT_OPTIONS = hardening=+pie,+bindnow # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PKGDIR=$(CURDIR)/debian/bubblewrap %: dh $@ override_dh_fixperms: chmod a+x $(PKGDIR)/usr/share/bash-completion/completions/bwrap # Ubuntu enables unprivileged user namespaces; no need for bwrap to be suid # there. ifneq (yes,$(shell dpkg-vendor --derives-from Ubuntu && echo yes)) chmod 04755 $(PKGDIR)/usr/bin/bwrap dh_fixperms -Xbin/bwrap else dh_fixperms endif .PHONY: override_dh_fixperms