diff options
author | Mike Gilbert <floppym@gentoo.org> | 2021-01-10 12:25:58 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2021-01-10 12:55:24 -0500 |
commit | 8c90d2bd447948c268517c779d7ada27a2649949 (patch) | |
tree | d05646bb8c78fe678d29a9344bbb65ef19a00248 /sys-fs | |
parent | dev-ml/calendars: Adding to the tree (diff) | |
download | gentoo-8c90d2bd447948c268517c779d7ada27a2649949.tar.gz gentoo-8c90d2bd447948c268517c779d7ada27a2649949.tar.bz2 gentoo-8c90d2bd447948c268517c779d7ada27a2649949.zip |
sys-fs/udev: move 40-gentoo.rules to FILESDIR
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/udev/files/40-gentoo.rules | 3 | ||||
-rw-r--r-- | sys-fs/udev/udev-9999.ebuild | 12 |
2 files changed, 4 insertions, 11 deletions
diff --git a/sys-fs/udev/files/40-gentoo.rules b/sys-fs/udev/files/40-gentoo.rules new file mode 100644 index 000000000000..6b96bd07051e --- /dev/null +++ b/sys-fs/udev/files/40-gentoo.rules @@ -0,0 +1,3 @@ +# Gentoo specific groups +ACTION=="add", SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy" +ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb" diff --git a/sys-fs/udev/udev-9999.ebuild b/sys-fs/udev/udev-9999.ebuild index cf615425a349..f028328e33ef 100644 --- a/sys-fs/udev/udev-9999.ebuild +++ b/sys-fs/udev/udev-9999.ebuild @@ -93,16 +93,6 @@ pkg_setup() { } src_prepare() { - cat <<-EOF > "${T}"/40-gentoo.rules - # Gentoo specific floppy and usb groups - ACTION=="add", SUBSYSTEM=="block", KERNEL=="fd[0-9]", GROUP="floppy" - ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usb" - EOF - - if [[ -d "${WORKDIR}/patches" ]]; then - eapply "${WORKDIR}/patches" - fi - local PATCHES=( ) @@ -222,7 +212,7 @@ multilib_src_install_all() { # see src_prepare() for content of 40-gentoo.rules insinto /lib/udev/rules.d - doins "${T}"/40-gentoo.rules + doins "${FILESDIR}"/40-gentoo.rules doins "${S}"/rules.d/*.rules dobashcomp shell-completion/bash/udevadm |