]> git.saurik.com Git - apt.git/blame - debian/rules
add support for Build-Depends/Conflicts-Arch
[apt.git] / debian / rules
CommitLineData
2d18d44e 1#!/usr/bin/make -f
e825742b
JAK
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.
5export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
6export DEB_BUILD_MAINT_OPTIONS := hardening=+all
7eee083a 7
149daa16
DK
8# do not fail as we are just experimenting with symbol files for now
9export DPKG_GENSYMBOLS_CHECK_LEVEL=0
201eaabd 10
ecaae01f
DK
11export CTEST_OUTPUT_ON_FAILURE=1
12
e825742b 13%:
113eaa29 14 dh $@
d546f98d 15
e825742b 16override_dh_install-indep:
e825742b 17 dh_install --list-missing
d546f98d 18
e825742b 19override_dh_install-arch:
99fd3fd5
JAK
20 dh_install -papt-utils -X/dump
21 dh_install -papt -Xmethods/https
22 dh_install --remaining --list-missing
e825742b
JAK
23 install -m 644 debian/apt.conf.autoremove debian/apt/etc/apt/apt.conf.d/01autoremove
24 install -m 755 debian/apt.auto-removal.sh debian/apt/etc/kernel/postinst.d/apt-auto-removal
d546f98d 25
e825742b
JAK
26override_dh_gencontrol:
27 dh_gencontrol -- -Vapt:keyring="$(shell ./vendor/getinfo keyring-package)"
e941cc69 28
e825742b
JAK
29override_dh_installcron:
30 dh_installcron --name=apt-compat
2d18d44e 31
e133bb5e
MV
32override_dh_systemd_start:
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_systemd_start apt-daily.timer
ee7ddf12 37
e825742b
JAK
38override_dh_auto_configure-arch: flags=-DWITH_DOC=OFF
39override_dh_auto_configure-indep: flags=-DWITH_DOC=ON
40override_dh_auto_configure-arch override_dh_auto_configure-indep:
41 dh_auto_configure -- $(flags)
0789f685
JAK
42
43override_dh_auto_build:
44 dh_auto_build -- -O