debian/postinst: fix kinect_fetch_fw usage for the new upstream version
[kinect-audio-setup.git] / debian / rules
index 284d9e9..7aa6d8a 100755 (executable)
@@ -1,4 +1,17 @@
 #!/usr/bin/make -f
 
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
+
 %:
        PREFIX=/usr dh $@ 
+
+override_dh_auto_install:
+       dh_auto_install
+       $(MAKE) install_udev_rules \
+         DESTDIR=$(TMP) \
+         LOADER_PATH=/usr/sbin/kinect_upload_fw \
+         FIRMWARE_PATH=/lib/firmware/kinect/UACFirmware
+
+override_dh_installchangelogs:
+       dh_installchangelogs NEWS