diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 09:59:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 09:59:38 +0000 |
commit | ff83fcf9b9090b4ce27b3566f74a12a78bf07a10 (patch) | |
tree | 810db5b9e99a40e5cb043761770f2b8960109f83 /debian/rules | |
parent | Adding upstream version 2.7.12. (diff) | |
download | apt-debian/2.7.12.tar.xz apt-debian/2.7.12.zip |
Adding debian version 2.7.12.debian/2.7.12
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | debian/rules | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..56b4a98 --- /dev/null +++ b/debian/rules @@ -0,0 +1,61 @@ +#!/usr/bin/make -f +# Copyright (C) 2009, 2016 Julian Andres Klode <jak@debian.org> +# +# Free Software, licensed under the GPL-2 or (at your option) any later version. +export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed +export DEB_BUILD_MAINT_OPTIONS := hardening=+all + +# do not fail as we are just experimenting with symbol files for now +export DPKG_GENSYMBOLS_CHECK_LEVEL=0 + +export CTEST_OUTPUT_ON_FAILURE=1 + + +ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) + configure_test_flags = -DWITH_TESTS=OFF +else + configure_test_flags = +endif + +%: + dh $@ --buildsystem=cmake+ninja + +override_dh_clean: + cp COPYING debian/copyright + dh_clean + +override_dh_install-arch: + dh_install -papt-utils -X/dump + dh_install -papt -Xmethods/curl -Xmethods/curl+https -Xmethods/curl+http + dh_install --remaining + install -m 644 debian/apt.conf.autoremove debian/apt/etc/apt/apt.conf.d/01autoremove + +override_dh_gencontrol: + dh_gencontrol -- -Vapt:keyring="$(shell ./vendor/getinfo keyring-package)" + +override_dh_installcron: + dh_installcron --name=apt-compat + +override_dh_installsystemd: + # Do not restart "apt-daily.service" because this script runs + # unattended-upgrades. So if apt itself is upgraded as part of + # an unattended-upgrades run it would kill itself + dh_installsystemd -papt apt-daily.timer apt-daily-upgrade.timer + dh_installsystemd -papt --no-restart-on-upgrade --no-restart-after-upgrade --no-start apt-daily.service apt-daily-upgrade.service + dh_installsystemd --remaining-packages + +ifneq ($(filter pkg.apt.nodoxygen,$(DEB_BUILD_PROFILES)),) +override_dh_auto_configure-arch: configure_doc_flags=-DWITH_DOC=OFF -DWITH_DOC_MANPAGES=ON -DWITH_DOC_EXAMPLES=ON +override_dh_auto_configure-indep: configure_doc_flags=-DWITH_DOC=OFF -DWITH_DOC_GUIDES=ON -DWITH_DOC_EXAMPLES=ON +else +ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),) +override_dh_auto_configure-arch: configure_doc_flags=-DWITH_DOC=OFF +override_dh_auto_configure-indep: configure_doc_flags=-DWITH_DOC=OFF +else +override_dh_auto_configure-arch: configure_doc_flags=-DWITH_DOC=OFF -DWITH_DOC_MANPAGES=ON -DWITH_DOC_EXAMPLES=ON +override_dh_auto_configure-indep: configure_doc_flags=-DWITH_DOC=ON +endif +endif + +override_dh_auto_configure-arch override_dh_auto_configure-indep: + dh_auto_configure -- -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON $(configure_doc_flags) $(configure_test_flags) |