summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 18:07:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 18:07:14 +0000
commit8a9229dbc7367a76c54f6f88c9c1738da260afc9 (patch)
tree9994217a3bd0e7839dd1d1e77e4072ca65e7affc /debian/rules
parentAdding upstream version 1.8.2.3. (diff)
downloadapt-8a9229dbc7367a76c54f6f88c9c1738da260afc9.tar.xz
apt-8a9229dbc7367a76c54f6f88c9c1738da260afc9.zip
Adding debian version 1.8.2.3.debian/1.8.2.3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules47
1 files changed, 47 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..516e5e3
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,47 @@
+#!/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
+
+%:
+ dh $@ --buildsystem=cmake+ninja
+
+override_dh_clean:
+ cp COPYING debian/copyright
+ dh_clean
+
+override_dh_install-indep:
+ dh_install --list-missing
+
+override_dh_install-arch:
+ dh_install -papt-utils -X/dump
+ dh_install -papt -Xmethods/curl -Xmethods/curl+https -Xmethods/curl+http
+ dh_install --remaining --list-missing
+ install -m 644 debian/apt.conf.autoremove debian/apt/etc/apt/apt.conf.d/01autoremove
+ install -m 755 debian/apt.auto-removal.sh debian/apt/etc/kernel/postinst.d/apt-auto-removal
+
+override_dh_gencontrol:
+ dh_gencontrol -- -Vapt:keyring="$(shell ./vendor/getinfo keyring-package)"
+
+override_dh_installcron:
+ dh_installcron --name=apt-compat
+
+override_dh_systemd_start:
+ # 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_systemd_start -papt apt-daily.timer apt-daily-upgrade.timer
+ dh_systemd_start --remaining-packages
+
+override_dh_auto_configure-arch: flags=-DWITH_DOC=OFF
+override_dh_auto_configure-indep: flags=-DWITH_DOC=ON
+override_dh_auto_configure-arch override_dh_auto_configure-indep:
+ dh_auto_configure -- $(flags)
+