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