2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=@KERNEL
/linux
/utils
/kernel
/hotplug
/
17 PKG_MD5SUM
:=320ccd2d0f4540d10e021bafa14f8985
19 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=Dynamic device management subsystem
26 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/udev.html
29 define Package
/udev
/description
30 udev provides a dynamic device directory containing only the files for
31 actually present devices. It creates or removes device node files in
32 the
/dev directory
, or it renames network interfaces.
35 define Package
/udevtrigger
37 TITLE
:=Small utility to request kernel devices events for coldplug
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
42 CROSS_COMPILE
="$(TARGET_CROSS)" \
44 OPTFLAGS
="$(TARGET_CFLAGS)" \
45 DESTDIR
="$(PKG_INSTALL_DIR)" \
46 INSTALL
="install -c" \
50 define Package
/udev
/install
51 install -d
-m0775
$(1)/etc
/udev
52 $(CP
) $(PKG_INSTALL_DIR
)/etc
/udev
/* $(1)/etc
/udev
/
53 install -d
-m0775
$(1)/lib
/udev
54 install -d
-m0775
$(1)/sbin
/
55 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/sbin
/udevcontrol
$(1)/sbin
/
56 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/sbin
/udevd
$(1)/sbin
/
57 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/sbin
/udevsettle
$(1)/sbin
/
58 install -d
-m0775
$(1)/usr
/bin
/
59 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/udevinfo
$(1)/usr
/bin
/
60 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/udevtest
$(1)/usr
/bin
/
61 install -d
-m0775
$(1)/usr
/sbin
/
62 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/udevmonitor
$(1)/usr
/sbin
/
65 define Package
/udevtrigger
/install
66 $(INSTALL_DIR
) $(1)/sbin
67 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/sbin
/udevtrigger
$(1)/sbin
/
70 $(eval
$(call BuildPackage
,udev
))
71 $(eval
$(call BuildPackage
,udevtrigger
))