1 |
commit: bb3abd25122e613d4a90aa29f89e7efa8a4cab65 |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 27 00:33:50 2017 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Jun 27 00:38:29 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=bb3abd25 |
7 |
|
8 |
sys-apps/intel-sa-00075-tools: new package |
9 |
|
10 |
musl doesn't have bits/wordsize.h |
11 |
|
12 |
sys-apps/intel-sa-00075-tools/Manifest | 5 ++++ |
13 |
.../files/intel-sa-00075-tools-makefile.patch | 24 +++++++++++++++++++ |
14 |
.../files/intel-sa-00075-tools-wordsize.patch | 11 +++++++++ |
15 |
.../intel-sa-00075-tools-1.0.ebuild | 27 ++++++++++++++++++++++ |
16 |
sys-apps/intel-sa-00075-tools/metadata.xml | 19 +++++++++++++++ |
17 |
5 files changed, 86 insertions(+) |
18 |
|
19 |
diff --git a/sys-apps/intel-sa-00075-tools/Manifest b/sys-apps/intel-sa-00075-tools/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..279647d |
22 |
--- /dev/null |
23 |
+++ b/sys-apps/intel-sa-00075-tools/Manifest |
24 |
@@ -0,0 +1,5 @@ |
25 |
+AUX intel-sa-00075-tools-makefile.patch 620 SHA256 d34bfc1ecf3b46de4a379f44594d522a557fc9e7026fb265dfa1cee7e726357a SHA512 01347eaa8a50731ec21effc80125a6384760e75a954205710b7a813d65e392b2aba002ac521db8ca9fb9cfc1f8a071cf8d988969068415e410987f0473147483 WHIRLPOOL 6300150b18486b10def6a35a3129486b0c045b064e05551ca0944f612ed52de7811ad79321fe6f6739bd5a3ab95f9355c33d18cfd6911755d6483d2edc63be64 |
26 |
+AUX intel-sa-00075-tools-wordsize.patch 570 SHA256 d3a8199f3d530538408ff1bc2ef5e067fa31ded53caf43dd07b2627519bc9f93 SHA512 f98d1d997a21eadfba94c3f93a73df230f2312668ca26a5943cb80db9c383a4d4218fcd13537e4bb0fb27e5217566c7fbad2103ee9a953fda8b191989eaa197f WHIRLPOOL bf60a5e7a86bd0c7be0a1c752526fea843a050b1b3a8b3b63b120f3fdc6fa3ce737804791bdbeb3614e8fe8d14dc387348dcbe7ecad1b1f640ffc088c34af9f9 |
27 |
+DIST intel-sa-00075-tools-1.0.tar.gz 18750 SHA256 1f6f86cb7740285f49c0c2882f7f2ad318cf04adfcbfcb29ffd80e7eb6d03e14 SHA512 a42ee0e1553f4638c2976d8a28feb8c91d5ecb9163608f735406a3c80213f34933231320630f43392552fa69674afb1795f23fffef29b4cad45641827130e86e WHIRLPOOL 3accb57db89d50a558e910d8a1f091cf122f6788b754834caf5a578204cfe2ae25e5aa7231da9c1aaf20ab20f97d5647d78bab76d10d346fed168b782a560aaf |
28 |
+EBUILD intel-sa-00075-tools-1.0.ebuild 725 SHA256 6ca42a8c70ca9b4789a4ea9ba6f4f8f933cc70cf00e1c8b666671acc69b868ab SHA512 153a74f8f0ef424d3beb4028670a74b02dec6262f150908acfdccf0c1991d720c1fadf7a42f3312aec3f9c386b92cd4af6a5bbb281be6cce1d9b27a91eb09581 WHIRLPOOL 5b0fcc7ac0c85f2df8f14594b996fbd5cbc712fb1f497e87e6cde13aa427ff748182c8d0761a0f17ae9a4ff4c4890d17ad8aae4910645bdd9ed8a4eb35a8a316 |
29 |
+MISC metadata.xml 774 SHA256 7aea9b28051c62f79c8b64a6ff7cdd705e233bcf467112d9f0a15d82376154d6 SHA512 8adfad13fe748dce84af7b77094c732f746d5c9564d117b7ae771cf23ae54298e0f6acf9289a8aa7964f2ce356f61a21d330969512220fb0f66f2cece0ab0c63 WHIRLPOOL 3e79d2f4c05b9553558060eb6b2f7defc4589de37ce613fa7d6a1ddf19c4771dc5dd6e9de5d2270c88338bc3173e934446e2481d63788ef797b41d87fb6f9b6a |
30 |
|
31 |
diff --git a/sys-apps/intel-sa-00075-tools/files/intel-sa-00075-tools-makefile.patch b/sys-apps/intel-sa-00075-tools/files/intel-sa-00075-tools-makefile.patch |
32 |
new file mode 100644 |
33 |
index 0000000..3cdf418 |
34 |
--- /dev/null |
35 |
+++ b/sys-apps/intel-sa-00075-tools/files/intel-sa-00075-tools-makefile.patch |
36 |
@@ -0,0 +1,24 @@ |
37 |
+diff --git a/Makefile b/Makefile |
38 |
+index 5ccccff..f58d7bb 100644 |
39 |
+--- a/Makefile |
40 |
++++ b/Makefile |
41 |
+@@ -63,12 +63,12 @@ |
42 |
+ # |
43 |
+ #;****************************************************************************; |
44 |
+ |
45 |
++PREFIX := /usr |
46 |
+ |
47 |
+ PROGS = INTEL-SA-00075-Discovery-Tool \ |
48 |
+ INTEL-SA-00075-Unprovisioning-Tool |
49 |
+ |
50 |
+ all:$(PROGS) |
51 |
+- strip $(PROGS) |
52 |
+ |
53 |
+ INTEL-SA-00075-Discovery-Tool: INTEL-SA-00075-Discovery-Tool.o INTEL-SA-00075.o |
54 |
+ INTEL-SA-00075-Unprovisioning-Tool: INTEL-SA-00075-Unprovisioning-Tool.o INTEL-SA-00075.o |
55 |
+@@ -77,3 +77,5 @@ clean: |
56 |
+ rm -f $(PROGS) |
57 |
+ rm -f *.o |
58 |
+ |
59 |
++install: |
60 |
++ install -D -t $(DESTDIR)$(PREFIX)/sbin/ $(PROGS) |
61 |
|
62 |
diff --git a/sys-apps/intel-sa-00075-tools/files/intel-sa-00075-tools-wordsize.patch b/sys-apps/intel-sa-00075-tools/files/intel-sa-00075-tools-wordsize.patch |
63 |
new file mode 100644 |
64 |
index 0000000..f9725a5 |
65 |
--- /dev/null |
66 |
+++ b/sys-apps/intel-sa-00075-tools/files/intel-sa-00075-tools-wordsize.patch |
67 |
@@ -0,0 +1,11 @@ |
68 |
+diff -Naur INTEL-SA-00075-Linux-Detection-And-Mitigation-Tools-1.0.orig/INTEL-SA-00075.h INTEL-SA-00075-Linux-Detection-And-Mitigation-Tools-1.0/INTEL-SA-00075.h |
69 |
+--- INTEL-SA-00075-Linux-Detection-And-Mitigation-Tools-1.0.orig/INTEL-SA-00075.h 2017-06-20 12:45:46.000000000 -0700 |
70 |
++++ INTEL-SA-00075-Linux-Detection-And-Mitigation-Tools-1.0/INTEL-SA-00075.h 2017-06-26 17:27:03.403349522 -0700 |
71 |
+@@ -72,7 +72,6 @@ |
72 |
+ #include <errno.h> |
73 |
+ #include <stdint.h> |
74 |
+ #include <stdbool.h> |
75 |
+-#include <bits/wordsize.h> |
76 |
+ #include <linux/mei.h> |
77 |
+ |
78 |
+ #define DEFAULT_MEI_DEV_NODE "/dev/mei0" |
79 |
|
80 |
diff --git a/sys-apps/intel-sa-00075-tools/intel-sa-00075-tools-1.0.ebuild b/sys-apps/intel-sa-00075-tools/intel-sa-00075-tools-1.0.ebuild |
81 |
new file mode 100644 |
82 |
index 0000000..3320566 |
83 |
--- /dev/null |
84 |
+++ b/sys-apps/intel-sa-00075-tools/intel-sa-00075-tools-1.0.ebuild |
85 |
@@ -0,0 +1,27 @@ |
86 |
+# Copyright 1999-2017 Gentoo Foundation |
87 |
+# Distributed under the terms of the GNU General Public License v2 |
88 |
+ |
89 |
+EAPI=6 |
90 |
+ |
91 |
+inherit toolchain-funcs |
92 |
+ |
93 |
+MY_PN="INTEL-SA-00075-Linux-Detection-And-Mitigation-Tools" |
94 |
+ |
95 |
+DESCRIPTION="Tools from Intel to detect and mitigate the AMT/MEI vulnerability" |
96 |
+HOMEPAGE="https://downloadcenter.intel.com/download/26799/INTEL-SA-00075-Linux-Detection-and-Mitigation-Tools" |
97 |
+SRC_URI="https://github.com/intel/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
98 |
+ |
99 |
+LICENSE="GPL-2 BSD" |
100 |
+SLOT="0" |
101 |
+KEYWORDS="~amd64 ~x86" |
102 |
+ |
103 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
104 |
+ |
105 |
+PATCHES=( |
106 |
+ "${FILESDIR}/${PN}-makefile.patch" |
107 |
+ "${FILESDIR}/${PN}-wordsize.patch" |
108 |
+) |
109 |
+ |
110 |
+src_compile() { |
111 |
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" |
112 |
+} |
113 |
|
114 |
diff --git a/sys-apps/intel-sa-00075-tools/metadata.xml b/sys-apps/intel-sa-00075-tools/metadata.xml |
115 |
new file mode 100644 |
116 |
index 0000000..bf8d191 |
117 |
--- /dev/null |
118 |
+++ b/sys-apps/intel-sa-00075-tools/metadata.xml |
119 |
@@ -0,0 +1,19 @@ |
120 |
+<?xml version="1.0" encoding="UTF-8"?> |
121 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
122 |
+<pkgmetadata> |
123 |
+ <maintainer type="person"> |
124 |
+ <email>chutzpah@g.o</email> |
125 |
+ <name>Patrick McLean</name> |
126 |
+ </maintainer> |
127 |
+ <longdescription lang="en"> |
128 |
+ The INTEL-SA-00075-Discovery-Tool for local analysis of a single or |
129 |
+ multiple systems. |
130 |
+ |
131 |
+ The INTEL-SA-00075-Unprovisioning-Tool will unprovision computers with |
132 |
+ Intel® Active Management Technology (Intel® AMT), Intel® Standard |
133 |
+ Manageability, and Intel® Small Business Technology (Intel® SBT) that |
134 |
+ are vulnerable to the issue identified in INTEL-SA-00075. This tool |
135 |
+ will allow you to unprovision management features, configured in |
136 |
+ Client Control Mode (CCM). |
137 |
+ </longdescription> |
138 |
+</pkgmetadata> |