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 $(INCLUDE_DIR
)/package.mk
27 TITLE
:=Dynamic device management subsystem
28 DESCRIPTION
:=udev provides a dynamic device directory containing only the files for
\\\
29 actually present devices. It creates or removes device node files in
\\\
30 the
/dev directory
, or it renames network interfaces.
\\\
31 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/udev.html
35 rm -rf
$(PKG_INSTALL_DIR
)
36 mkdir
-p
$(PKG_INSTALL_DIR
)
37 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
38 CROSS
="$(TARGET_CROSS)" \
40 OPTFLAGS
="$(TARGET_CFLAGS)" \
41 DESTDIR
="$(PKG_INSTALL_DIR)" \
42 INSTALL
="install -c" \
46 define Package
/udev
/install
47 install -d
-m0775
$(1)/etc
/udev
48 $(CP
) $(PKG_INSTALL_DIR
)/etc
/udev
/* $(1)/etc
/udev
/
49 install -d
-m0775
$(1)/lib
/udev
50 install -d
-m0775
$(1)/sbin
/
51 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udev
$(1)/sbin
/
52 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udevcontrol
$(1)/sbin
/
53 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udevd
$(1)/sbin
/
54 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udevsend
$(1)/sbin
/
55 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udevstart
$(1)/sbin
/
56 install -d
-m0775
$(1)/usr
/bin
/
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/udevinfo
$(1)/usr
/bin
/
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/udevtest
$(1)/usr
/bin
/
59 install -d
-m0775
$(1)/usr
/sbin
/
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/udevmonitor
$(1)/usr
/sbin
/
63 $(eval
$(call BuildPackage
,udev
))