1 |
commit: e918cf72c007c47bf37e222448aad3514891aecd |
2 |
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com> |
3 |
AuthorDate: Fri Sep 6 21:20:45 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 8 20:38:48 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e918cf72 |
7 |
|
8 |
sys-apps/smc-sum-driver: use correct kernel for compilation |
9 |
|
10 |
Pass correct options for compiling against the correct kernel version. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/693528 |
13 |
Package-Manager: Portage-2.3.72, Repoman-2.3.17 |
14 |
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com> |
15 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
16 |
|
17 |
.../smc-sum-driver-1.6.0.20151201-r3.ebuild | 45 ++++++++++++++++++++++ |
18 |
1 file changed, 45 insertions(+) |
19 |
|
20 |
diff --git a/sys-apps/smc-sum-driver/smc-sum-driver-1.6.0.20151201-r3.ebuild b/sys-apps/smc-sum-driver/smc-sum-driver-1.6.0.20151201-r3.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..d9f03bc988e |
23 |
--- /dev/null |
24 |
+++ b/sys-apps/smc-sum-driver/smc-sum-driver-1.6.0.20151201-r3.ebuild |
25 |
@@ -0,0 +1,45 @@ |
26 |
+# Copyright 1999-2019 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+inherit linux-mod |
32 |
+ |
33 |
+MY_DATE="$(ver_cut 4)" |
34 |
+MY_PN="${PN//-/_}" |
35 |
+MY_PV="$(ver_cut 1-3)" |
36 |
+MY_P="${MY_PN/smc_/}_V${MY_PV}" |
37 |
+ |
38 |
+DESCRIPTION="Supermicro Update Manager (SUM) kernel module" |
39 |
+HOMEPAGE="https://www.supermicro.com" |
40 |
+SRC_URI="${MY_P}_${MY_DATE}.tar.gz" |
41 |
+ |
42 |
+KEYWORDS="-* ~amd64 ~x86" |
43 |
+LICENSE="supermicro" |
44 |
+SLOT="0" |
45 |
+ |
46 |
+RESTRICT="bindist fetch mirror" |
47 |
+ |
48 |
+S="${WORKDIR}"/${MY_P}/Linux |
49 |
+ |
50 |
+BUILD_TARGETS="default" |
51 |
+MODULE_NAMES="sum_bios(misc:${S})" |
52 |
+ |
53 |
+pkg_nofetch() { |
54 |
+ elog "Please contact the Supermicro support at support@××××××××××.com," |
55 |
+ elog "in order to obtain a copy of ${A}" |
56 |
+ elog "and place it in your DISTDIR directory." |
57 |
+} |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ default |
61 |
+ |
62 |
+ # Install new Makefile to respect users CFLAGS and LDFLAGS |
63 |
+ cp "${FILESDIR}"/makefile Makefile |
64 |
+} |
65 |
+ |
66 |
+src_compile() { |
67 |
+ BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}" |
68 |
+ |
69 |
+ linux-mod_src_compile |
70 |
+} |