diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-03-15 06:20:30 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-03-15 06:20:30 +0000 |
commit | bb007f0b04c719fd2b846d177c3c4739fdb7c318 (patch) | |
tree | 80f756c3d190f4dbf28e8016c211ab618a50ccb9 /sys-apps/ipmiutil | |
parent | 1f048d9b860b8c7b69ac8dd085edc9ee3191b2d5 (diff) |
gentoo auto-resync : 15:03:2023 - 06:20:30
Diffstat (limited to 'sys-apps/ipmiutil')
-rw-r--r-- | sys-apps/ipmiutil/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/ipmiutil/ipmiutil-3.1.9.ebuild | 86 |
2 files changed, 88 insertions, 0 deletions
diff --git a/sys-apps/ipmiutil/Manifest b/sys-apps/ipmiutil/Manifest index 1b3c374bae32..4bf3723be818 100644 --- a/sys-apps/ipmiutil/Manifest +++ b/sys-apps/ipmiutil/Manifest @@ -2,5 +2,7 @@ AUX ipmiutil-2.9.9-lib_symlink.patch 468 BLAKE2B d24e4e0183f46a3a97b9a9db754b494 AUX ipmiutil-3.1.7-flags.patch 708 BLAKE2B 70b96d8de3221d11757ff54957be2153540da78edef549a627983e745064d503d38cd3b95c5640445c1c6ca8cf208d43781e486e1df481a409636dc8d6c4c9f4 SHA512 f0f34b10c65e3ddab56ef757085dcfbaceb1a8b745d8be72e0630fdf7b6da3fadd37f08a9eee814c140419b1e9dda9937690dac67b3f506f36f622076c8119bf AUX ipmiutil-3.1.8-fix-configure.patch 5520 BLAKE2B 62a2f71824c37015e9b5999acaa06780a9e398b4ba74461cb963375c497c0c18e5cbb4b5188aaa5d34521ac0a2153835fda38ffe80a1414d85ecc96da49d114e SHA512 13e58b8516ade13d907462b0eca9ce639ea486740992e1d2f348f17a9ed8deadd1ca7ab0fb2c725e5721f7840119fc5e9b134a8eb842d661d81041f39dd1f6cc DIST ipmiutil-3.1.8.tar.gz 1841037 BLAKE2B 69139fc2b82a701657c5fec6aa928a0ee2d7874a8ebc26631eca438f298e8bddd3afb578462979eb24cd51bd816263f13e9f38fec8b5d6fa4fcefb2519a652c9 SHA512 77a01be420d8362ddce2b2b2bd44ee53a70812b29b3dd7bc5add6429f0e43a48905ca0401e1855f2cca5e69086605eb7b84e2f4bf9cf33251934acc0fe51346f +DIST ipmiutil-3.1.9.tar.gz 1876478 BLAKE2B ddbd4d91d1d09fd9a7d4f7a3f9358787cab1baf3e2f34e43b4ebf44843d9ccc8d8b241b030d0f62a4b183ac4642c6676b304a51b8c6611f69d475dd19c1d3181 SHA512 3c9f60669dd6769dc64977c99d68fc0a0838993fb5ef3d8b1b1026b6daf6e6bfbe8738f3dd120b116fc663c84bafe6ed93420a92fecf57a17785d283b415d9c7 EBUILD ipmiutil-3.1.8.ebuild 1959 BLAKE2B af7c0b6e8ba708259118543d4656da5315dec288915a514e971f8fafa1039b18e1663ccaa520411a68f79090b51a7f102762254a2787b66cb4c036ad3af27d7f SHA512 d0e29b3f3193b3fda36baeb9f5c48dceed26dccc49fcd5cfc377e61ca6890d5dadc07a4015e88027e5d727c36cb280c23f4851d5dcb390f998ee95001182f991 +EBUILD ipmiutil-3.1.9.ebuild 2070 BLAKE2B dafdbf057ef6b69f10259395106c18d140ba401a333fbbe6b8e99e06fe8bfbf5c6aee129cb21355f92e9ff5e7f8cb012e05a28fd7352f3106b9e5843524af0e2 SHA512 122456fda136f9b0863ef82e7664504fe787691aa3824cd3a4b8a7402238036137b516574c0267426cae1b402f4040b25c4dabc38cd625ca00a438331695999c MISC metadata.xml 395 BLAKE2B bbc505300e1bb4a974b8c5f19c43fe9cbfe4300c31a5174adad799cac0d2507e231845ab8f586ca427538b67ad45012aec660692f1a4a134af4e7615467b0ee0 SHA512 170e9a7718037935d373ad84c37f7c87764e30fdb1c2860fa3021021f91dd94adb2d3acb4adfc5cea8d64a7e612340a2286c5a4748f91ed32d603b9c306f3513 diff --git a/sys-apps/ipmiutil/ipmiutil-3.1.9.ebuild b/sys-apps/ipmiutil/ipmiutil-3.1.9.ebuild new file mode 100644 index 000000000000..b69658bea04e --- /dev/null +++ b/sys-apps/ipmiutil/ipmiutil-3.1.9.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools systemd + +DESCRIPTION="IPMI Management Utilities" +HOMEPAGE="http://ipmiutil.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="static-libs" + +RDEPEND=">=dev-libs/openssl-1:=" +DEPEND=" + ${RDEPEND} + virtual/os-headers +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.9.9-lib_symlink.patch + "${FILESDIR}"/${PN}-3.1.8-fix-configure.patch +) + +src_prepare() { + default + + # Fix hardcoded CFLAGS + sed -i \ + -e 's|-O2 -g|$(CFLAGS)|g' \ + -e 's|-g -O2|$(CFLAGS)|g' \ + util/Makefile.am* || die + + # The configure script makes some guarded and some blind calls to rpm & + # rpmbuild, that trigger sandbox warnings if rpm is installed in Gentoo. + sed -r -i -e 's/which rpm/false &/' configure.ac || die + sed -r -i -e 's/`(rpm|rpmbuild)/`false \1/' configure.ac || die + # Don't try to inject -O2 or hardening flags (which we set in the toolchain). + sed -i -e '/CFLAGS="-O2"/d' -e '/cfhard=/d' configure.ac || die + + # Don't compress man pages + sed '/gzip -nf/d' -i doc/Makefile.am || die + + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-systemd + --enable-sha256 + --enable-lanplus + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + # Ugly workaround. Upstream is misusing the make system here + # and it doesn't even work. + # Please check on each bump if this workaround is still required. + # Yup, still needed in 3.18 + pushd lib/lanplus &>/dev/null || die + emake + cp libipmi_lanplus.a .. || die + popd &>/dev/null || die + + emake +} + +src_install() { + emake DESTDIR="${D}" sysdto="${D}/$(systemd_get_systemunitdir)" install + dodoc -r AUTHORS ChangeLog NEWS README TODO doc/UserGuide + + # Init scripts are only for Fedora + # TODO: ship OpenRC systems for non-systemd? + rm -r "${ED}"/etc/init.d || die 'remove initscripts failed' + + # --disable-static has no effect + if ! use static-libs ; then + find "${ED}" -type f -name '*.a' -delete || die + fi + + keepdir /var/lib/ipmiutil +} |