debian/rules: install and patch the udev rules file at install time
authorAntonio Ospite <ao2@ao2.it>
Fri, 8 Jan 2016 21:58:26 +0000 (22:58 +0100)
committerAntonio Ospite <ao2@ao2.it>
Sat, 9 Jan 2016 14:30:12 +0000 (15:30 +0100)
The kinect_fetch_fw script does not patch the file automatically at
runtime anymore; so do that once and for all when the package is
created.

debian/rules

index ee8ffc2..7aa6d8a 100755 (executable)
@@ -1,7 +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