Fix systemd service file
[osspd.git] / debian / rules
index 1548beee43ae2d0de85cb9de36b999a4d776cf90..80bfd4839e05e00a4a0c3452b31ad6c24b1146ee 100755 (executable)
@@ -1,10 +1,27 @@
 #!/usr/bin/make -f
 
 #!/usr/bin/make -f
 
+SLAVESDIR=/usr/lib/osspd
+UDEVDIR=/lib/udev/rules.d
+
 %:
 %:
-       dh $@ --parallel
+       dh $@ --parallel --with=systemd
+
+override_dh_auto_build:
+       dh_auto_build -- SLAVESDIR=$(SLAVESDIR) UDEVDIR=$(UDEVDIR)
 
 override_dh_auto_install:
 
 override_dh_auto_install:
-       dh_auto_install -- prefix=/usr UDEVDIR=/lib/udev/rules.d
+       dh_auto_install -- prefix=/usr SLAVESDIR=$(SLAVESDIR) UDEVDIR=$(UDEVDIR)
+
+override_dh_strip:
+       dh_strip --dbg-package=osspd-dbg
+
+override_dh_installdocs:
+       mkdir -p debian/osspd-dbg/usr/share/doc
+       ln -s osspd debian/osspd-dbg/usr/share/doc/osspd-dbg
+       dh_installdocs
+
+override_dh_install:
+       dh_install --fail-missing
 
 # Disable tests, they require running the osspd
 override_dh_auto_test:
 
 # Disable tests, they require running the osspd
 override_dh_auto_test: