diff options
author | 2020-01-25 23:02:39 -0800 | |
---|---|---|
committer | 2020-01-25 23:05:17 -0800 | |
commit | c993d81e783d0ba769c341e67e7f0419131d3d3a (patch) | |
tree | 0e0f55d087015e0eb1f8eaed16728254a9343a49 /sys-apps/ipmiutil/ipmiutil-3.1.5-r1.ebuild | |
parent | net-im/telegram-desktop: add missing range-v3 dep (diff) | |
download | gentoo-c993d81e783d0ba769c341e67e7f0419131d3d3a.tar.gz gentoo-c993d81e783d0ba769c341e67e7f0419131d3d3a.tar.bz2 gentoo-c993d81e783d0ba769c341e67e7f0419131d3d3a.zip |
sys-apps/ipmiutil: bump & fix broken upstream configure for lanplus
Upstream 2.1.4 release broke the lanplus selection in configure.ac, this
is fixed patch ipmiutil-3.1.5-fix-configure.patch which has been
submitted upstream.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'sys-apps/ipmiutil/ipmiutil-3.1.5-r1.ebuild')
-rw-r--r-- | sys-apps/ipmiutil/ipmiutil-3.1.5-r1.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/sys-apps/ipmiutil/ipmiutil-3.1.5-r1.ebuild b/sys-apps/ipmiutil/ipmiutil-3.1.5-r1.ebuild new file mode 100644 index 000000000000..dd9d9ba74e65 --- /dev/null +++ b/sys-apps/ipmiutil/ipmiutil-3.1.5-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2019 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}-2.9.8-flags.patch + "${FILESDIR}"/${PN}-2.9.9-lib_symlink.patch + "${FILESDIR}"/${PN}-3.1.5-fix-configure.patch +) + +src_prepare() { + default + + sed -i -e 's|-O2 -g|$(CFLAGS)|g;s|-g -O2|$(CFLAGS)|g' util/Makefile.am* || die + sed -i -e 's|which rpm |which we_are_gentoo_rpm_is_a_guest |' configure.ac || die + + # Don't compress man pages + sed '/gzip -f/d' -i doc/Makefile.am || die + + eautoreconf +} + +src_configure() { + econf --disable-systemd --enable-sha256 --enable-lanplus +} + +src_compile() { + # Ulgy 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. + 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 + rm -r "${ED}"/etc/init.d || die 'remove initscripts failed' + + if ! use static-libs ; then + find "${ED}" -type f -name '*.a' -delete || die + fi + + keepdir /var/lib/ipmiutil +} |