summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/librfid/files/librfid.rules1
-rw-r--r--packages/librfid/librfid_svn.bb8
2 files changed, 8 insertions, 1 deletions
diff --git a/packages/librfid/files/librfid.rules b/packages/librfid/files/librfid.rules
new file mode 100644
index 0000000000..82c635a113
--- /dev/null
+++ b/packages/librfid/files/librfid.rules
@@ -0,0 +1 @@
+KERNEL=="spidev*", SYMLINK+="spidev"
diff --git a/packages/librfid/librfid_svn.bb b/packages/librfid/librfid_svn.bb
index 8cfa4c8ba9..49f9a95198 100644
--- a/packages/librfid/librfid_svn.bb
+++ b/packages/librfid/librfid_svn.bb
@@ -6,10 +6,11 @@ DEPENDS = "libusb"
SRCNAME = "librfid"
PV = "0.2.0+svnr${SRCREV}"
-PR = "r3"
+PR = "r4"
SRC_URI = "svn://svn.gnumonks.org/trunk;module=${SRCNAME};proto=http \
file://mifare_ul_timeout.patch;patch=1 \
+ file://librfid.rules \
"
SRC_URI_append_boc01 = "file://spidev.patch;patch=1"
@@ -20,6 +21,11 @@ S = "${WORKDIR}/${SRCNAME}"
inherit autotools
+do_install_append() {
+ install -d ${D}/${sysconfdir}/udev/rules.d
+ install -m 0644 ${WORKDIR}/librfid.rules ${D}/${sysconfdir}/udev/rules.d/70-librfid.rules
+}
+
do_stage() {
autotools_stage_all
}