Gentoo Development Guide

UDEV.ECLASS

Section: portage (5)
Updated: Oct 2014
Index Return to Main Contents
 

NAME

udev.eclass - Default eclass for determining udev directories.  

DESCRIPTION

Default eclass for determining udev directories.  

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
}
 

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 rules [...]
Install udev rule(s). Uses doins, thus it is fatal in EAPI 4 and non-fatal in earlier EAPIs.
udev_newrules oldname newname
Install udev rule with a new name. Uses newins, thus it is fatal in EAPI 4 and non-fatal in earlier EAPIs.
udev_reload
Run udevadm control --reload to refresh rules and databases
 

MAINTAINERS

udev-bugs@gentoo.org
 

REPORTING BUGS

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

FILES

/usr/portage/eclass/udev.eclass  

SEE ALSO

ebuild(5)
http://sources.gentoo.org/eclass/udev.eclass?view=log


 

Index

NAME
DESCRIPTION
EXAMPLE
FUNCTIONS
MAINTAINERS
REPORTING BUGS
FILES
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 03:25:06 GMT, October 25, 2014