# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="6" MY_PN="IPMICFG" MY_PV="160715" DESCRIPTION="IPMICFG is an in-band utility for configuring Supermicro IPMI devices" HOMEPAGE="http://www.supermicro.com/" SRC_URI="ftp://ftp.supermicro.com/utility/${MY_PN}/${MY_PN}_${PV}_build.${MY_PV}.zip" LICENSE="supermicro" SLOT="0" KEYWORDS="-* ~amd64 ~x86" RESTRICT="installsources fetch mirror strip" S="${WORKDIR}/${MY_PN}_${PV}_build.${MY_PV}/Linux" pkg_nofetch() { elog "Please download ${A}" elog "from ${HOMEPAGE}SwDownload/UserInfo.aspx?sw=0&cat=IPMI" elog "and place this file in ${DISTDIR}" } src_install() { insinto /opt/${PN} if use amd64; then doins 64bit/*.dat fi if use x86; then doins 32bit/*.dat fi exeinto /opt/${PN} if use amd64; then doexe 64bit/${MY_PN}-Linux.x86_64 fi if use x86; then doexe 32bit/${MY_PN}-Linux.x86 fi dodir /opt/bin if use amd64; then dosym ../${PN}/${MY_PN}-Linux.x86_64 /opt/bin/ipmicfg fi if use x86; then dosym ../${PN}/${MY_PN}-Linux.x86 /opt/bin/ipmicfg fi }