Removing override_dh_test rule - it appears fixed by upstream.
[debian/lxdm.git] / debian / rules
index b5176f2..bb512f1 100755 (executable)
@@ -4,7 +4,7 @@ LDFLAGS+=-Wl,-z,defs -Wl,--as-needed
 
 # Rename config file
 config_file = /etc/lxdm/default.conf
-CFLAGS+=-DCONFIG_FILE=\\\"$(config_file)\\\"
+CFLAGS+=-DCONFIG_FILE=\"$(config_file)\"
 
 %:
        dh ${@} --with systemd --parallel
@@ -16,18 +16,19 @@ override_dh_auto_configure:
                --libexecdir=/usr/lib/lxdm \
                --with-pam
 
-override_dh_auto_test:
-       # disabled
+override_dh_auto_install:
+       dh_auto_install -- DESTDIR=$(CURDIR)/debian/lxdm
 
 override_dh_install:
-       dh_install
+       dh_install --fail-missing
 
-       mkdir -p debian/lxdm/etc/insserv.conf.d
-       cp debian/lxdm.insserv debian/lxdm/etc/insserv.conf.d/
        mv debian/lxdm/etc/insserv.conf.d/lxdm.insserv debian/lxdm/etc/insserv.conf.d/lxdm
 
 override_dh_installinit:
-       dh_installinit --no-start
+       dh_installinit --no-start -- defaults 30 01
 
 override_dh_systemd_start:
        dh_systemd_start -plxdm --no-start -r lxdm.service
+
+override_dh_strip:
+       dh_strip --dbg-package=lxdm-dbg