rules 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/usr/bin/make -f
  2. # -*- makefile -*-
  3. # Uncomment this to turn on verbose mode.
  4. #export DH_VERBOSE=1
  5. export PYTHON_PREFIX_ARG=--install-layout=deb
  6. include /usr/share/dpkg/default.mk
  7. export DESTDIR=$(shell pwd)/debian/tmp
  8. %:
  9. dh $@ --with systemd,python3 --with=config-package
  10. override_dh_auto_build:
  11. make all
  12. override_dh_auto_install:
  13. make install-deb
  14. make -C app-menu install
  15. make -C config-overrides install
  16. make -C filesystem install
  17. make -C misc install
  18. make -C network install
  19. make -C package-managers install
  20. make -C package-managers install-apt
  21. make -C passwordless-root install install-debian
  22. make -C qubes-rpc install
  23. make -C qubes-rpc/kde install
  24. make -C qubes-rpc/nautilus install
  25. make -C qubes-rpc/thunar install
  26. install -D -m 0644 boot/grub.qubes $(DESTDIR)/etc/default/grub.d/30-qubes.cfg
  27. override_dh_fixperms:
  28. dh_fixperms -a -Xqfile-unpacker
  29. override_dh_systemd_start:
  30. dh_systemd_start --no-restart-on-upgrade
  31. override_dh_install:
  32. dh_install --fail-missing
  33. override_dh_gencontrol:
  34. ifneq ($(shell grep -o 'stretch\|buster' /etc/debian_version),)
  35. echo "pythonver:Depends=python" >> debian/qubes-core-agent-nautilus.substvars
  36. else
  37. echo "pythonver:Depends=python3" >> debian/qubes-core-agent-nautilus.substvars
  38. endif
  39. dh_gencontrol