46f302b981acb681bdb58e4093a9306d6b5a42ea
[openwrt.git] / package / udev / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=udev
12 PKG_VERSION:=106
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/ \
17 http://ftp.kernel.org/pub/linux/utils/kernel/hotplug/ \
18 ftp://ftp.de.kernel.org/pub/linux/utils/kernel/hotplug/ \
19 http://ftp.de.kernel.org/pub/linux/utils/kernel/hotplug/ \
20 ftp://ftp.fr.kernel.org/pub/linux/utils/kernel/hotplug/ \
21 http://ftp.fr.kernel.org/pub/linux/utils/kernel/hotplug/
22 PKG_MD5SUM:=320ccd2d0f4540d10e021bafa14f8985
23 PKG_CAT:=bzcat
24
25 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
26 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/udev
31 SECTION:=utils
32 CATEGORY:=Utilities
33 DEPENDS:=@LINUX_2_6
34 TITLE:=Dynamic device management subsystem
35 DESCRIPTION:=\
36 udev provides a dynamic device directory containing only the files for \\\
37 actually present devices. It creates or removes device node files in \\\
38 the /dev directory, or it renames network interfaces.
39 URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
40 endef
41
42 define Package/udevtrigger
43 $(call Package/udev)
44 TITLE:=Small utility to request kernel devices events for coldplug
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 CROSS_COMPILE="$(TARGET_CROSS)" \
50 STRIP="/bin/true" \
51 OPTFLAGS="$(TARGET_CFLAGS)" \
52 DESTDIR="$(PKG_INSTALL_DIR)" \
53 INSTALL="install -c" \
54 all install
55 endef
56
57 define Package/udev/install
58 install -d -m0775 $(1)/etc/udev
59 $(CP) $(PKG_INSTALL_DIR)/etc/udev/* $(1)/etc/udev/
60 install -d -m0775 $(1)/lib/udev
61 install -d -m0775 $(1)/sbin/
62 $(CP) $(PKG_INSTALL_DIR)/sbin/udevcontrol $(1)/sbin/
63 $(CP) $(PKG_INSTALL_DIR)/sbin/udevd $(1)/sbin/
64 install -d -m0775 $(1)/usr/bin/
65 $(CP) $(PKG_INSTALL_DIR)/usr/bin/udevinfo $(1)/usr/bin/
66 $(CP) $(PKG_INSTALL_DIR)/usr/bin/udevtest $(1)/usr/bin/
67 install -d -m0775 $(1)/usr/sbin/
68 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/udevmonitor $(1)/usr/sbin/
69 endef
70
71 define Package/udevtrigger/install
72 $(INSTALL_DIR) $(1)/sbin
73 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevtrigger $(1)/sbin/
74 endef
75
76 $(eval $(call BuildPackage,udev))
77 $(eval $(call BuildPackage,udevtrigger))
This page took 0.050859 seconds and 3 git commands to generate.