UDEV.ECLASS

Section: eclass-manpages (5)
Updated: Oct 2024
Index Return to Main Contents

NAME

udev.eclass - Default eclass for determining udev directories.

DESCRIPTION

Default eclass for determining udev directories.

SUPPORTED EAPIS

5 6 7 8

EXAMPLE

inherit udev

# Example of the eclass usage:
RDEPEND="virtual/udev"
DEPEND="${RDEPEND}"

src_configure() {
        econf --with-rulesdir="$(get_udevdir)"/rules.d
}

src_install() {
        default
        # udev_dorules contrib/99-foomatic
        # udev_newrules contrib/98-foomatic 99-foomatic
}

pkg_postinst() {
        udev_reload
}

pkg_postrm() {
        udev_reload
}

FUNCTIONS

udev_get_udevdir
Use the short version $(get_udevdir) instead!
get_udevdir
Output the path for the udev directory (not including ${D}). This function always succeeds, even if udev is not installed. The fallback value is set to /lib/udev
udev_dorules <rule> [...]
Install udev rule(s). Uses doins, thus it is fatal.
udev_newrules <oldname> <newname>
Install udev rule with a new name. Uses newins, thus it is fatal.
udev_reload
Run "udevadm control --reload" to refresh rules and databases. Should be called from pkg_postinst and pkg_postrm in packages which install udev rules or hwdb data.

MAINTAINERS

systemd@gentoo.org

REPORTING BUGS

Please report bugs via https://bugs.gentoo.org/

FILES

udev.eclass

SEE ALSO

ebuild(5)
https://gitweb.gentoo.org/repo/gentoo.git/log/eclass/udev.eclass


Index

NAME
DESCRIPTION
SUPPORTED EAPIS
EXAMPLE
FUNCTIONS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:27:01 GMT, October 07, 2024