diff options
author | Mike Gilbert <floppym@gentoo.org> | 2013-10-19 13:45:14 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2013-10-19 13:45:14 -0400 |
commit | 7908444d5f06bd3898fa69b0f293442881a69f85 (patch) | |
tree | 54de5cb5c9e25cb629c934aaa577b055da76d02e | |
parent | Bump version to 2. (diff) | |
download | gentoo-systemd-integration-7908444d5f06bd3898fa69b0f293442881a69f85.tar.gz gentoo-systemd-integration-7908444d5f06bd3898fa69b0f293442881a69f85.tar.bz2 gentoo-systemd-integration-7908444d5f06bd3898fa69b0f293442881a69f85.zip |
Install Gentoo-specific udev rules, bug 488134.
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | udev/40-gentoo.rules | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 5eac9e7..bfbba03 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,6 +13,9 @@ dist_systemdsystemunit_DATA = \ dist_systemdsystemgenerator_SCRIPTS = \ system-generators/gentoo-local-generator +udevrulesdir = $(udevdir)/rules.d +udevrules_DATA = udev/40-gentoo.rules + install-data-hook: \ systemd-system-unit-install-hook diff --git a/configure.ac b/configure.ac index 10a947d..5704ab1 100644 --- a/configure.ac +++ b/configure.ac @@ -19,5 +19,7 @@ if test -z "$systemdsystemgeneratordir"; then AC_MSG_ERROR([systemdsystemgeneratordir must be set]) fi +PKG_CHECK_VAR([udevdir], [udev], [udevdir], [], [udevdir=/lib/udev]) + AC_CONFIG_FILES([Makefile]) AC_OUTPUT diff --git a/udev/40-gentoo.rules b/udev/40-gentoo.rules new file mode 100644 index 0000000..5d77db0 --- /dev/null +++ b/udev/40-gentoo.rules @@ -0,0 +1,2 @@ +# Gentoo specific usb group +SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb" |