Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_REV:=198
  10. PKG_VERSION:=$(PKG_REV)
  11. PKG_RELEASE:=3
  12. PKG_SOURCE_PROTO:=svn
  13. PKG_SOURCE_VERSION:=$(PKG_REV)
  14. PKG_SOURCE_SUBDIR:=hotplug2-$(PKG_VERSION)
  15. PKG_SOURCE_URL:=http://svn.nomi.cz/svn/isteve/hotplug2
  16. PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
  17. #PKG_SOURCE_URL:=http://isteve.bofh.cz/~isteve/hotplug2
  18. #PKG_MD5SUM:=ea2c01d027b4002e4e6b0ff266f51a51
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/hotplug2
  21. SECTION:=base
  22. CATEGORY:=Base system
  23. VERSION:=1.0-beta-$(PKG_RELEASE)
  24. TITLE:=Version 1.0 Dynamic device management subsystem for embedded systems
  25. URL:=http://isteve.bofh.cz/~isteve/hotplug2/
  26. endef
  27. define Package/hotplug2/description
  28. Hotplug2 is a trivial replacement of some of the UDev functionality
  29. in a tiny pack, intended for Linux early userspace: Init RAM FS and InitRD.
  30. This is an implementation of Hotplug2-1.0-beta
  31. endef
  32. MAKE_FLAGS += CFLAGS="$(TARGET_CFLAGS) $(FPIC) -DHAVE_RULES -I."
  33. define Package/hotplug2/install
  34. $(INSTALL_DIR) $(1)/etc
  35. $(INSTALL_DATA) ./files/hotplug2.rules $(1)/etc/
  36. $(INSTALL_DIR) $(1)/sbin
  37. $(INSTALL_BIN) $(PKG_BUILD_DIR)/hotplug2 $(1)/sbin/
  38. $(INSTALL_DIR) $(1)/lib/hotplug2
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/workers/worker_fork.so $(1)/lib/hotplug2
  40. endef
  41. $(eval $(call BuildPackage,hotplug2))