Add changes done by Klaumi Klingsporn <klaumikli@gmx.de>.
[debian/lxdm.git] / debian / rules
index 3859a3d..b5176f2 100755 (executable)
@@ -7,13 +7,14 @@ config_file = /etc/lxdm/default.conf
 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
@@ -27,3 +28,6 @@ override_dh_install:
 
 override_dh_installinit:
        dh_installinit --no-start
+
+override_dh_systemd_start:
+       dh_systemd_start -plxdm --no-start -r lxdm.service