1 |
commit: 72e20101b43d0bb3d5ff945401aef50fc4c39e41 |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 17 13:49:47 2022 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 17 16:21:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72e20101 |
7 |
|
8 |
sys-apps/ipmitool: Drop old versions |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
.../ipmitool/files/ipmitool-1.8.9-ipmievd.confd | 22 --- |
13 |
.../ipmitool/files/ipmitool-1.8.9-ipmievd.initd | 24 --- |
14 |
.../ipmitool/ipmitool-1.8.18_p20201004-r1.ebuild | 145 --------------- |
15 |
.../ipmitool/ipmitool-1.8.18_p20201004-r2.ebuild | 201 --------------------- |
16 |
4 files changed, 392 deletions(-) |
17 |
|
18 |
diff --git a/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.confd b/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.confd |
19 |
deleted file mode 100644 |
20 |
index 42b194a771b0..000000000000 |
21 |
--- a/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.confd |
22 |
+++ /dev/null |
23 |
@@ -1,22 +0,0 @@ |
24 |
-# Copyright 1999-2007 Gentoo Foundation |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
-# /etc/conf.d/ipmievd |
27 |
- |
28 |
-# Interfaces: |
29 |
-# open Linux OpenIPMI Interface |
30 |
-# imb Intel IMB Interface |
31 |
-# bmc IPMI v2.0 BMC interface |
32 |
-# lan IPMI v1.5 LAN Interface |
33 |
-# lanplus IPMI v2.0 RMCP+ LAN Interface |
34 |
- |
35 |
-INTERFACE="open" |
36 |
- |
37 |
-# Commands: |
38 |
-# open Use OpenIPMI for asyncronous notification of events |
39 |
-# sel Poll SEL for notification of events |
40 |
- |
41 |
-COMMAND="open" |
42 |
- |
43 |
-# Options. |
44 |
- |
45 |
-OPTIONS="" |
46 |
|
47 |
diff --git a/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.initd b/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.initd |
48 |
deleted file mode 100644 |
49 |
index 256238ef5e2c..000000000000 |
50 |
--- a/sys-apps/ipmitool/files/ipmitool-1.8.9-ipmievd.initd |
51 |
+++ /dev/null |
52 |
@@ -1,24 +0,0 @@ |
53 |
-#!/sbin/openrc-run |
54 |
-# Copyright 1999-2007 Gentoo Foundation |
55 |
-# Distributed under the terms of the GNU General Public License v2 |
56 |
-# /etc/init.d/ipmievd |
57 |
- |
58 |
-depend() { |
59 |
- use logger |
60 |
-} |
61 |
-PN="ipmievd" |
62 |
- |
63 |
-start() { |
64 |
- /sbin/modprobe -sq ipmi_msghandler |
65 |
- /sbin/modprobe -sq ipmi_devintf |
66 |
- /sbin/modprobe -sq ipmi_si |
67 |
- ebegin "Starting ${PN}" |
68 |
- start-stop-daemon --start --pidfile /var/run/${PN}.pid0 --exec /usr/sbin/${PN} -- -I ${INTERFACE} ${OPTIONS} ${COMMAND} |
69 |
- eend $? |
70 |
-} |
71 |
- |
72 |
-stop() { |
73 |
- ebegin "Stopping ${PN}" |
74 |
- start-stop-daemon --stop --pidfile /var/run/${PN}.pid0 |
75 |
- eend $? |
76 |
-} |
77 |
|
78 |
diff --git a/sys-apps/ipmitool/ipmitool-1.8.18_p20201004-r1.ebuild b/sys-apps/ipmitool/ipmitool-1.8.18_p20201004-r1.ebuild |
79 |
deleted file mode 100644 |
80 |
index afe6d33c7255..000000000000 |
81 |
--- a/sys-apps/ipmitool/ipmitool-1.8.18_p20201004-r1.ebuild |
82 |
+++ /dev/null |
83 |
@@ -1,145 +0,0 @@ |
84 |
-# Copyright 1999-2021 Gentoo Authors |
85 |
-# Distributed under the terms of the GNU General Public License v2 |
86 |
- |
87 |
-EAPI=6 |
88 |
- |
89 |
-inherit autotools |
90 |
- |
91 |
-DESCRIPTION="Utility for controlling IPMI enabled devices" |
92 |
-HOMEPAGE="http://ipmitool.sf.net/" |
93 |
-DEBIAN_PR="9.debian" |
94 |
-DEBIAN_PV="${PV/_p*}" |
95 |
-DEBIAN_P="${PN}_${DEBIAN_PV}" |
96 |
-DEBIAN_PF="${DEBIAN_P}-${DEBIAN_PR}" |
97 |
-COMMIT_ID=7fd7c0f2ba39e223868a8d83d81d4074f057d6fc |
98 |
-if [[ -n "${COMMIT_ID}" ]]; then |
99 |
- S="${WORKDIR}/${PN}-${COMMIT_ID}" |
100 |
- SRC_URI="https://github.com/ipmitool/ipmitool/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz" |
101 |
-else |
102 |
- SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
103 |
-fi |
104 |
-# https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers |
105 |
-# is not available with version numbers or dates! |
106 |
-SRC_URI+=" |
107 |
- https://dev.gentoo.org/~robbat2/distfiles/ipmitool_1.8.18-9.debian-ported-gentoo.tar.xz |
108 |
- https://dev.gentoo.org/~robbat2/distfiles/enterprise-numbers.2020-10-21.xz |
109 |
- " |
110 |
- #http://http.debian.net/debian/pool/main/i/${PN}/${DEBIAN_PF}.tar.xz |
111 |
- # https://launchpad.net/ubuntu/+archive/primary/+files/${DEBIAN_PF}.tar.xz |
112 |
-#IUSE="freeipmi openipmi status" |
113 |
-IUSE="openbmc openipmi static" |
114 |
-SLOT="0" |
115 |
-KEYWORDS="amd64 ~arm64 ~hppa ~ia64 ppc ppc64 x86" |
116 |
-LICENSE="BSD" |
117 |
- |
118 |
-RDEPEND=" |
119 |
- dev-libs/openssl:0= |
120 |
- openbmc? ( sys-apps/systemd:0= ) |
121 |
- sys-libs/readline:0=" |
122 |
-DEPEND="${RDEPEND} |
123 |
- openipmi? ( sys-libs/openipmi ) |
124 |
- virtual/os-headers" |
125 |
- #freeipmi? ( sys-libs/freeipmi ) |
126 |
-# ipmitool CAN build against || ( sys-libs/openipmi sys-libs/freeipmi ) |
127 |
-# but it doesn't actually need either. |
128 |
- |
129 |
-PATCHES=( |
130 |
- #"${FILESDIR}"/${P}-openssl-1.1.patch |
131 |
-) |
132 |
- |
133 |
-# I hope all of this will get MUCH cleaner if upstream will just make a new |
134 |
-# release! - robbat2 2020/10/21 |
135 |
-src_prepare() { |
136 |
- default |
137 |
- if [ -d "${S}"/debian ] ; then |
138 |
- mv "${S}"/debian{,.package} |
139 |
- ln -s "${WORKDIR}"/debian "${S}" |
140 |
- eautoreconf |
141 |
- # Upstream commit includes SOME of the debian changes, but not all of them |
142 |
- sed -i \ |
143 |
- -e '/^#/d' \ |
144 |
- -e '/0120-openssl1.1.patch/d' \ |
145 |
- debian/patches/series |
146 |
- for p in $(cat debian/patches/series) ; do |
147 |
- echo ${p} |
148 |
- if ! nonfatal eapply -p1 debian/patches/$p ; then |
149 |
- echo "failed ${p}" |
150 |
- fail=1 |
151 |
- fi |
152 |
- done |
153 |
- [[ $fail -eq 1 ]] && die "fail" |
154 |
- fi |
155 |
- pd="${WORKDIR}"/ipmitool_1.8.18-9.debian-ported-gentoo/ |
156 |
- PATCHES=( |
157 |
- #"${pd}"/0000.0120-openssl1.1.patch |
158 |
- "${pd}"/0001.0100-fix_buf_overflow.patch |
159 |
- "${pd}"/0002.0500-fix_CVE-2011-4339.patch |
160 |
- "${pd}"/0003.0600-manpage_longlines.patch |
161 |
- #"${pd}"/0004.0110-getpass-prototype.patch |
162 |
- #"${pd}"/0005.0115-typo.patch |
163 |
- "${pd}"/0006.0125-nvidia-iana.patch |
164 |
- "${pd}"/0007.0615-manpage_typo.patch |
165 |
- #"${pd}"/0008.0130-Correct_lanplus_segment_violation.patch |
166 |
- "${pd}"/0009.0005-gcc10.patch |
167 |
- #"${pd}"/0010.0010-utf8.patch |
168 |
- ) |
169 |
- for p in "${PATCHES[@]}" ; do |
170 |
- eapply -p1 ${p} || die "failed ${p}" |
171 |
- done |
172 |
- |
173 |
- eautoreconf |
174 |
- |
175 |
- # If this file is not present, then ipmitool will try to download it during make install! |
176 |
- cp -al \ |
177 |
- "${WORKDIR}/enterprise-numbers.2020-10-21" \ |
178 |
- "${S}"/enterprise-numbers \ |
179 |
- || die "Could not place IANA enterprise-numbers" |
180 |
-} |
181 |
- |
182 |
-src_configure() { |
183 |
- # - LIPMI and BMC are the Solaris libs |
184 |
- # - OpenIPMI is unconditionally enabled in the configure as there is compat |
185 |
- # code that is used if the library itself is not available |
186 |
- # FreeIPMI does build now, but is disabled until the other arches keyword it |
187 |
- # `use_enable freeipmi intf-free` \ |
188 |
- # --enable-ipmievd is now unconditional |
189 |
- WGET=/bin/true \ |
190 |
- CURL=/bin/true \ |
191 |
- econf \ |
192 |
- $(use_enable static) \ |
193 |
- --enable-ipmishell \ |
194 |
- --enable-intf-lan \ |
195 |
- --enable-intf-usb \ |
196 |
- $(use_enable openbmc intf-dbus) \ |
197 |
- --enable-intf-lanplus \ |
198 |
- --enable-intf-open \ |
199 |
- --enable-intf-serial \ |
200 |
- --disable-intf-bmc \ |
201 |
- --disable-intf-dummy \ |
202 |
- --disable-intf-free \ |
203 |
- --disable-intf-imb \ |
204 |
- --disable-intf-lipmi \ |
205 |
- --disable-internal-md5 \ |
206 |
- --with-kerneldir=/usr \ |
207 |
- --bindir=/usr/sbin |
208 |
- |
209 |
- # Fix linux/ipmi.h to compile properly. This is a hack since it doesn't |
210 |
- # include the below file to define some things. |
211 |
- echo "#include <asm/byteorder.h>" >>config.h |
212 |
-} |
213 |
- |
214 |
-src_install() { |
215 |
- emake DESTDIR="${D}" PACKAGE="${PF}" install |
216 |
- |
217 |
- into /usr |
218 |
- dosbin contrib/bmclanconf |
219 |
- rm -f "${D}"/usr/share/doc/${PF}/COPYING |
220 |
- docinto contrib |
221 |
- cd "${S}"/contrib |
222 |
- dodoc collect_data.sh create_rrds.sh create_webpage_compact.sh create_webpage.sh README |
223 |
- |
224 |
- newinitd "${FILESDIR}"/${PN}-1.8.9-ipmievd.initd ipmievd |
225 |
- newconfd "${FILESDIR}"/${PN}-1.8.9-ipmievd.confd ipmievd |
226 |
- # TODO: init script for contrib/bmc-snmp-proxy |
227 |
- # TODO: contrib/exchange-bmc-os-info |
228 |
-} |
229 |
|
230 |
diff --git a/sys-apps/ipmitool/ipmitool-1.8.18_p20201004-r2.ebuild b/sys-apps/ipmitool/ipmitool-1.8.18_p20201004-r2.ebuild |
231 |
deleted file mode 100644 |
232 |
index 8b34a72624bb..000000000000 |
233 |
--- a/sys-apps/ipmitool/ipmitool-1.8.18_p20201004-r2.ebuild |
234 |
+++ /dev/null |
235 |
@@ -1,201 +0,0 @@ |
236 |
-# Copyright 1999-2021 Gentoo Authors |
237 |
-# Distributed under the terms of the GNU General Public License v2 |
238 |
- |
239 |
-EAPI=7 |
240 |
- |
241 |
-inherit autotools flag-o-matic systemd |
242 |
- |
243 |
-DESCRIPTION="Utility for controlling IPMI enabled devices" |
244 |
-HOMEPAGE="http://ipmitool.sf.net/" |
245 |
-DEBIAN_PR="9.debian" |
246 |
-DEBIAN_PV="${PV/_p*}" |
247 |
-DEBIAN_P="${PN}_${DEBIAN_PV}" |
248 |
-DEBIAN_PF="${DEBIAN_P}-${DEBIAN_PR}" |
249 |
-COMMIT_ID=7fd7c0f2ba39e223868a8d83d81d4074f057d6fc |
250 |
-if [[ -n "${COMMIT_ID}" ]]; then |
251 |
- S="${WORKDIR}/${PN}-${COMMIT_ID}" |
252 |
- SRC_URI="https://github.com/ipmitool/ipmitool/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz" |
253 |
-else |
254 |
- SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
255 |
-fi |
256 |
-# https://www.iana.org/assignments/enterprise-numbers/enterprise-numbers |
257 |
-# is not available with version numbers or dates! |
258 |
-SRC_URI+=" |
259 |
- https://dev.gentoo.org/~robbat2/distfiles/ipmitool_1.8.18-9.debian-ported-gentoo.tar.xz |
260 |
- https://dev.gentoo.org/~robbat2/distfiles/enterprise-numbers.2020-10-21.xz |
261 |
- " |
262 |
- #http://http.debian.net/debian/pool/main/i/${PN}/${DEBIAN_PF}.tar.xz |
263 |
- # https://launchpad.net/ubuntu/+archive/primary/+files/${DEBIAN_PF}.tar.xz |
264 |
-#IUSE="freeipmi openipmi status" |
265 |
-IUSE="openbmc openipmi static" |
266 |
-SLOT="0" |
267 |
-KEYWORDS="~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86" |
268 |
-LICENSE="BSD" |
269 |
- |
270 |
-RDEPEND=" |
271 |
- dev-libs/openssl:0= |
272 |
- openbmc? ( sys-apps/systemd:0= ) |
273 |
- sys-libs/readline:0=" |
274 |
-DEPEND="${RDEPEND} |
275 |
- >=sys-devel/autoconf-2.69-r5 |
276 |
- openipmi? ( sys-libs/openipmi ) |
277 |
- virtual/os-headers" |
278 |
- #freeipmi? ( sys-libs/freeipmi ) |
279 |
-# ipmitool CAN build against || ( sys-libs/openipmi sys-libs/freeipmi ) |
280 |
-# but it doesn't actually need either. |
281 |
- |
282 |
-PATCHES=( |
283 |
- #"${FILESDIR}"/${P}-openssl-1.1.patch |
284 |
-) |
285 |
- |
286 |
-# I hope all of this will get MUCH cleaner if upstream will just make a new |
287 |
-# release! - robbat2 2020/10/21 |
288 |
-src_prepare() { |
289 |
- default |
290 |
- if [ -d "${S}"/debian ] ; then |
291 |
- mv "${S}"/debian{,.package} |
292 |
- ln -s "${WORKDIR}"/debian "${S}" |
293 |
- eautoreconf |
294 |
- # Upstream commit includes SOME of the debian changes, but not all of them |
295 |
- sed -i \ |
296 |
- -e '/^#/d' \ |
297 |
- -e '/0120-openssl1.1.patch/d' \ |
298 |
- debian/patches/series |
299 |
- for p in $(cat debian/patches/series) ; do |
300 |
- echo ${p} |
301 |
- if ! nonfatal eapply -p1 debian/patches/${p} ; then |
302 |
- echo "failed ${p}" |
303 |
- fail=1 |
304 |
- fi |
305 |
- done |
306 |
- [[ $fail -eq 1 ]] && die "fail" |
307 |
- fi |
308 |
- pd="${WORKDIR}"/ipmitool_1.8.18-9.debian-ported-gentoo/ |
309 |
- PATCHES=( |
310 |
- #"${pd}"/0000.0120-openssl1.1.patch |
311 |
- "${pd}"/0001.0100-fix_buf_overflow.patch |
312 |
- "${pd}"/0002.0500-fix_CVE-2011-4339.patch |
313 |
- "${pd}"/0003.0600-manpage_longlines.patch |
314 |
- #"${pd}"/0004.0110-getpass-prototype.patch |
315 |
- #"${pd}"/0005.0115-typo.patch |
316 |
- "${pd}"/0006.0125-nvidia-iana.patch |
317 |
- "${pd}"/0007.0615-manpage_typo.patch |
318 |
- #"${pd}"/0008.0130-Correct_lanplus_segment_violation.patch |
319 |
- "${pd}"/0009.0005-gcc10.patch |
320 |
- #"${pd}"/0010.0010-utf8.patch |
321 |
- ) |
322 |
- for p in "${PATCHES[@]}" ; do |
323 |
- eapply -p1 ${p} || die "failed ${p}" |
324 |
- done |
325 |
- |
326 |
- # Gentoo chooses to install ipmitool in /usr/sbin |
327 |
- # Where RedHat chooses /usr/bin |
328 |
- sed -i -e \ |
329 |
- 's,/usr/bin/ipmitool,/usr/sbin/ipmitool,g' \ |
330 |
- "${S}"/contrib/* \ |
331 |
- || die "sed bindir failed" |
332 |
- |
333 |
- # Consistent RUNSTATEDIR |
334 |
- sed -i -e \ |
335 |
- 's,/var/run,/run,g' \ |
336 |
- "${S}/doc/ipmievd.8.in" \ |
337 |
- "${S}"/contrib/* \ |
338 |
- "${S}"/lib/helper.c \ |
339 |
- "${S}"/src/ipmievd.c \ |
340 |
- || die "sed /var/run failed" |
341 |
- |
342 |
- eautoreconf |
343 |
- |
344 |
- # If this file is not present, then ipmitool will try to download it during make install! |
345 |
- cp -al \ |
346 |
- "${WORKDIR}/enterprise-numbers.2020-10-21" \ |
347 |
- "${S}"/enterprise-numbers \ |
348 |
- || die "Could not place IANA enterprise-numbers" |
349 |
-} |
350 |
- |
351 |
-src_configure() { |
352 |
- # - LIPMI and BMC are the Solaris libs |
353 |
- # - OpenIPMI is unconditionally enabled in the configure as there is compat |
354 |
- # code that is used if the library itself is not available |
355 |
- # FreeIPMI does build now, but is disabled until the other arches keyword it |
356 |
- # `use_enable freeipmi intf-free` \ |
357 |
- # --enable-ipmievd is now unconditional |
358 |
- |
359 |
- # for pidfiles, runstatedir not respected in all parts of code |
360 |
- append-cppflags -D_PATH_VARRUN=/run/ |
361 |
- |
362 |
- # WGET & CURL are set to avoid network interaction, we manually inject the |
363 |
- # IANA enterprise-numbers file instead. |
364 |
- # |
365 |
- # DEFAULT_INTF=open # default to OpenIPMI, do not take external input |
366 |
- WGET=/bin/true \ |
367 |
- CURL=/bin/true \ |
368 |
- DEFAULT_INTF=open \ |
369 |
- econf \ |
370 |
- $(use_enable static) \ |
371 |
- --enable-ipmishell \ |
372 |
- --enable-intf-lan \ |
373 |
- --enable-intf-usb \ |
374 |
- $(use_enable openbmc intf-dbus) \ |
375 |
- --enable-intf-lanplus \ |
376 |
- --enable-intf-open \ |
377 |
- --enable-intf-serial \ |
378 |
- --disable-intf-bmc \ |
379 |
- --disable-intf-dummy \ |
380 |
- --disable-intf-free \ |
381 |
- --disable-intf-imb \ |
382 |
- --disable-intf-lipmi \ |
383 |
- --disable-internal-md5 \ |
384 |
- --with-kerneldir=/usr \ |
385 |
- --bindir=/usr/sbin \ |
386 |
- --runstatedir=/run \ |
387 |
- CFLAGS="${CFLAGS}" |
388 |
- |
389 |
- # Fix linux/ipmi.h to compile properly. This is a hack since it doesn't |
390 |
- # include the below file to define some things. |
391 |
- echo "#include <asm/byteorder.h>" >>config.h |
392 |
- |
393 |
-} |
394 |
- |
395 |
-src_install() { |
396 |
- emake DESTDIR="${D}" PACKAGE="${PF}" install |
397 |
- rm -f "${D}"/usr/share/doc/${PF}/COPYING |
398 |
- into /usr |
399 |
- |
400 |
- newinitd "${FILESDIR}"/${PN}-1.8.18-ipmievd.initd ipmievd |
401 |
- newconfd "${FILESDIR}"/${PN}-1.8.18-ipmievd.confd ipmievd |
402 |
- |
403 |
- # Everything past this point is installing contrib/ |
404 |
- dosbin contrib/bmclanconf |
405 |
- |
406 |
- exeinto /usr/libexec |
407 |
- doexe contrib/log_bmc.sh |
408 |
- newinitd "${FILESDIR}/log_bmc-1.8.18.initd" log_bmc |
409 |
- |
410 |
- # contrib/exchange-bmc-os-info.init.redhat |
411 |
- # contrib/exchange-bmc-os-info.service.redhat |
412 |
- # contrib/exchange-bmc-os-info.sysconf |
413 |
- exeinto /usr/libexec |
414 |
- newexe contrib/exchange-bmc-os-info.init.redhat exchange-bmc-os-info |
415 |
- insinto /etc/sysconfig |
416 |
- newins contrib/exchange-bmc-os-info.sysconf exchange-bmc-os-info |
417 |
- systemd_newunit contrib/exchange-bmc-os-info.service.redhat exchange-bmc-os-info.service |
418 |
- newinitd "${FILESDIR}/exchange-bmc-os-info-1.8.18.initd" exchange-bmc-os-info |
419 |
- |
420 |
- # contrib/bmc-snmp-proxy |
421 |
- # contrib/bmc-snmp-proxy.service |
422 |
- # contrib/bmc-snmp-proxy.sysconf |
423 |
- exeinto /usr/libexec |
424 |
- doexe contrib/bmc-snmp-proxy |
425 |
- insinto /etc/sysconfig |
426 |
- newins contrib/bmc-snmp-proxy.sysconf bmc-snmp-proxy |
427 |
- systemd_dounit contrib/bmc-snmp-proxy.service |
428 |
- # TODO: initd for bmc-snmp-proxy |
429 |
- |
430 |
- insinto /usr/share/${PN} |
431 |
- doins contrib/oem_ibm_sel_map |
432 |
- |
433 |
- docinto contrib |
434 |
- cd "${S}"/contrib |
435 |
- dodoc collect_data.sh create_rrds.sh create_webpage_compact.sh create_webpage.sh README |
436 |
-} |