diff options
author | Conrad Kostecki <conrad@kostecki.com> | 2018-09-07 23:57:49 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-09-27 08:39:03 +0200 |
commit | d4d5c234425a7e76f526c90acfbdc9c1b1770140 (patch) | |
tree | 2dd5caaed2f9c0705b11b12c19f39f6ff9883663 /sys-apps/tas/tas-1.5.2.180622.ebuild | |
parent | dev-ruby/sinatra: add 2.0.4 (diff) | |
download | gentoo-d4d5c234425a7e76f526c90acfbdc9c1b1770140.tar.gz gentoo-d4d5c234425a7e76f526c90acfbdc9c1b1770140.tar.bz2 gentoo-d4d5c234425a7e76f526c90acfbdc9c1b1770140.zip |
sys-apps/tas: New package
Closes: https://bugs.gentoo.org/665468
Signed-off-by: Conrad Kostecki <conrad@kostecki.com>
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/9804
Diffstat (limited to 'sys-apps/tas/tas-1.5.2.180622.ebuild')
-rw-r--r-- | sys-apps/tas/tas-1.5.2.180622.ebuild | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/sys-apps/tas/tas-1.5.2.180622.ebuild b/sys-apps/tas/tas-1.5.2.180622.ebuild new file mode 100644 index 000000000000..182dd6d61afb --- /dev/null +++ b/sys-apps/tas/tas-1.5.2.180622.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit eapi7-ver linux-info 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="${MY_PN}_${MY_PV}_build.${MY_DATE}.zip" + +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" +DEPEND="app-arch/unzip" + +RESTRICT="bindist fetch mirror" + +S="${WORKDIR}" + +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" + +pkg_nofetch() { + elog "Please download ${A} from" + elog "https://www.supermicro.com/SwDownload/UserInfo.aspx?sw=0&cat=TAS" + elog "and place it in your DISTDIR directory." +} + +src_unpack() { + unpack ${A} + unpack "${S}"/${MY_PN}_${MY_PV}_build.${MY_DATE}_Linux.tar.gz +} + +src_install() { + dobin $(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 +} |