fix conversion to buildroot-ng.
[openwrt.git] / 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 $(TOPDIR)/package/rules.mk
23
24 define Package/udev
25 SECTION:=base
26 # CATEGORY:=FIXME
27 DEFAULT:=n
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
33 endef
34
35 define Build/Compile
36         rm -rf $(PKG_INSTALL_DIR)
37         mkdir -p $(PKG_INSTALL_DIR)
38         $(MAKE) -C $(PKG_BUILD_DIR) \
39                 CROSS="$(TARGET_CROSS)" \
40                 STRIP="/bin/true" \
41                 OPTFLAGS="$(TARGET_CFLAGS)" \
42                 DESTDIR="$(PKG_INSTALL_DIR)" \
43                 INSTALL="install -c" \
44                 all install
45 endef
46
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/
62 endef
63
64 $(eval $(call BuildPackage,udev))