summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 5dba40e13e5039e5b49787bc416e5ac81e7940d7 (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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/architecture.mk

export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed -Wl,-O1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-liblightdm-qt5 \
		--disable-silent-rules \
		--disable-tests \
		--enable-introspection=yes \
		--libexecdir=/usr/lib/$(DEB_HOST_MULTIARCH)/$(DEB_SOURCE)/ \
		--with-greeter-user=lightdm \
		--with-user-session=lightdm-xsession \
		$(null)

override_dh_installchangelogs:
	dh_installchangelogs -- NEWS

override_dh_installinit:
	dh_installinit --noscripts

override_dh_install:
	find debian/tmp -name '*.la' -delete
	find debian/tmp/etc/apparmor.d -type f -exec chmod 0644 '{}' \;
	dh_install --fail-missing -X etc/init/lightdm.conf -X etc/apparmor.d/lightdm-guest-session


override_dh_auto_test:

with := autoreconf

ifeq (linux,$(DEB_HOST_ARCH_OS))
with += systemd

override_dh_systemd_start:
	dh_systemd_start -plightdm --no-start -r lightdm.service
endif

ifeq (illumos,$(DEB_HOST_ARCH_OS))
with += smf
endif

%:
	dh $@ $(with:%=--with %) --parallel