[LEDE-DEV] [RFC 2/3] packages: import dmidecode

Jo-Philipp Wich jo at mein.io
Wed Jun 1 07:32:49 PDT 2016


Import the dmidecode utility from the packages feed so that we can include it
by default on x86 builds.

Signed-off-by: Jo-Philipp Wich <jo at mein.io>
---
 package/utils/dmidecode/Makefile | 48 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 package/utils/dmidecode/Makefile

diff --git a/package/utils/dmidecode/Makefile b/package/utils/dmidecode/Makefile
new file mode 100644
index 0000000..2dda5a0
--- /dev/null
+++ b/package/utils/dmidecode/Makefile
@@ -0,0 +1,48 @@
+#
+# Copyright (C) 2007-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=dmidecode
+PKG_VERSION:=3.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/dmidecode
+PKG_MD5SUM:=be7501ad0f844e875976b96106afaa3c
+PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari at gmail.com>
+
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/dmidecode
+  SECTION:=utils
+  CATEGORY:=Utilities
+  DEPENDS:=@(TARGET_x86||TARGET_x86_64)
+  TITLE:=Displays BIOS informations.
+  URL:=http://www.nongnu.org/dmidecode/
+endef
+
+define Package/dmidecode/description
+	Dmidecode reports information about your system's hardware
+	as described in your system BIOS according to the SMBIOS/DMI
+	standard.
+endef
+
+MAKE_FLAGS += \
+	prefix="/usr"
+
+define Package/dmidecode/install
+	$(INSTALL_DIR) $(1)/usr/sbin
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/$(PKG_NAME) $(1)/usr/sbin/
+endef
+
+$(eval $(call BuildPackage,dmidecode))
-- 
2.1.4




More information about the Lede-dev mailing list