1 |
commit: f28e56c8a6fc725ff65d68207e9d2234e9f40273 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 15 01:29:58 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 15 01:51:05 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f28e56c8 |
7 |
|
8 |
sys-apps/ipmiutil: add 3.1.9 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-apps/ipmiutil/Manifest | 1 + |
13 |
sys-apps/ipmiutil/ipmiutil-3.1.9.ebuild | 86 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 87 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/ipmiutil/Manifest b/sys-apps/ipmiutil/Manifest |
17 |
index c01f03c91695..d0c8eb29fdbf 100644 |
18 |
--- a/sys-apps/ipmiutil/Manifest |
19 |
+++ b/sys-apps/ipmiutil/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST ipmiutil-3.1.8.tar.gz 1841037 BLAKE2B 69139fc2b82a701657c5fec6aa928a0ee2d7874a8ebc26631eca438f298e8bddd3afb578462979eb24cd51bd816263f13e9f38fec8b5d6fa4fcefb2519a652c9 SHA512 77a01be420d8362ddce2b2b2bd44ee53a70812b29b3dd7bc5add6429f0e43a48905ca0401e1855f2cca5e69086605eb7b84e2f4bf9cf33251934acc0fe51346f |
22 |
+DIST ipmiutil-3.1.9.tar.gz 1876478 BLAKE2B ddbd4d91d1d09fd9a7d4f7a3f9358787cab1baf3e2f34e43b4ebf44843d9ccc8d8b241b030d0f62a4b183ac4642c6676b304a51b8c6611f69d475dd19c1d3181 SHA512 3c9f60669dd6769dc64977c99d68fc0a0838993fb5ef3d8b1b1026b6daf6e6bfbe8738f3dd120b116fc663c84bafe6ed93420a92fecf57a17785d283b415d9c7 |
23 |
|
24 |
diff --git a/sys-apps/ipmiutil/ipmiutil-3.1.9.ebuild b/sys-apps/ipmiutil/ipmiutil-3.1.9.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..b69658bea04e |
27 |
--- /dev/null |
28 |
+++ b/sys-apps/ipmiutil/ipmiutil-3.1.9.ebuild |
29 |
@@ -0,0 +1,86 @@ |
30 |
+# Copyright 1999-2023 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit autotools systemd |
36 |
+ |
37 |
+DESCRIPTION="IPMI Management Utilities" |
38 |
+HOMEPAGE="http://ipmiutil.sourceforge.net/" |
39 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="BSD" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~hppa ~ppc ~x86" |
44 |
+IUSE="static-libs" |
45 |
+ |
46 |
+RDEPEND=">=dev-libs/openssl-1:=" |
47 |
+DEPEND=" |
48 |
+ ${RDEPEND} |
49 |
+ virtual/os-headers |
50 |
+" |
51 |
+ |
52 |
+PATCHES=( |
53 |
+ "${FILESDIR}"/${PN}-2.9.9-lib_symlink.patch |
54 |
+ "${FILESDIR}"/${PN}-3.1.8-fix-configure.patch |
55 |
+) |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default |
59 |
+ |
60 |
+ # Fix hardcoded CFLAGS |
61 |
+ sed -i \ |
62 |
+ -e 's|-O2 -g|$(CFLAGS)|g' \ |
63 |
+ -e 's|-g -O2|$(CFLAGS)|g' \ |
64 |
+ util/Makefile.am* || die |
65 |
+ |
66 |
+ # The configure script makes some guarded and some blind calls to rpm & |
67 |
+ # rpmbuild, that trigger sandbox warnings if rpm is installed in Gentoo. |
68 |
+ sed -r -i -e 's/which rpm/false &/' configure.ac || die |
69 |
+ sed -r -i -e 's/`(rpm|rpmbuild)/`false \1/' configure.ac || die |
70 |
+ # Don't try to inject -O2 or hardening flags (which we set in the toolchain). |
71 |
+ sed -i -e '/CFLAGS="-O2"/d' -e '/cfhard=/d' configure.ac || die |
72 |
+ |
73 |
+ # Don't compress man pages |
74 |
+ sed '/gzip -nf/d' -i doc/Makefile.am || die |
75 |
+ |
76 |
+ eautoreconf |
77 |
+} |
78 |
+ |
79 |
+src_configure() { |
80 |
+ local myeconfargs=( |
81 |
+ --disable-systemd |
82 |
+ --enable-sha256 |
83 |
+ --enable-lanplus |
84 |
+ ) |
85 |
+ econf "${myeconfargs[@]}" |
86 |
+} |
87 |
+ |
88 |
+src_compile() { |
89 |
+ # Ugly workaround. Upstream is misusing the make system here |
90 |
+ # and it doesn't even work. |
91 |
+ # Please check on each bump if this workaround is still required. |
92 |
+ # Yup, still needed in 3.18 |
93 |
+ pushd lib/lanplus &>/dev/null || die |
94 |
+ emake |
95 |
+ cp libipmi_lanplus.a .. || die |
96 |
+ popd &>/dev/null || die |
97 |
+ |
98 |
+ emake |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ emake DESTDIR="${D}" sysdto="${D}/$(systemd_get_systemunitdir)" install |
103 |
+ dodoc -r AUTHORS ChangeLog NEWS README TODO doc/UserGuide |
104 |
+ |
105 |
+ # Init scripts are only for Fedora |
106 |
+ # TODO: ship OpenRC systems for non-systemd? |
107 |
+ rm -r "${ED}"/etc/init.d || die 'remove initscripts failed' |
108 |
+ |
109 |
+ # --disable-static has no effect |
110 |
+ if ! use static-libs ; then |
111 |
+ find "${ED}" -type f -name '*.a' -delete || die |
112 |
+ fi |
113 |
+ |
114 |
+ keepdir /var/lib/ipmiutil |
115 |
+} |