usr/lib
usr/lib/pkgconfig
-etc/hotplug.d/usb
+etc/udev/rules.d
-usr/lib/pkgconfig/usrp.pc
usr/lib/libusrp.la
usr/lib/libusrp.so.*
+usr/lib/pkgconfig/usrp.pc
+etc/udev/rules.d/40-usrp.rules
--- /dev/null
+#! /bin/sh
+
+set -e
+
+if [ "$1" != "configure" ]; then
+ exit 0
+fi
+
+# Create usrp group for udev access
+if ! getent group usrp >/dev/null; then
+ addgroup --system usrp
+fi
+
+exit 0
--- /dev/null
+#! /bin/sh
+
+set -e
+
+if [ "$1" != "remove" ]; then
+ exit 0
+fi
+
+rm -f /etc/udev/rules.d/40-usrp.rules
+
+exit 0
--- /dev/null
+ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe", SYSFS{idProduct}=="0002", GROUP:="usrp", MODE:="0660"
fi; \
done
- dh_install --sourcedir=debian/tmp
-
-# FIXME: Ubuntu vs. Debian (below)
-# install -m 0755 debian/usrp.hotplug \
-# $(CURDIR)/debian/usrp/etc/hotplug.d/usb/
+ : # Deposit rule to allow group 'usrp' access to USRP hardware
+ install -m 0755 -D debian/libusrp0c2a.udev \
+ debian/tmp/etc/udev/rules.d/40-usrp.rules
+ dh_install --sourcedir=debian/tmp
touch $@