1 |
commit: 1d20ff6ca2a746f96b668c1b1d5c22ee5b742965 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 1 19:00:01 2018 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 1 19:07:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d20ff6c |
7 |
|
8 |
sys-apps/microcode-ctl: Rev bump for EAPI bump |
9 |
|
10 |
HOMEPAGE and SRC_URI changed from Fedorahosted pagure.io. [Bug 618058] |
11 |
|
12 |
Closes: https://bugs.gentoo.org/618058 |
13 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
14 |
|
15 |
.../microcode-ctl/microcode-ctl-1.28-r2.ebuild | 49 ++++++++++++++++++++++ |
16 |
1 file changed, 49 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/microcode-ctl/microcode-ctl-1.28-r2.ebuild b/sys-apps/microcode-ctl/microcode-ctl-1.28-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..4ca58a10661 |
21 |
--- /dev/null |
22 |
+++ b/sys-apps/microcode-ctl/microcode-ctl-1.28-r2.ebuild |
23 |
@@ -0,0 +1,49 @@ |
24 |
+# Copyright 1999-2018 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI="6" |
28 |
+ |
29 |
+inherit toolchain-funcs versionator |
30 |
+ |
31 |
+MY_P=${PN/-/_}-${PV} |
32 |
+DESCRIPTION="Intel processor microcode update utility" |
33 |
+HOMEPAGE="https://pagure.io/microcode_ctl" |
34 |
+SRC_URI="https://releases.pagure.org/${PN/-/_}/${MY_P}.tar.xz" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="-* ~amd64 ~x86" |
39 |
+IUSE="selinux" |
40 |
+ |
41 |
+DEPEND="" |
42 |
+RDEPEND=">=sys-firmware/intel-microcode-20090330[monolithic(+)] |
43 |
+ selinux? ( sec-policy/selinux-cpucontrol )" |
44 |
+ |
45 |
+S=${WORKDIR}/${MY_P} |
46 |
+ |
47 |
+src_compile() { |
48 |
+ emake \ |
49 |
+ CC="$(tc-getCC)" \ |
50 |
+ CFLAGS="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" |
51 |
+} |
52 |
+ |
53 |
+src_install() { |
54 |
+ dosbin microcode_ctl |
55 |
+ doman microcode_ctl.8 |
56 |
+ dodoc Changelog README |
57 |
+} |
58 |
+ |
59 |
+pkg_preinst() { |
60 |
+ local _v |
61 |
+ for _v in ${REPLACING_VERSIONS}; do |
62 |
+ if ! version_is_at_least 1.28-r1 ${_v}; then |
63 |
+ # This is an upgrade |
64 |
+ elog "The init scripts have been removed as they are unsafe. If you want to update" |
65 |
+ elog "the microcode in your system, please use an initramfs. See bug #528712#41 for" |
66 |
+ elog "details (and bug #557278 for genkernel users)." |
67 |
+ fi |
68 |
+ |
69 |
+ # Show this elog only once |
70 |
+ break |
71 |
+ done |
72 |
+} |