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