Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #
  2. # Copyright (C) 2006-2009 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=hotplug2
  9. PKG_VERSION:=0.9
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://isteve.bofh.cz/~isteve/hotplug2
  13. PKG_MD5SUM:=ea2c01d027b4002e4e6b0ff266f51a51
  14. include $(INCLUDE_DIR)/package.mk
  15. define Package/hotplug2
  16. SECTION:=base
  17. CATEGORY:=Base system
  18. VERSION:=0.9+r102-$(PKG_RELEASE)
  19. TITLE:=Dynamic device management subsystem for embedded systems
  20. URL:=http://isteve.bofh.cz/~isteve/hotplug2/
  21. endef
  22. define Package/hotplug2/description
  23. Hotplug2 is a trivial replacement of some of the UDev functionality
  24. in a tiny pack, intended for Linux early userspace: Init RAM FS and InitRD.
  25. endef
  26. MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS) -DHAVE_RULES -I."
  27. define Package/hotplug2/install
  28. $(INSTALL_DIR) $(1)/etc
  29. $(INSTALL_DATA) ./files/hotplug2.rules $(1)/etc/
  30. $(INSTALL_DIR) $(1)/sbin
  31. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hotplug2 $(1)/sbin/
  32. endef
  33. $(eval $(call BuildPackage,hotplug2))