diff options
author | Mike Gilbert <floppymaster@gmail.com> | 2013-10-19 17:13:20 -0400 |
---|---|---|
committer | Mike Gilbert <floppymaster@gmail.com> | 2013-10-19 17:13:20 -0400 |
commit | 9172424af5620cb9fdb25391b589a45fcc67bd7e (patch) | |
tree | 54de5cb5c9e25cb629c934aaa577b055da76d02e | |
parent | Bump version to 2. (diff) | |
parent | Install Gentoo-specific udev rules, bug 488134. (diff) | |
download | gentoo-systemd-integration-9172424af5620cb9fdb25391b589a45fcc67bd7e.tar.gz gentoo-systemd-integration-9172424af5620cb9fdb25391b589a45fcc67bd7e.tar.bz2 gentoo-systemd-integration-9172424af5620cb9fdb25391b589a45fcc67bd7e.zip |
Merged in floppym/gentoo-systemd-integration (pull request #1)
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" |