Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Copyright (C) 2007-2016 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:=dmidecode
  9. PKG_VERSION:=3.0
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
  13. PKG_MD5SUM:=7ec35bb193729c1d593a1460b59d82d24b89102ab23fd0416e6cf4325d077e45
  14. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/dmidecode
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. DEPENDS:=@(TARGET_x86||TARGET_x86_64)
  23. TITLE:=Displays BIOS informations.
  24. URL:=http://www.nongnu.org/dmidecode/
  25. endef
  26. define Package/dmidecode/description
  27. Dmidecode reports information about your system's hardware
  28. as described in your system BIOS according to the SMBIOS/DMI
  29. standard.
  30. endef
  31. MAKE_FLAGS += \
  32. prefix="/usr"
  33. define Package/dmidecode/install
  34. $(INSTALL_DIR) $(1)/usr/sbin
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/$(PKG_NAME) $(1)/usr/sbin/
  36. endef
  37. $(eval $(call BuildPackage,dmidecode))