rules 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. %:
  11. dh $@ --with systemd --parallel --buildsystem=cmake
  12. override_dh_install-indep:
  13. dh_movefiles
  14. dh_install --list-missing
  15. override_dh_install-arch:
  16. dh_movefiles
  17. if [ -e debian/tmp/etc/apt ]; then dh_install -papt etc/apt/* etc/apt; fi
  18. dh_install --list-missing
  19. install -m 644 debian/apt.conf.autoremove debian/apt/etc/apt/apt.conf.d/01autoremove
  20. install -m 755 debian/apt.auto-removal.sh debian/apt/etc/kernel/postinst.d/apt-auto-removal
  21. override_dh_gencontrol:
  22. dh_gencontrol -- -Vapt:keyring="$(shell ./vendor/getinfo keyring-package)"
  23. override_dh_installcron:
  24. dh_installcron --name=apt-compat
  25. override_dh_auto_configure-arch: flags=-DWITH_DOC=OFF
  26. override_dh_auto_configure-indep: flags=-DWITH_DOC=ON
  27. override_dh_auto_configure-arch override_dh_auto_configure-indep:
  28. dh_auto_configure -- $(flags)