Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/architecture.mk
4 include /usr/share/dpkg/buildflags.mk
5 include /usr/share/dpkg/pkg-info.mk
6 include /usr/share/gnome-pkg-tools/1/rules/gnome-version.mk
7
8 built_binaries := $(shell dh_listpackages)
9
10 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
11 export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs
12 export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
13
14 # https://bugs.debian.org/1060838, https://bugs.debian.org/1111001
15 export MESON_USE_NEW_CROSSGEN=1
16
17 ifeq (linux,$(DEB_HOST_ARCH_OS))
18 CONFFLAGS += \
19 -Dselinux=enabled \
20 -Dplymouth=enabled
21 else
22 CONFFLAGS += \
23 -Dwayland-support=false \
24 -Dselinux=disabled
25 endif
26
27 pod2man := pod2man --release="GNOME $(DEB_GNOME_VERSION)" --center="Debian GNU/Linux"
28 PODFILES := $(wildcard debian/*.pod)
29 MANPAGES := $(patsubst %.pod,%,$(PODFILES))
30
31 debian/%: debian/%.pod
32 $(pod2man) --section=$(shell echo $@ | sed 's/.*\.//') \
33 $< | sed -e 's/debian:://' >$@
34
35 %:
36 dh $@
37
38 # We set this up manually
39 override_dh_installsystemd:
40
41 override_dh_auto_configure:
42 dh_auto_configure -- \
43 -Ddistro=debian \
44 -Dat-spi-registryd-dir=/usr/lib/at-spi \
45 -Ddefault-path=/usr/local/bin:/usr/bin:/bin:/usr/games \
46 -Dcustom-conf=/etc/gdm3/daemon.conf \
47 -Dsysconfsubdir=gdm3 \
48 -Dworking-dir=/var/lib/gdm3 \
49 -Drun-dir=/run/gdm3 \
50 -Dpid-file=/run/gdm3.pid \
51 -Dlog-dir=/var/log/gdm3 \
52 -Dpam-mod-dir=/usr/lib/$(DEB_HOST_MULTIARCH)/security \
53 -Ddefaults-conf=/usr/share/gdm/defaults.conf \
54 -Dgdm-xsession=true \
55 -Dgroup=Debian-gdm \
56 -Dlang-file=/etc/default/locale \
57 -Dx11-support=true \
58 $(CONFFLAGS)
59
60 override_dh_auto_build: $(OUTFILES) $(MANPAGES)
61 dh_auto_build
62
63 execute_after_dh_install:
64 ifneq ($(filter gdm3,$(built_binaries)),)
65 mv debian/gdm3/usr/sbin/gdm debian/gdm3/usr/sbin/gdm3
66 chmod 755 debian/gdm3/usr/share/gdm/generate-config
67 dh_installpam -pgdm3 --name=gdm-autologin
68 dh_installpam -pgdm3 --name=gdm-launch-environment
69 dh_installpam -pgdm3 --name=gdm-password
70 dh_installpam -pgdm3 --name=gdm-fingerprint
71 dh_installpam -pgdm3 --name=gdm-smartcard-sssd-exclusive
72 dh_installpam -pgdm3 --name=gdm-smartcard-sssd-or-password
73 dh_installpam -pgdm3 --name=gdm-smartcard-pkcs11-exclusive
74 endif
75
76 override_dh_installinit:
77 dh_installinit --noscripts
78
79 execute_after_dh_auto_clean:
80 rm -f $(MANPAGES)
81 rm -f $(OUTFILES)