blob: 76a5728a2459c7f7a60edab54cab26971588a0d0 (
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
83
84
85
86
87
88
89
90
91
92
|
#!/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 \
-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 \
-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=true \
-Dqt=false \
-Debpf=false \
-Dclat=true \
-Dbpf-compiler=gcc \
-Dnbft=false \
-Dofono=true
execute_before_dh_auto_build:
# Current blhc complains about various hardening options not passed to
# bpf-gcc. But bpf-gcc does not support some of them (-fstack-protector
# and -fcf-protection=full for example). Also it complains about missing
# -g, where in fact bpf-gcc is called with -gbpf, but blhc does not
# recognize it.
# See https://bugs.debian.org/1144478 for more details.
@echo 'blhc: ignore-line-regexp: \[[0-9]+/[0-9]+\] /usr/bin/bpf-gcc .+'
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
rm -f debian/tmp/usr/lib/systemd/system-generators/nm-initrd-generator.sh
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
|