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_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_SOURCE_URL
:=ftp
://ftp.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/ \
18 http
://ftp.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/ \
19 ftp
://ftp.de.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/ \
20 http
://ftp.de.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/ \
21 ftp
://ftp.fr.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/ \
22 http
://ftp.fr.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/
23 PKG_MD5SUM
:=61ec646daf7795e9777e8f33975408fe
26 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
28 include $(INCLUDE_DIR
)/package.mk
33 TITLE
:=Dynamic device management subsystem
34 DESCRIPTION
:=udev provides a dynamic device directory containing only the files for
\\\
35 actually present devices. It creates or removes device node files in
\\\
36 the
/dev directory
, or it renames network interfaces.
\\\
37 URL
:=http
://www.kernel.org
/pub
/linux
/utils
/kernel
/hotplug
/udev.html
41 rm -rf
$(PKG_INSTALL_DIR
)
42 mkdir
-p
$(PKG_INSTALL_DIR
)
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
44 CROSS
="$(TARGET_CROSS)" \
46 OPTFLAGS
="$(TARGET_CFLAGS)" \
47 DESTDIR
="$(PKG_INSTALL_DIR)" \
48 INSTALL
="install -c" \
52 define Package
/udev
/install
53 install -d
-m0775
$(1)/etc
/udev
54 $(CP
) $(PKG_INSTALL_DIR
)/etc
/udev
/* $(1)/etc
/udev
/
55 install -d
-m0775
$(1)/lib
/udev
56 install -d
-m0775
$(1)/sbin
/
57 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udev
$(1)/sbin
/
58 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udevcontrol
$(1)/sbin
/
59 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udevd
$(1)/sbin
/
60 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udevsend
$(1)/sbin
/
61 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/udevstart
$(1)/sbin
/
62 install -d
-m0775
$(1)/usr
/bin
/
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/udevinfo
$(1)/usr
/bin
/
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/udevtest
$(1)/usr
/bin
/
65 install -d
-m0775
$(1)/usr
/sbin
/
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/udevmonitor
$(1)/usr
/sbin
/
69 $(eval
$(call BuildPackage
,udev
))