3 include $(TOPDIR
)/rules.mk
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
10 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
11 PKG_SOURCE_URL
:=ftp
://ftp.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/ \
12 http
://ftp.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/ \
13 ftp
://ftp.de.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/ \
14 http
://ftp.de.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/ \
15 ftp
://ftp.fr.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/ \
16 http
://ftp.fr.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/
17 PKG_MD5SUM
:=61ec646daf7795e9777e8f33975408fe
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(TOPDIR
)/package
/rules.mk
28 TITLE
:=Dynamic device management subsystem
29 DESCRIPTION
:=udev provides a dynamic device directory containing only the files for
\\\
30 actually present devices. It creates or removes device node files in
\\\
31 the
/dev directory
, or it renames network interfaces.
\\\
32 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/udev.html
36 rm -rf
$(PKG_INSTALL_DIR
)
37 mkdir
-p
$(PKG_INSTALL_DIR
)
38 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
39 CROSS
="$(TARGET_CROSS)" \
41 OPTFLAGS
="$(TARGET_CFLAGS)" \
42 DESTDIR
="$(PKG_INSTALL_DIR)" \
43 INSTALL
="install -c" \
47 define Package
/udev
/install
48 install -d
-m0775
$(1)/etc
/udev
49 $(CP
) $(PKG_INSTALL_DIR
)/etc
/udev
/* $(1)/etc
/udev
/
50 install -d
-m0775
$(1)/lib
/udev
51 install -d
-m0775
$(1)/sbin
/
52 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udev
$(1)/sbin
/
53 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udevcontrol
$(1)/sbin
/
54 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udevd
$(1)/sbin
/
55 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udevsend
$(1)/sbin
/
56 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udevstart
$(1)/sbin
/
57 install -d
-m0775
$(1)/usr
/bin
/
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/udevinfo
$(1)/usr
/bin
/
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/udevtest
$(1)/usr
/bin
/
60 install -d
-m0775
$(1)/usr
/sbin
/
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/udevmonitor
$(1)/usr
/sbin
/
64 $(eval
$(call BuildPackage
,udev
))