b5176f231b6088092f7de1b7d89a8685f039762a
[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_test:
20         # disabled
21
22 override_dh_install:
23         dh_install
24
25         mkdir -p debian/lxdm/etc/insserv.conf.d
26         cp debian/lxdm.insserv debian/lxdm/etc/insserv.conf.d/
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
31
32 override_dh_systemd_start:
33         dh_systemd_start -plxdm --no-start -r lxdm.service