| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/architecture.mk |
| 4 |
|
| 5 |
# Disable lto here regardless of whether we enable the configure flag |
| 6 |
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/1070 |
| 7 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto |
| 8 |
|
| 9 |
export PYTHON=/usr/bin/python3 |
| 10 |
|
| 11 |
PPPD_PLUGIN_DIR := $(shell dh_ppp --plugin-dir) |
| 12 |
|
| 13 |
%: |
| 14 |
dh $@ --with ppp |
| 15 |
|
| 16 |
override_dh_auto_configure: |
| 17 |
dh_auto_configure -- \ |
| 18 |
-Druntime_dir=/run \ |
| 19 |
-Dpppd_plugin_dir=$(PPPD_PLUGIN_DIR) \ |
| 20 |
-Dpppd=/usr/sbin/pppd \ |
| 21 |
-Dresolvconf=/usr/sbin/resolvconf \ |
| 22 |
-Dmodprobe=/usr/sbin/modprobe \ |
| 23 |
-Ddhcpcd=no \ |
| 24 |
-Diptables=/usr/sbin/iptables \ |
| 25 |
-Dip6tables=/usr/sbin/ip6tables \ |
| 26 |
-Dnft=/usr/sbin/nft \ |
| 27 |
-Ddnsmasq=/usr/sbin/dnsmasq \ |
| 28 |
-Dpolkit_agent_helper_1=/usr/lib/policykit-1/polkit-agent-helper-1 \ |
| 29 |
-Dsystemdsystemunitdir=/usr/lib/systemd/system \ |
| 30 |
-Dudev_dir=/usr/lib/udev \ |
| 31 |
-Ddbus_conf_dir=/usr/share/dbus-1/system.d \ |
| 32 |
-Dcrypto=gnutls \ |
| 33 |
-Dsession_tracking=systemd \ |
| 34 |
-Dsuspend_resume=systemd \ |
| 35 |
-Dmodem_manager=true \ |
| 36 |
-Dnmtui=true \ |
| 37 |
-Dnmcli=true \ |
| 38 |
-Dselinux=true \ |
| 39 |
-Dsystemd_journal=true \ |
| 40 |
-Dlibaudit=yes \ |
| 41 |
-Dwext=true \ |
| 42 |
-Dwifi=true \ |
| 43 |
-Diwd=true \ |
| 44 |
-Dppp=true \ |
| 45 |
-Dpolkit=true \ |
| 46 |
-Dintrospection=true \ |
| 47 |
-Ddocs=true \ |
| 48 |
-Dconcheck=true \ |
| 49 |
-Dteamdctl=true \ |
| 50 |
-Dbluez5_dun=true \ |
| 51 |
-Dvapi=true \ |
| 52 |
-Difupdown=true \ |
| 53 |
-Difcfg_rh=false \ |
| 54 |
-Dnm_cloud_setup=false \ |
| 55 |
-Dmodify_system=false \ |
| 56 |
-Dovs=true \ |
| 57 |
-Dqt=false \ |
| 58 |
-Debpf=false \ |
| 59 |
-Dnbft=false \ |
| 60 |
-Dofono=true |
| 61 |
|
| 62 |
execute_after_dh_auto_install: |
| 63 |
# Those initrd specific services are not actually used by dracut and |
| 64 |
# conflict with the main services, so remove them for now. |
| 65 |
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1117732 |
| 66 |
rm -f debian/tmp/usr/lib/systemd/system/NetworkManager-config-initrd.service |
| 67 |
rm -f debian/tmp/usr/lib/systemd/system/NetworkManager-wait-online-initrd.service |
| 68 |
rm -f debian/tmp/usr/lib/systemd/system/NetworkManager-initrd.service |
| 69 |
|
| 70 |
override_dh_makeshlibs: |
| 71 |
dh_makeshlibs -X/usr/lib/$(DEB_HOST_MULTIARCH)/NetworkManager/ -X/usr/lib/pppd/ |
| 72 |
|
| 73 |
override_dh_installsystemd: |
| 74 |
dh_installsystemd -pnetwork-manager --no-start NetworkManager-dispatcher.service NetworkManager-wait-online.service nm-priv-helper.service |
| 75 |
dh_installsystemd -pnetwork-manager --no-also NetworkManager.service |
| 76 |
|
| 77 |
override_dh_ppp: |
| 78 |
dh_ppp --breaks |
| 79 |
|
| 80 |
override_dh_auto_test: |
| 81 |
# workaround for slower architectures like hppa, see #1075915 |
| 82 |
dh_auto_test -- --timeout-multiplier 2 |