1
0

Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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_HASH:=e865de2c1f559fff0d3fc936e660c0efaf7afe662064f2fb97ccad1ec28d208a
  14. PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
  15. PKG_LICENSE:=LGPL-2.1
  16. PKG_LICENSE_FILES:=COPYING cmd/GPL lib/LGPL
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libsysfs
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. SUBMENU:=Filesystem
  24. TITLE:=Sysfs library
  25. URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
  26. endef
  27. define Package/sysfsutils
  28. SECTION:=utils
  29. CATEGORY:=Utilities
  30. SUBMENU:=Filesystem
  31. DEPENDS:=+libsysfs
  32. TITLE:=System Utilities Based on Sysfs
  33. URL:=http://linux-diag.sourceforge.net/Sysfsutils.html
  34. endef
  35. define Package/libsysfs/description
  36. The library's purpose is to provide a consistant and stable interface for
  37. querying system device information exposed through sysfs.
  38. endef
  39. define Package/sysfsutils/description
  40. A utility built upon libsysfs that lists devices by bus, class, and topology.
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(CP) $(PKG_INSTALL_DIR)/usr/include/sysfs $(1)/usr/include/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.{a,so*,la} $(1)/usr/lib/
  47. endef
  48. define Package/libsysfs/install
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysfs.so* $(1)/usr/lib/
  51. endef
  52. define Package/sysfsutils/install
  53. $(INSTALL_DIR) $(1)/usr/bin
  54. $(CP) $(PKG_INSTALL_DIR)/usr/bin/systool $(1)/usr/bin/
  55. endef
  56. $(eval $(call BuildPackage,libsysfs))
  57. $(eval $(call BuildPackage,sysfsutils))