Makefile 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=udev
  10. PKG_VERSION:=106
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/ \
  14. http://ftp.kernel.org/pub/linux/utils/kernel/hotplug/ \
  15. ftp://ftp.de.kernel.org/pub/linux/utils/kernel/hotplug/ \
  16. http://ftp.de.kernel.org/pub/linux/utils/kernel/hotplug/ \
  17. ftp://ftp.fr.kernel.org/pub/linux/utils/kernel/hotplug/ \
  18. http://ftp.fr.kernel.org/pub/linux/utils/kernel/hotplug/
  19. PKG_MD5SUM:=320ccd2d0f4540d10e021bafa14f8985
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/udev
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. DEPENDS:=@LINUX_2_6
  25. TITLE:=Dynamic device management subsystem
  26. DESCRIPTION:=\
  27. udev provides a dynamic device directory containing only the files for \\\
  28. actually present devices. It creates or removes device node files in \\\
  29. the /dev directory, or it renames network interfaces.
  30. URL:=http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html
  31. endef
  32. define Package/udevtrigger
  33. $(call Package/udev)
  34. TITLE:=Small utility to request kernel devices events for coldplug
  35. endef
  36. define Build/Compile
  37. $(MAKE) -C $(PKG_BUILD_DIR) \
  38. CROSS_COMPILE="$(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. define Package/udev/install
  46. install -d -m0775 $(1)/etc/udev
  47. $(CP) $(PKG_INSTALL_DIR)/etc/udev/* $(1)/etc/udev/
  48. install -d -m0775 $(1)/lib/udev
  49. install -d -m0775 $(1)/sbin/
  50. $(CP) $(PKG_INSTALL_DIR)/sbin/udevcontrol $(1)/sbin/
  51. $(CP) $(PKG_INSTALL_DIR)/sbin/udevd $(1)/sbin/
  52. install -d -m0775 $(1)/usr/bin/
  53. $(CP) $(PKG_INSTALL_DIR)/usr/bin/udevinfo $(1)/usr/bin/
  54. $(CP) $(PKG_INSTALL_DIR)/usr/bin/udevtest $(1)/usr/bin/
  55. install -d -m0775 $(1)/usr/sbin/
  56. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/udevmonitor $(1)/usr/sbin/
  57. endef
  58. define Package/udevtrigger/install
  59. $(INSTALL_DIR) $(1)/sbin
  60. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/udevtrigger $(1)/sbin/
  61. endef
  62. $(eval $(call BuildPackage,udev))
  63. $(eval $(call BuildPackage,udevtrigger))