Removing override_dh_test rule - it appears fixed by upstream.
[debian/lxdm.git] / debian / rules
index 3859a3d..bb512f1 100755 (executable)
@@ -4,26 +4,31 @@ 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 ${@}
+       dh ${@} --with systemd --parallel
 
 override_dh_auto_configure:
-       dh_auto_configure -- LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" \
+       dh_auto_configure -- --prefix=/usr \
+               --bindir=/usr/bin \
                --sysconfdir=/etc \
                --libexecdir=/usr/lib/lxdm \
-               --enable-debug
+               --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