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