summaryrefslogtreecommitdiff
path: root/sys-apps/smc-sum-driver/smc-sum-driver-1.6.0.20151201-r3.ebuild
blob: c8dba118df7109081fd649a1ba6c4c76613af67c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit 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 contact the Supermicro support at support@supermicro.com,"
	elog "in order to obtain a copy of ${A}"
	elog "and place it in your DISTDIR directory."
}

src_prepare() {
	default

	# Install new Makefile to respect users CFLAGS and LDFLAGS
	cp "${FILESDIR}"/makefile Makefile || die
}

src_compile() {
	BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}"

	linux-mod_src_compile
}