summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-02-09 22:36:41 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-02-09 23:56:44 +0100
commit5f84c0f9fae8cf40f22de36c9033cc03c35f0dde (patch)
treec66629561e06669f5d7e9a6af713980f4db4cb26 /sys-apps/tas
parentsys-apps/superdiag: drop 1.5.0.20210507 (diff)
downloadgentoo-5f84c0f9fae8cf40f22de36c9033cc03c35f0dde.tar.gz
gentoo-5f84c0f9fae8cf40f22de36c9033cc03c35f0dde.tar.bz2
gentoo-5f84c0f9fae8cf40f22de36c9033cc03c35f0dde.zip
sys-apps/tas: update EAPI 7 -> 8
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-apps/tas')
-rw-r--r--sys-apps/tas/tas-1.6.0.200601-r1.ebuild73
1 files changed, 73 insertions, 0 deletions
diff --git a/sys-apps/tas/tas-1.6.0.200601-r1.ebuild b/sys-apps/tas/tas-1.6.0.200601-r1.ebuild
new file mode 100644
index 000000000000..3ce67d72f4a4
--- /dev/null
+++ b/sys-apps/tas/tas-1.6.0.200601-r1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit linux-info optfeature systemd
+
+MY_DATE="$(ver_cut 4)"
+MY_PN="${PN^^}"
+MY_PV="$(ver_cut 1-3)"
+
+DESCRIPTION="Supermicro Thin-Agent Service for monitoring through the BMC/IPMI"
+HOMEPAGE="https://www.supermicro.com"
+SRC_URI="https://www.supermicro.com/wftp/utility/${MY_PN}/${MY_PN}_${MY_PV}_build.${MY_DATE}.zip"
+S="${WORKDIR}"
+
+KEYWORDS="-* amd64 x86"
+LICENSE="BSD supermicro"
+SLOT="0"
+
+RDEPEND="
+ net-misc/networkmanager
+ sys-apps/ethtool
+ sys-apps/net-tools
+ sys-apps/smartmontools
+ sys-block/storcli
+ sys-devel/bc
+ sys-fs/lsscsi
+ sys-fs/mdadm"
+
+BDEPEND="app-arch/unzip"
+
+RESTRICT="bindist mirror"
+
+QA_PREBUILT="usr/bin/IPMITAS"
+
+DOCS=(
+ "clireadme.txt"
+ "ReleaseNotes.txt"
+ "software_license_agreement_pv.pdf"
+ "TAS_UserGuide.pdf"
+)
+
+CONFIG_CHECK="~IPMI_DEVICE_INTERFACE ~IPMI_HANDLER ~IPMI_SI"
+
+src_unpack() {
+ unpack ${A}
+ unpack "${S}"/${MY_PN}_${MY_PV}_build.${MY_DATE}_Linux.tar.gz
+}
+
+src_install() {
+ dobin TAS/$(usex amd64 '64' '32')bit/IPMITAS
+
+ insinto /etc/supermicro
+ doins "${FILESDIR}"/tas.ini
+
+ dodir /var/log/tas
+ local logfiles=( {starttime,tas,tas.com}.log )
+ for logfile in ${logfiles[@]}; do
+ touch "${ED}"/var/log/tas/${logfile} || die
+ dosym ../../var/log/tas/${logfile} /etc/supermicro/${logfile}
+ done
+
+ newinitd "${FILESDIR}"/tas.initd tas
+ systemd_newunit "${FILESDIR}"/tas.service tas.service
+
+ einstalldocs
+}
+
+pkg_postinst() {
+ optfeature "Broadcom controller management" sys-block/storcli
+ optfeature "LSI controller management" sys-block/sas3ircu
+}