Merge pull request #4962 from diizzyy/patch-96
[feed/packages.git] / utils / dmidecode / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dmidecode
11 PKG_VERSION:=3.0
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
16 PKG_HASH:=7ec35bb193729c1d593a1460b59d82d24b89102ab23fd0416e6cf4325d077e45
17 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
18
19 PKG_LICENSE:=GPL-2.0
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/dmidecode
27 SECTION:=utils
28 CATEGORY:=Utilities
29 DEPENDS:=@(TARGET_x86||TARGET_x86_64)
30 TITLE:=Displays BIOS informations.
31 URL:=http://www.nongnu.org/dmidecode/
32 endef
33
34 define Package/dmidecode/description
35 Dmidecode reports information about your system's hardware
36 as described in your system BIOS according to the SMBIOS/DMI
37 standard.
38 endef
39
40 MAKE_FLAGS += \
41 prefix="/usr"
42
43 define Package/dmidecode/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/$(PKG_NAME) $(1)/usr/sbin/
46 endef
47
48 $(eval $(call BuildPackage,dmidecode))