You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

55 lines
1.9 KiB

  1. #!/usr/bin/make -f
  2. # Copyright (C) 2009, 2016 Julian Andres Klode <jak@debian.org>
  3. #
  4. # Free Software, licensed under the GPL-2 or (at your option) any later version.
  5. export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
  6. export DEB_BUILD_MAINT_OPTIONS := hardening=+all
  7. # do not fail as we are just experimenting with symbol files for now
  8. export DPKG_GENSYMBOLS_CHECK_LEVEL=0
  9. export CTEST_OUTPUT_ON_FAILURE=1
  10. ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
  11. configure_test_flags = -DWITH_TESTS=OFF
  12. else
  13. configure_test_flags =
  14. endif
  15. %:
  16. dh $@ --buildsystem=cmake+ninja
  17. override_dh_clean:
  18. cp COPYING debian/copyright
  19. dh_clean
  20. override_dh_install-arch:
  21. dh_install -papt-utils -X/dump
  22. dh_install -papt -Xmethods/curl -Xmethods/curl+https -Xmethods/curl+http
  23. dh_install --remaining
  24. install -m 644 debian/apt.conf.autoremove debian/apt/etc/apt/apt.conf.d/01autoremove
  25. install -m 755 debian/apt.auto-removal.sh debian/apt/etc/kernel/postinst.d/apt-auto-removal
  26. override_dh_gencontrol:
  27. dh_gencontrol -- -Vapt:keyring="$(shell ./vendor/getinfo keyring-package)"
  28. override_dh_installcron:
  29. dh_installcron --name=apt-compat
  30. override_dh_installsystemd:
  31. # entirely disable systemd rules
  32. override_dh_installsystemd_disabled_:
  33. # Do not restart "apt-daily.service" because this script runs
  34. # unattended-upgrades. So if apt itself is upgraded as part of
  35. # an unattended-upgrades run it would kill itself
  36. dh_installsystemd -papt apt-daily.timer apt-daily-upgrade.timer
  37. dh_installsystemd -papt --no-restart-on-upgrade --no-restart-after-upgrade --no-start apt-daily.service apt-daily-upgrade.service
  38. dh_installsystemd --remaining-packages
  39. override_dh_auto_configure-arch: flags=-DWITH_DOC=OFF -DCMAKE_DISABLE_FIND_PACKAGE_Systemd=TRUE
  40. override_dh_auto_configure-indep: flags=-DWITH_DOC=ON -DCMAKE_DISABLE_FIND_PACKAGE_Systemd=TRUE
  41. override_dh_auto_configure-arch override_dh_auto_configure-indep:
  42. dh_auto_configure -- $(flags) $(configure_test_flags)