Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #
  2. # Copyright (C) 2006-2012 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:=sysfsutils
  9. PKG_VERSION:=2.1.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/linux-diag
  13. PKG_MD5SUM:=14e7dcd0436d2f49aa403f67e1ef7ddc
  14. PKG_MAINTAINER:=Jo-Philipp Wich <[email protected]>
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libsysfs
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. SUBMENU:=Filesystem
  22. TITLE:=Sysfs library
  23. URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
  24. endef
  25. define Package/sysfsutils
  26. SECTION:=utils
  27. CATEGORY:=Utilities
  28. SUBMENU:=Filesystem
  29. DEPENDS:=+libsysfs
  30. TITLE:=System Utilities Based on Sysfs
  31. URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
  32. endef
  33. define Package/libsysfs/description
  34. The library's purpose is to provide a consistant and stable interface for
  35. querying system device information exposed through sysfs.
  36. endef
  37. define Package/sysfsutils/description
  38. A utility built upon libsysfs that lists devices by bus, class, and topology.
  39. endef
  40. define Build/InstallDev
  41. $(INSTALL_DIR) $(1)/usr/include
  42. $(CP) $(PKG_INSTALL_DIR)/usr/include/sysfs $(1)/usr/include/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.{a,so*,la} $(1)/usr/lib/
  45. endef
  46. define Package/libsysfs/install
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.so* $(1)/usr/lib/
  49. endef
  50. define Package/sysfsutils/install
  51. $(INSTALL_DIR) $(1)/usr/bin
  52. $(CP) $(PKG_INSTALL_DIR)/usr/bin/systool $(1)/usr/bin/
  53. endef
  54. $(eval $(call BuildPackage,libsysfs))
  55. $(eval $(call BuildPackage,sysfsutils))