diff --git a/Makefile.am b/Makefile.am index 4ba301d..4a730c4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ SUBDIRS = src pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libnfc.pc -EXTRA_DIST = Doxyfile +EXTRA_DIST = Doxyfile pn53x.rules CLEANFILES = Doxygen.log if DOC_ENABLED diff --git a/debian/changelog b/debian/changelog index c4c28e8..5de1338 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libnfc (1.2.1-4) unstable; urgency=low + + * Add udev rules for USB PN53x. + + -- Romuald Conty Fri, 20 Nov 2009 16:42:42 +0100 + libnfc (1.2.1-3) unstable; urgency=low * Don't use CDBS anymore, should now cross compile. diff --git a/debian/libnfc0.install b/debian/libnfc0.install index 5ae0ff4..809e47b 100644 --- a/debian/libnfc0.install +++ b/debian/libnfc0.install @@ -1 +1,2 @@ debian/tmp/usr/lib/libnfc.so.* +pn53x.rules etc/udev/rules.d/ diff --git a/pn53x.rules b/pn53x.rules new file mode 100644 index 0000000..b7219cb --- /dev/null +++ b/pn53x.rules @@ -0,0 +1,15 @@ +# udev rules file for PN531 and PN533 devices (for udev 0.98 version) +# to be installed in /etc/udev/rules.d + +SUBSYSTEM!="usb|usb_device", GOTO="pn53x_rules_end" +ACTION!="add", GOTO="pn53x_rules_end" + +# PN531 +ATTRS{idVendor}=="04cc", ATTRS{idProduct}=="0531", MODE="0664", GROUP="plugdev" +ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0193", MODE="0664", GROUP="plugdev" + +# PN533 +ATTRS{idVendor}=="04cc", ATTRS{idProduct}=="2533", MODE="0664", GROUP="plugdev" +ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="5591", MODE="0664", GROUP="plugdev" + +LABEL="pn53x_rules_end"