#!/usr/bin/make -f
-include /usr/share/hardening-includes/hardening.make
+include /usr/share/dpkg/pkg-info.mk
+include /usr/share/dpkg/architecture.mk
-CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
-CXXFLAGS=$(shell dpkg-buildflags --get CXXFLAGS)
-LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
-#LDFLAGS += -Wl,-O1 -Wl,-z,defs -Wl,--as-needed
-CFLAGS+=$(HARDENING_CFLAGS)
-CXXFLAGS+=$(HARDENING_CFLAGS)
-LDFLAGS+=$(HARDENING_LDFLAGS)
-
-export CFLAGS CXXFLAGS LDFLAGS
+export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed -Wl,-O1
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
override_dh_auto_configure:
- dh_auto_configure -- --with-greeter-user=lightdm --with-default-session=xfce
+ dh_auto_configure -- --with-greeter-user=lightdm --with-user-session=lightdm-xsession --enable-introspection=yes --disable-silent-rules --libexecdir=/usr/lib/$(DEB_HOST_MULTIARCH)/$(DEB_SOURCE)/
+
+override_dh_installchangelogs:
+ dh_installchangelogs -- NEWS
override_dh_installinit:
dh_installinit --noscripts
override_dh_install:
find debian/tmp -name '*.la' -delete
- dh_install --fail-missing
+ 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
%:
- dh $@
+ dh $@ --with systemd --parallel
override_dh_auto_test:
+
+override_dh_systemd_start:
+ dh_systemd_start -plightdm --no-start -r lightdm.service