Adding hardening=+all to DEB_BUILD_MAINT_OPTIONS.
[debian/lxdm.git] / debian / rules
1 #!/usr/bin/make -f
2
3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
5 LDFLAGS+=-Wl,-z,defs -Wl,--as-needed
6
7 # Rename config file
8 config_file = /etc/lxdm/default.conf
9 CFLAGS+=-DCONFIG_FILE=\"$(config_file)\"
10
11 %:
12         dh ${@} --with systemd --parallel
13
14 override_dh_auto_configure:
15         dh_auto_configure -- --prefix=/usr \
16                 --bindir=/usr/bin \
17                 --sysconfdir=/etc \
18                 --libexecdir=/usr/lib/lxdm \
19                 --with-pam
20
21 override_dh_auto_install:
22         dh_auto_install -- DESTDIR=$(CURDIR)/debian/lxdm
23
24 override_dh_install:
25         dh_install --fail-missing
26
27         mv debian/lxdm/etc/insserv.conf.d/lxdm.insserv debian/lxdm/etc/insserv.conf.d/lxdm
28
29 override_dh_installinit:
30         dh_installinit --no-start -- defaults 30 01
31
32 override_dh_systemd_start:
33         dh_systemd_start -plxdm --no-start -r lxdm.service
34
35 override_dh_strip:
36         dh_strip --dbg-package=lxdm-dbg