Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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: Makefile 6372 2007-02-25 23:34:57Z nbd $
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=hotplug2
  10. PKG_VERSION:=0.9
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=http://isteve.bofh.cz/~isteve/hotplug2
  14. PKG_MD5SUM:=ea2c01d027b4002e4e6b0ff266f51a51
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/hotplug2
  17. SECTION:=base
  18. CATEGORY:=Base system
  19. VERSION:=0.9+r102-$(PKG_RELEASE)
  20. TITLE:=Dynamic device management subsystem for embedded systems
  21. URL:=http://isteve.bofh.cz/~isteve/hotplug2/
  22. endef
  23. define Package/hotplug2/description
  24. Hotplug2 is a trivial replacement of some of the UDev functionality
  25. in a tiny pack, intended for Linux early userspace: Init RAM FS and InitRD.
  26. endef
  27. MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS) -DHAVE_RULES -I."
  28. define Package/hotplug2/install
  29. $(INSTALL_DIR) $(1)/etc
  30. $(INSTALL_DATA) ./files/hotplug2.rules $(1)/etc/
  31. $(INSTALL_DIR) $(1)/sbin
  32. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hotplug2 $(1)/sbin/
  33. endef
  34. $(eval $(call BuildPackage,hotplug2))