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