gentoo-ebuilds/sys-apps/ipmicfg/ipmicfg-1.36.0.250225.ebuild
Conrad Kostecki 4e0bccf37b
sys-apps/ipmicfg: add 1.36.0.250225, drop 1.35.2.240627
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
2025-04-18 14:14:07 +02:00

48 lines
1,018 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DOWNLOAD_ID="897"
MY_DATE="$(ver_cut 4)"
MY_PN="${PN^^}"
MY_PV="$(ver_cut 1-3)"
inherit secureboot
DESCRIPTION="An in-band utility for configuring Supermicro IPMI devices"
HOMEPAGE="https://www.supermicro.com"
SRC_URI="https://www.supermicro.com/Bios/sw_download/${DOWNLOAD_ID}/${MY_PN}_${MY_PV}_build.${MY_DATE}.zip"
S="${WORKDIR}/${MY_PN}_${MY_PV}_build.${MY_DATE}"
LICENSE="supermicro"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="uefi"
BDEPEND="app-arch/unzip"
RESTRICT="bindist mirror"
QA_PREBUILT="usr/bin/ipmicfg"
pkg_setup() {
use uefi && secureboot_pkg_setup
}
src_install() {
newbin Linux/$(usex amd64 '64bit' '32bit')/IPMICFG-Linux.x86$(usex amd64 '_64' '') ipmicfg
if use uefi; then
insinto /usr/share/ipmicfg
newins UEFI/IPMICFG.efi ipmicfg.efi
secureboot_auto_sign --in-place
fi
# Install docs
local DOCS=(
"IPMICFG_UserGuide.pdf"
"ReleaseNotes.txt"
)
einstalldocs
}