DEPENDS = virtual/libc
RDEPENDS = libc6

SRC_URI = http://kernel.org/pub/linux/utils/kernel/hotplug/udev-003.tar.gz \
	  file://${FILESDIR}/install.patch;patch=1 \
	  file://${FILESDIR}/partsegfault.patch;patch=1 \
	  file://${FILESDIR}/compile.patch;patch=1

prefix=
datadir=/usr/share
mandir=${datadir}/man
EXTRA_OEMAKE_append = " 'prefix=${prefix}' \
		'exec_prefix=${prefix}' \
		'etcdir=${sysconfdir}' \
		'sbindir=${sbindir}' \
		'mandir=${mandir}' \
		'hotplugdir=${sysconfdir}/hotplug.d/default' \
		'configdir=${sysconfdir}/udev/'"

do_install () {
	oe_runmake 'DESTDIR=${D}' install
}