You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/smc-sum-driver/smc-sum-driver-1.6.0.201512...

42 lines
886 B

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eapi7-ver linux-mod
MY_DATE="$(ver_cut 4)"
MY_PN="${PN//-/_}"
MY_PV="$(ver_cut 1-3)"
MY_P="${MY_PN/smc_/}_V${MY_PV}"
DESCRIPTION="Supermicro Update Manager (SUM) kernel module"
HOMEPAGE="https://www.supermicro.com"
SRC_URI="${MY_P}_${MY_DATE}.tar.gz"
KEYWORDS="-* ~amd64 ~x86"
LICENSE="supermicro"
SLOT="0"
RESTRICT="bindist fetch mirror"
S="${WORKDIR}"/${MY_P}/Linux
BUILD_TARGETS="default"
MODULE_NAMES="sum_bios(misc:${S})"
pkg_nofetch() {
elog "Please download ${A} from"
elog "sftp://dataharbor.supermicro.com"
elog "Username: dpguest\$ts"
elog "Password: supermicro!@#"
elog "and place it in your DISTDIR directory."
}
src_prepare() {
# Install new Makefile to respect users CFLAGS and LDFLAGS
cp "${FILESDIR}"/makefile Makefile
default
}