--- /dev/null
+
+# Udev rules for letting the console user access the Yubikey USB
+# device node, needed for challenge/response to work correctly.
+
+ACTION=="add|change", SUBSYSTEM=="usb", \
+ ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010", \
+ TEST=="/var/run/ConsoleKit/database", \
+ RUN+="udev-acl --action=$env{ACTION} --device=$env{DEVNAME}"
# Dist contrib stuff.
EXTRA_DIST += contrib/README contrib/programming.sh
+udevrulesdir=@udevrulesdir@
+dist_udevrules_DATA = \
+ 70-yubikey.rules
+
# Release
PROJECT = yubikey-personalization
AM_CONDITIONAL([BACKEND_OSX], test x$with_backend = xosx)
AM_CONDITIONAL([BACKEND_WINDOWS], test x$with_backend = xwindows)
+AC_ARG_WITH([udevrulesdir],
+ AS_HELP_STRING([--with-udevrulesdir=DIR], [Diectory for udev rules]),
+ [],
+ [])
+AC_SUBST([udevrulesdir], [$with_udevrulesdir])
+
gl_LD_VERSION_SCRIPT
gl_VALGRIND_TESTS