xref: /OK3568_Linux_fs/buildroot/package/ipmitool/ipmitool.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# ipmitool
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunIPMITOOL_VERSION = 1.8.18
8*4882a593SmuzhiyunIPMITOOL_SOURCE = ipmitool-$(IPMITOOL_VERSION).tar.bz2
9*4882a593SmuzhiyunIPMITOOL_SITE = http://downloads.sourceforge.net/project/ipmitool/ipmitool/$(IPMITOOL_VERSION)
10*4882a593SmuzhiyunIPMITOOL_LICENSE = BSD-3-Clause
11*4882a593SmuzhiyunIPMITOOL_LICENSE_FILES = COPYING
12*4882a593SmuzhiyunIPMITOOL_CPE_ID_VENDOR = ipmitool_project
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun# 0008-fru-Fix-buffer-overflow-vulnerabilities.patch
15*4882a593Smuzhiyun# 0009-fru-Fix-buffer-overflow-in-ipmi_spd_print_fru.patch
16*4882a593Smuzhiyun# 0010-session-Fix-buffer-overflow-in-ipmi_get_session_info.patch
17*4882a593Smuzhiyun# 0011-channel-Fix-buffer-overflow.patch
18*4882a593Smuzhiyun# 0012-lanp-Fix-buffer-overflows-in-get_lan_param_select.patch
19*4882a593Smuzhiyun# 0013-fru-sdr-Fix-id_string-buffer-overflows.patch
20*4882a593SmuzhiyunIPMITOOL_IGNORE_CVES += CVE-2020-5208
21*4882a593Smuzhiyun
22*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_IPMITOOL_LANPLUS),y)
23*4882a593SmuzhiyunIPMITOOL_DEPENDENCIES += openssl
24*4882a593SmuzhiyunIPMITOOL_CONF_OPTS += --enable-intf-lanplus
25*4882a593Smuzhiyunelse
26*4882a593SmuzhiyunIPMITOOL_CONF_OPTS += --disable-intf-lanplus
27*4882a593Smuzhiyunendif
28*4882a593Smuzhiyun
29*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_IPMITOOL_USB),y)
30*4882a593SmuzhiyunIPMITOOL_CONF_OPTS += --enable-intf-usb
31*4882a593Smuzhiyunelse
32*4882a593SmuzhiyunIPMITOOL_CONF_OPTS += --disable-intf-usb
33*4882a593Smuzhiyunendif
34*4882a593Smuzhiyun
35*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_IPMITOOL_IPMISHELL),y)
36*4882a593SmuzhiyunIPMITOOL_DEPENDENCIES += ncurses readline
37*4882a593SmuzhiyunIPMITOOL_CONF_OPTS += --enable-ipmishell
38*4882a593Smuzhiyunelse
39*4882a593SmuzhiyunIPMITOOL_CONF_OPTS += --disable-ipmishell
40*4882a593Smuzhiyunendif
41*4882a593Smuzhiyun
42*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_IPMITOOL_IPMIEVD),)
43*4882a593Smuzhiyundefine IPMITOOL_REMOVE_IPMIEVD
44*4882a593Smuzhiyun	$(RM) -f $(TARGET_DIR)/usr/sbin/ipmievd
45*4882a593Smuzhiyunendef
46*4882a593SmuzhiyunIPMITOOL_POST_INSTALL_TARGET_HOOKS += IPMITOOL_REMOVE_IPMIEVD
47*4882a593Smuzhiyunendif
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun$(eval $(autotools-package))
50