-SECTION:=base
-# CATEGORY:=FIXME
-DEFAULT:=n
-TITLE:=Dynamic device management subsystem
-DESCRIPTION:=udev provides a dynamic device directory containing only the files for \\\
-actually present devices. It creates or removes device node files in \\\
-the /dev directory, or it renames network interfaces. \\\
-URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
+ SECTION:=utils
+ CATEGORY:=Utilities
+ DEPENDS:=@LINUX_2_6
+ TITLE:=Dynamic device management subsystem
+ URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
+endef
+
+define Package/udev/description
+ udev provides a dynamic device directory containing only the files for
+ actually present devices. It creates or removes device node files in
+ the /dev directory, or it renames network interfaces.
+endef
+
+define Package/udevtrigger
+$(call Package/udev)
+ SECTION:=base
+ CATEGORY:=Base system
+ TITLE:=Small utility to request kernel devices events for coldplug
+endef
+
+define Package/udevextras
+$(call Package/udev)
+ TITLE:=Utilities for udev scripts, for general device discovery
+ MENU:=1
+endef
+
+define Package/udevextras/config
+ source "$(SOURCE)/udevextras-config.in"
+endef
+
+UDEV_ALL_EXTRAS=ata_id cdrom_id dasd_id edd_id scsi_id path_id usb_id volume_id
+UDEV_EXTRAS=$(strip $(foreach e, $(UDEV_ALL_EXTRAS), \
+ $(if $(CONFIG_UDEVEXTRAS_$(e)),extras/$(e))))
+
+define Build/Compile
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ CROSS_COMPILE="$(TARGET_CROSS)" \
+ STRIP="/bin/true" \
+ OPTFLAGS="$(TARGET_CFLAGS)" \
+ DESTDIR="$(PKG_INSTALL_DIR)" \
+ INSTALL="install -c" \
+ EXTRAS="$(UDEV_EXTRAS)" \
+ VOLUME_ID_STATIC=true \
+ all install