diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /sys-apps/ipmiutil | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'sys-apps/ipmiutil')
-rw-r--r-- | sys-apps/ipmiutil/Manifest | 3 | ||||
-rw-r--r-- | sys-apps/ipmiutil/files/ipmiutil-3.1.8-fix-configure.patch | 170 | ||||
-rw-r--r-- | sys-apps/ipmiutil/ipmiutil-3.1.8.ebuild | 81 |
3 files changed, 254 insertions, 0 deletions
diff --git a/sys-apps/ipmiutil/Manifest b/sys-apps/ipmiutil/Manifest index ad9c311a7c67..7b1a3f36d3de 100644 --- a/sys-apps/ipmiutil/Manifest +++ b/sys-apps/ipmiutil/Manifest @@ -3,12 +3,15 @@ AUX ipmiutil-2.9.9-lib_symlink.patch 468 BLAKE2B d24e4e0183f46a3a97b9a9db754b494 AUX ipmiutil-3.1.5-fix-configure.patch 5817 BLAKE2B 3a953a03d495a453d99dae70ea29ed95e03ee5d4da6a1a2aab42bda289f43725fff9a5721d7a08538f9a5f35b36ae956e5da493a50301fdaf487a8aef05ca0ba SHA512 c1f2c13f1aafc4244b1a3cdf2da23d4ff9e982613063b2e8995c0003db6cb31e1facce9d590725f5e02789fcd62c3b334ce20e1b8815b99c002bc2f90d9fa065 AUX ipmiutil-3.1.7-fix-configure.patch 5872 BLAKE2B 6058c5f3cd3d389dec152649098925d8fd4aa4dab22f11924cc006dba44eeb5254b7b5a10eaf202d496e7da4e71b69c984553fda730708ffdc0b7bacf0a46dfa SHA512 0d47df5c1599f16228819325c666b2ed9f0c85617af8ce6a0be5496403ae0ce8d5548302ad8b9315105ec8a1a54cd4b46636e5ee21539b813b35ed4fd78f86a2 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.0.6.tar.gz 1692679 BLAKE2B dcc02dbb5467b824005dbc95c8f5231b2e2758e7600231c1c3fc31c1207cff0540400857dd1bfa83fc8b033fe0277ab23c6013f110744bff57fe4bc7b89174f9 SHA512 0c47246b7aa6a060091745d36e33aae07e7907dcad5fefb1759aac62adf48316915ce5818d2f9241e24b73be13e54fbb57046234a69c60ce56f41a933915580f DIST ipmiutil-3.0.9.tar.gz 1697688 BLAKE2B 93ed8865cae1cea0ea4f7de4683f4698e3f75e9190cc7e0af1832ca44a08f52aa149393761f1ede3994827db78841061d54058bbe4178b5930accd3a4c225ba7 SHA512 c2c0a516216a46a52621159e665a77d96cf81f385fc9cf19877e72283be3e1a4dad5a4826454727b71576c22cc4de3c73ff428d26f35bf496c7dc1511305cda3 DIST ipmiutil-3.1.6.tar.gz 1693461 BLAKE2B efc2b283d7655b8afb9d3d8da2e5458deea1c1b939f3ccdf2be0cdf3792ea60229099cce1b8e32f087972385feb01d604f1c63bddbfd031210d5acf8a6b1b9d7 SHA512 9bccfa2e0bba7f30e422d67f93ee6cff50c08cc8bceab5ba5bfd1b0a91e1af8a4a98a2eaa81364e8a1f38e0bd1ce6b99717d86957c6f689aa7329e7013f5b0ef DIST ipmiutil-3.1.7.tar.gz 1726396 BLAKE2B 7fa31f8aca61462fc08dd4fe420e27eecce2ee9fa5fb2676eb944e2ae6c09598aec5f06d59e4ed02faab077003b14085f944b6cf0b63f90b10f2660f363e997b SHA512 7522808e4a94c8627de0a95dde0e3eb463ba05948159b5181129b573ce8f9feba3543ef603c14e7cdcafcbd58ca5319536cc5534ea8191cce0ef9d33cc548274 +DIST ipmiutil-3.1.8.tar.gz 1841037 BLAKE2B 69139fc2b82a701657c5fec6aa928a0ee2d7874a8ebc26631eca438f298e8bddd3afb578462979eb24cd51bd816263f13e9f38fec8b5d6fa4fcefb2519a652c9 SHA512 77a01be420d8362ddce2b2b2bd44ee53a70812b29b3dd7bc5add6429f0e43a48905ca0401e1855f2cca5e69086605eb7b84e2f4bf9cf33251934acc0fe51346f EBUILD ipmiutil-3.0.6.ebuild 1304 BLAKE2B a1ce20853a9c2e29fe289bba096bbfb74beac4009630e9e7a36af13c69b98a0a48a0c86db4516fb179e5b8887576e832d1a81a921fde56c559906dbdfbfccea7 SHA512 a13dc0bd8546e321c84e942c9137d6e8f64e5df99c7a3aa41b090c116ad352aa631d51c7078e2c063004e20e10e86b3b26473ab209a81b9fca99776226812cbb EBUILD ipmiutil-3.0.9.ebuild 1401 BLAKE2B dd45a5580ccc8aad7f329985bf3fe6e3d68a95a54bf345cadfec84cf77fc6b65c073b8a31ececa88d7caa0dba94cf0bbeb882aee6cb13e56c496818a291d5074 SHA512 a8dec8237051be08002fa96517a8a322e213e08bd04f18249d2ee174d892cb4bd49d290d3f4f9b8e3ff5b73a1f3b05d4b1129699de8443b3834278e301a855f9 EBUILD ipmiutil-3.1.6.ebuild 1575 BLAKE2B 16cb959c4a276eaaeefa96584c1915c3c182a9f03ea8c2269e1b6221f7bab84cb9433db59a3c293350ae9f473f48544008b52f569b9cc67170eebbdefee1d898 SHA512 6cca689fd814b1fb3f4939f1b8a34902c9ff4c41834053ded5cf7f051b134e0ce5c946b51da6b855ff8bcd828c9e7d55d1c79fd9eb32e50544db22037344c63c EBUILD ipmiutil-3.1.7.ebuild 1657 BLAKE2B d40ba9d2aa612b8ef9c9e52c8d4c702bda5800f8f6042afd6b7f08e862ffc51247a41cff79c43b3595adb887b5ffc809cdb78536b5eda0d030acab1e4efc6099 SHA512 d5fe935fd756afbfda7af92cb84349693bc9f75855b2030d4218ed6336375459e9a3e70cf6320915f05fa694b55d3c3fa1495b965089d03b68e9815ce632f15b +EBUILD ipmiutil-3.1.8.ebuild 1961 BLAKE2B 377059c8a5c7aa0cc2957f667eabf1b5e49f0f2a5fba8518d796b6df93d1b278e45f48e5ab0bdb92b55478a2c3ce75029e0fb5e1e258775ab6e250eb8d97e2ba SHA512 e9cdc6c21fe607e241f13a3b66952e38647267ed66fb4c3bc118e63893473222f7d0038498bef4e021a36688f36c281c7a3b0ba76d42793dc0f0cb945529236b MISC metadata.xml 395 BLAKE2B bbc505300e1bb4a974b8c5f19c43fe9cbfe4300c31a5174adad799cac0d2507e231845ab8f586ca427538b67ad45012aec660692f1a4a134af4e7615467b0ee0 SHA512 170e9a7718037935d373ad84c37f7c87764e30fdb1c2860fa3021021f91dd94adb2d3acb4adfc5cea8d64a7e612340a2286c5a4748f91ed32d603b9c306f3513 diff --git a/sys-apps/ipmiutil/files/ipmiutil-3.1.8-fix-configure.patch b/sys-apps/ipmiutil/files/ipmiutil-3.1.8-fix-configure.patch new file mode 100644 index 000000000000..f59701079828 --- /dev/null +++ b/sys-apps/ipmiutil/files/ipmiutil-3.1.8-fix-configure.patch @@ -0,0 +1,170 @@ +Fix automagic configure options. + +--- ipmiutil-3.1.8.orig/configure.ac 2022-05-05 20:48:27.180318912 -0700 ++++ ipmiutil-3.1.8/configure.ac 2022-05-05 20:53:10.070503250 -0700 +@@ -80,22 +80,30 @@ + # fi] + + drv_landesk=0 ++LANDESK_CFLAGS="" ++LANDESK_LDADD="" + dnl configure for LANDESK libipmiapi or not + AC_ARG_ENABLE([landesk], +- [ --enable-landesk adds landesk library support [[default=no]]], +- [if test "x$enableval" = "xyes"; then ++ AS_HELP_STRING([--enable-landesk], [enable landesk support (default=no)]), ++ [], ++ [enable_landesk=no] ++) ++AS_IF([test "x$enable_landesk" = "xyes"], [ + drv_landesk=1 + LANDESK_CFLAGS="-DLINK_LANDESK" + LANDESK_LDADD="-lipmiapi -L../lib" + AC_SUBST(LANDESK_CFLAGS) + AC_SUBST(LANDESK_LDADD) +- fi] +- ) ++ echo "landesk enabled" ++]) + + dnl Configure ipmiutil for lanplus (libipmi_lanplus.a) or not (default yes) + AC_ARG_ENABLE([lanplus], +- [ --disable-lanplus disable lanplus support [[default=enabled]]],) +-if test "x$enable_lanplus" = "xno"; then ++ AS_HELP_STRING([--disable-lanplus], [enable lanplus support (default=yes)]), ++ [], ++ [enable_lanplus=yes] ++) ++ + drv_lanplus="" + LANPLUS_CFLAGS="" + LANPLUS_LDADD="" +@@ -103,8 +111,7 @@ + LANPLUS_CRYPTO="" + LANPLUS_SAM="no" + LD_SAMX="" +- echo "lanplus disabled" +-else ++AS_IF([test "x$enable_lanplus" = "xyes"], [ + drv_lanplus="lanplus" + LANPLUS_CFLAGS="-DHAVE_LANPLUS" + # LANPLUS_CFLAGS="-DHAVE_LANPLUS -I${projdir}/lib/lanplus/inc" +@@ -115,7 +122,7 @@ + LANPLUS_SAM="yes" + LD_SAMX="../lib/libipmi_lanplus.a -lcrypto" + echo "lanplus enabled" +-fi ++]) + + dnl Configure libipmiutil.a for lanplus or not + dnl Only SOL requires lanplus, so usually build libipmiutil.a without lanplus +@@ -130,21 +137,28 @@ + #fi + + # strings /lib/libssl.so* |grep EVP_sha256 +-dnl configure for SHA256, build lanplus with SHA256 support, uses later openssl. ++dnl configure for SHA256, build lanplus with SHA256 support ++dnl requires openssl-1.0.1 which was released in 2012/03 + AC_ARG_ENABLE([sha256], +- [ --enable-sha256 build with SHA256 support, requires later openssl.], +- [if test "x$enableval" = "xyes"; then +- LANPLUS_CFLAGS="$LANPLUS_CFLAGS -DHAVE_SHA256" +- fi] ++ AS_HELP_STRING([--disable-sha256], [build with SHA256 support (default=yes)]), ++ dnl action if passed ++ [], ++ dnl action if not passed ++ [enable_sha256=yes] + ) ++AS_IF([test "x$enable_sha256" = "xyes"], [ ++ LANPLUS_CFLAGS="$LANPLUS_CFLAGS -DHAVE_SHA256" ++]) + + dnl configure for EKANALYZER, build with ekanalyzer function enabled + AC_ARG_ENABLE([ekanalyzer], +- [ --enable-ekanalyzer build with ekanalyzer function enabled.], +- [if test "x$enableval" = "xyes"; then +- OS_CFLAGS="$OS_CFLAGS -DHAVE_EKANAL" +- fi] ++ AS_HELP_STRING([--enable-ekanalyzer], [build with ekanalyzer function enabled.]), ++ [], ++ [enable_ekanalyzer=no] + ) ++AS_IF([test "x$enable_ekanalyzer" = "xyes"], [ ++ OS_CFLAGS="$OS_CFLAGS -DHAVE_EKANAL" ++ ]) + + GPL_CFLAGS="" + CROSS_LFLAGS="" +@@ -154,17 +168,20 @@ + SYSTEMD_DIR=/usr/share/ipmiutil + + AC_ARG_ENABLE([useflags], +- [ --enable-useflags include environment CFLAGS and LDFLAGS.], +- [if test "x$enableval" = "xyes"; then ++ AS_HELP_STRING([--enable-useflags], [include environment CFLAGS and LDFLAGS.]), ++ [], ++ [enable_useflags=no]) ++AS_IF([test "x$enable_useflags" = "xyes"], [ + CROSS_CFLAGS="$CFLAGS" + CROSS_LFLAGS="$LDFLAGS" +- fi] +- ) ++]) + + dnl configure for standalone, with no lanplus or GPL libs + AC_ARG_ENABLE([standalone], +- [ --enable-standalone build standalone, with no GPL or LanPlus libs.], +- [if test "x$enableval" = "xyes"; then ++ AS_HELP_STRING([--enable-standalone], [build standalone, with no GPL or LanPlus libs.]), ++ [], ++ [enable_standalone=no]) ++AS_IF([test "x$enable_standalone" = "xyes"], [ + GPL_CFLAGS="" + LANPLUS_CFLAGS="" + LANPLUS_LDADD="" +@@ -178,10 +195,11 @@ + # cross-compiling, so link with -static (e.g. Android ARM) + CROSS_LFLAGS="-static" + CROSS_CFLAGS="-DCROSS_COMPILE" ++ # TODO: how can this be effective? Configure only converts Makefile.in -> Makefile ++ # Configure does not convert Makefile.am->Makefile.in + sed -i -e 's/^# ipmiutil: $(METASOURCE:.c=.o)/ipmiutil:\t$(METASOURCE:.c=.o)\n\t$(CC) $(CFLAGS) $(LDFLAGS) -o ipmiutil $(METASOURCE:.c=.o) $(LDADD)/' util/Makefile.am + fi +- fi] +- ) ++ ]) + + AC_ARG_ENABLE([doc], + [ --enable-doc build with documentation [[default=yes]]], +@@ -194,20 +212,22 @@ + + dnl build libipmiutil with sensor modules + AC_ARG_ENABLE([libsensors], +- [ --enable-libsensors build libipmiutil with sensor modules [[default=no]]], +- [if test "x$enableval" = "xyes"; then ++ AS_HELP_STRING([--enable-libsensors], [build libipmiutil with sensor modules (default=no)]), ++ [], ++ [enable_libsensors=no]) ++AS_IF([test "x$enable_libsensors" = "xyes"], [ + LIBSENSORS="isensor2.o ievents2.o" + SAM2OBJ="" +- fi] +- ) ++ ]) + + dnl configure for GPL build or not (GPL files: md2.h, ipmi_ioctl.h) + AC_ARG_ENABLE([gpl], +- [ --enable-gpl build with some GPL code [[default=no]]], +- [if test "x$enableval" = "xyes"; then ++ AS_HELP_STRING([--enable-gpl], [build with some GPL code (default=no)]), ++ [], ++ [enable_gpl=no]) ++AS_IF([test "x$enable_gpl" = "xyes"], [ + GPL_CFLAGS="-DALLOW_GPL" +- fi] +- ) ++ ]) + + dnl Does this Linux have systemd enabled? Otherwise use sysv init. + AC_ARG_ENABLE([systemd], diff --git a/sys-apps/ipmiutil/ipmiutil-3.1.8.ebuild b/sys-apps/ipmiutil/ipmiutil-3.1.8.ebuild new file mode 100644 index 000000000000..45f547fdfb09 --- /dev/null +++ b/sys-apps/ipmiutil/ipmiutil-3.1.8.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +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:0=" +DEPEND="${RDEPEND} + virtual/os-headers" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.7-flags.patch + "${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 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 +} |