Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/tas/files/, sys-apps/tas/
Date: Thu, 27 Sep 2018 06:39:24
Message-Id: 1538030343.d4d5c234425a7e76f526c90acfbdc9c1b1770140.mgorny@gentoo
1 commit: d4d5c234425a7e76f526c90acfbdc9c1b1770140
2 Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com>
3 AuthorDate: Fri Sep 7 21:57:49 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 27 06:39:03 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4d5c234
7
8 sys-apps/tas: New package
9
10 Closes: https://bugs.gentoo.org/665468
11 Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com>
12 Package-Manager: Portage-2.3.49, Repoman-2.3.10
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14 Closes: https://github.com/gentoo/gentoo/pull/9804
15
16 sys-apps/tas/Manifest | 1 +
17 sys-apps/tas/files/tas.ini | 8 ++++
18 sys-apps/tas/files/tas.initd | 17 +++++++++
19 sys-apps/tas/files/tas.service | 11 ++++++
20 sys-apps/tas/metadata.xml | 25 ++++++++++++
21 sys-apps/tas/tas-1.5.2.180622.ebuild | 73 ++++++++++++++++++++++++++++++++++++
22 6 files changed, 135 insertions(+)
23
24 diff --git a/sys-apps/tas/Manifest b/sys-apps/tas/Manifest
25 new file mode 100644
26 index 00000000000..986717cf47b
27 --- /dev/null
28 +++ b/sys-apps/tas/Manifest
29 @@ -0,0 +1 @@
30 +DIST TAS_1.5.2_build.180622.zip 12434740 BLAKE2B 9017aee7512b6d467d2922dc9db3f3cc58046beb4f48838748ac806da1c0c84f99984e2b29867a36db4bcb58a90f3e23c29dbfd8d73e1049cac4bf82ac88d021 SHA512 166483fe514f09c2fbfd27a05072f0bfa0d2cc8f92428451e055ddd9fbc24dfa3e912de224775d16dbb8880391c79ddc2ee9ff55c1e31e0fcf2daa3b05eb7d60
31
32 diff --git a/sys-apps/tas/files/tas.ini b/sys-apps/tas/files/tas.ini
33 new file mode 100644
34 index 00000000000..06f125000bb
35 --- /dev/null
36 +++ b/sys-apps/tas/files/tas.ini
37 @@ -0,0 +1,8 @@
38 +Config :
39 +{
40 + updateFreq = 10;
41 +};
42 +Path :
43 +{
44 + installedPath = "/etc/supermicro";
45 +};
46
47 diff --git a/sys-apps/tas/files/tas.initd b/sys-apps/tas/files/tas.initd
48 new file mode 100644
49 index 00000000000..21b9bd14b0d
50 --- /dev/null
51 +++ b/sys-apps/tas/files/tas.initd
52 @@ -0,0 +1,17 @@
53 +#!/sbin/openrc-run
54 +# Copyright 1999-2018 Gentoo Foundation
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +name="Supermicro Thin-Agent Service"
58 +pidfile="/run/${RC_SVCNAME}.pid"
59 +
60 +command="/usr/bin/IPMITAS"
61 +command_args="-agent start-service"
62 +command_args_stop="-agent stop-service"
63 +start_stop_daemon_args="--env LC_ALL=C"
64 +
65 +stop() {
66 + ebegin "Stopping ${name}"
67 + ${command} ${command_args_stop}
68 + eend $?
69 +}
70
71 diff --git a/sys-apps/tas/files/tas.service b/sys-apps/tas/files/tas.service
72 new file mode 100644
73 index 00000000000..7bf6db6265e
74 --- /dev/null
75 +++ b/sys-apps/tas/files/tas.service
76 @@ -0,0 +1,11 @@
77 +[Unit]
78 +After=network-online.target
79 +Description=TAS
80 +
81 +[Service]
82 +Environment="LC_ALL=C"
83 +ExecStart=/usr/bin/IPMITAS
84 +Type=simple
85 +
86 +[Install]
87 +WantedBy=multi-user.target
88
89 diff --git a/sys-apps/tas/metadata.xml b/sys-apps/tas/metadata.xml
90 new file mode 100644
91 index 00000000000..51cf888b956
92 --- /dev/null
93 +++ b/sys-apps/tas/metadata.xml
94 @@ -0,0 +1,25 @@
95 +<?xml version="1.0" encoding="UTF-8"?>
96 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
97 +<pkgmetadata>
98 + <maintainer type="person">
99 + <email>ck+gentoo@××××××××.de</email>
100 + <name>Conrad Kostecki</name>
101 + </maintainer>
102 + <maintainer type="project">
103 + <email>proxy-maint@g.o</email>
104 + <name>Proxy Maintainers</name>
105 + </maintainer>
106 + <longdescription>
107 + TAS provides server usage information at the OS level,
108 + that users could monitor on a system through the BMC/IPMI.
109 + For HW Platforms, where there is not RAID controller in configuration,
110 + it is recommended to install TAS.
111 + Provides Asset and Health Information:
112 + Hardware Information:
113 + CPU, Memory, NIC, and HDD Health
114 + Usage Monitoring: CPU workload, Memory Size, NIC State, and Disk Partition
115 + Supports RAID and HDD SMART Failure Information:
116 + Broadcom 3108 RAID Controller and Intel PCH/RSTe RAID Chipset
117 + Generates State Event Log: Disk Failure and NIC State Change
118 + </longdescription>
119 +</pkgmetadata>
120
121 diff --git a/sys-apps/tas/tas-1.5.2.180622.ebuild b/sys-apps/tas/tas-1.5.2.180622.ebuild
122 new file mode 100644
123 index 00000000000..182dd6d61af
124 --- /dev/null
125 +++ b/sys-apps/tas/tas-1.5.2.180622.ebuild
126 @@ -0,0 +1,73 @@
127 +# Copyright 1999-2018 Gentoo Foundation
128 +# Distributed under the terms of the GNU General Public License v2
129 +
130 +EAPI="6"
131 +
132 +inherit eapi7-ver linux-info systemd
133 +
134 +MY_DATE="$(ver_cut 4)"
135 +MY_PN="${PN^^}"
136 +MY_PV="$(ver_cut 1-3)"
137 +
138 +DESCRIPTION="Supermicro Thin-Agent Service for monitoring through the BMC/IPMI"
139 +HOMEPAGE="https://www.supermicro.com"
140 +SRC_URI="${MY_PN}_${MY_PV}_build.${MY_DATE}.zip"
141 +
142 +KEYWORDS="-* ~amd64 ~x86"
143 +LICENSE="BSD supermicro"
144 +SLOT="0"
145 +
146 +RDEPEND="net-misc/networkmanager
147 + sys-apps/ethtool
148 + sys-apps/net-tools
149 + sys-apps/smartmontools
150 + sys-block/storcli
151 + sys-devel/bc
152 + sys-fs/lsscsi
153 + sys-fs/mdadm"
154 +DEPEND="app-arch/unzip"
155 +
156 +RESTRICT="bindist fetch mirror"
157 +
158 +S="${WORKDIR}"
159 +
160 +QA_PREBUILT="usr/bin/IPMITAS"
161 +
162 +DOCS=(
163 + "clireadme.txt"
164 + "ReleaseNotes.txt"
165 + "software_license_agreement_pv.pdf"
166 + "TAS_UserGuide.pdf"
167 +)
168 +
169 +CONFIG_CHECK="~IPMI_DEVICE_INTERFACE ~IPMI_HANDLER ~IPMI_SI"
170 +
171 +pkg_nofetch() {
172 + elog "Please download ${A} from"
173 + elog "https://www.supermicro.com/SwDownload/UserInfo.aspx?sw=0&cat=TAS"
174 + elog "and place it in your DISTDIR directory."
175 +}
176 +
177 +src_unpack() {
178 + unpack ${A}
179 + unpack "${S}"/${MY_PN}_${MY_PV}_build.${MY_DATE}_Linux.tar.gz
180 +}
181 +
182 +src_install() {
183 + dobin $(usex amd64 '64' '32')bit/IPMITAS
184 +
185 + insinto /etc/supermicro
186 + doins "${FILESDIR}"/tas.ini
187 +
188 + dodir /var/log/tas
189 + local logfiles=( {starttime,tas,tas.com}.log )
190 + for logfile in ${logfiles[@]}; do
191 + touch "${ED%/}"/var/log/tas/${logfile} || die
192 + dosym ../../var/log/tas/${logfile} /etc/supermicro/${logfile}
193 + done
194 +
195 + newinitd "${FILESDIR}"/tas.initd tas
196 + systemd_newunit "${FILESDIR}"/tas.service tas.service
197 +
198 + einstalldocs
199 +}