0156115362924ae8cab5fe772d3756e76f5cee70
[openwrt/staging/florian.git] / openwrt / package / udev / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=udev
6 PKG_VERSION:=077
7 PKG_RELEASE:=1
8
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
18 PKG_CAT:=bzcat
19
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/udev
25 SECTION:=base
26 DEPENDS:=@LINUX_2_6
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
32 endef
33
34 define Build/Compile
35 rm -rf $(PKG_INSTALL_DIR)
36 mkdir -p $(PKG_INSTALL_DIR)
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 CROSS="$(TARGET_CROSS)" \
39 STRIP="/bin/true" \
40 OPTFLAGS="$(TARGET_CFLAGS)" \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 INSTALL="install -c" \
43 all install
44 endef
45
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/
61 endef
62
63 $(eval $(call BuildPackage,udev))