1 |
commit: 9efab7781edd50a7a29f00f265318b9595c69eba |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 24 13:56:33 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 24 14:29:45 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9efab778 |
7 |
|
8 |
sys-apps/dmidecode: Bump to version 3.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
sys-apps/dmidecode/Manifest | 1 + |
13 |
sys-apps/dmidecode/dmidecode-3.1.ebuild | 42 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 43 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/dmidecode/Manifest b/sys-apps/dmidecode/Manifest |
17 |
index 12c581da92e..aafa152f656 100644 |
18 |
--- a/sys-apps/dmidecode/Manifest |
19 |
+++ b/sys-apps/dmidecode/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST dmidecode-2.12.tar.bz2 55191 SHA256 913ff3055d563a62a420789b8ee33b038de9afa18ea61254760ddf8ab87a5088 SHA512 15d5a6dca04de48267f969f6866079915964a8a3abad083b1720a4425723f9c100770d05c0d475df9609c5b54741f231a587761d1beb1ae6de4b2836d60724c4 WHIRLPOOL 139841a9efd07ecfcb012a24e2c3ea00c79d66828a5d5aa1eeb8b230c1b84f310e5f9282403af9f530f7ead41922f7a3e8a6e8b93e46d7403d69975b95d6a406 |
22 |
DIST dmidecode-3.0.tar.xz 58704 SHA256 7ec35bb193729c1d593a1460b59d82d24b89102ab23fd0416e6cf4325d077e45 SHA512 fa31190e43ae7a0b61f6313b45f5eba3ab66390accd587129419e48fca931b631cbb331d6893cf0c1bfca94c86ff8c557215166e0881dee93b3af10a86878eb1 WHIRLPOOL 91f8b26c272fbaa06699f3cdb593a731a0d1e777ba81ee432192e41c1f2edda764ed990b570c2dc2fc44d6ce324d5a252c01308811717db1cd2baebe98b7e176 |
23 |
+DIST dmidecode-3.1.tar.xz 61204 SHA256 d766ce9b25548c59b1e7e930505b4cad9a7bb0b904a1a391fbb604d529781ac0 SHA512 226557ad5747a2a2eb54a938543373b9ddcff032d330ca3b9a066cc81c0e137028f606ffedc042e0220b523346e2f2f7abb0e4b8b34a8bd173719aa858519de9 WHIRLPOOL 96b92aed81cdedec498b2e3f20cd282310b0bd63545ce6200d187f583851e684f877f9dd7f5b916aa5b2e2efd215271f9951acc2073da0d2f35d5f129295014c |
24 |
|
25 |
diff --git a/sys-apps/dmidecode/dmidecode-3.1.ebuild b/sys-apps/dmidecode/dmidecode-3.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..1982039343e |
28 |
--- /dev/null |
29 |
+++ b/sys-apps/dmidecode/dmidecode-3.1.ebuild |
30 |
@@ -0,0 +1,42 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+inherit flag-o-matic toolchain-funcs eutils |
37 |
+ |
38 |
+DESCRIPTION="DMI (Desktop Management Interface) table related utilities" |
39 |
+HOMEPAGE="http://www.nongnu.org/dmidecode/" |
40 |
+SRC_URI="https://savannah.nongnu.org/download/${PN}/${P}.tar.xz" |
41 |
+ |
42 |
+LICENSE="GPL-2" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="-* ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-solaris" |
45 |
+IUSE="selinux" |
46 |
+ |
47 |
+RDEPEND="selinux? ( sec-policy/selinux-dmidecode )" |
48 |
+DEPEND="" |
49 |
+ |
50 |
+src_prepare() { |
51 |
+ sed -i \ |
52 |
+ -e "/^prefix/s:/usr/local:${EPREFIX}/usr:" \ |
53 |
+ -e "/^docdir/s:dmidecode:${PF}:" \ |
54 |
+ -e '/^PROGRAMS !=/d' \ |
55 |
+ Makefile || die |
56 |
+} |
57 |
+ |
58 |
+src_compile() { |
59 |
+ emake \ |
60 |
+ CFLAGS="${CFLAGS} ${CPPFLAGS}" \ |
61 |
+ LDFLAGS="${LDFLAGS}" \ |
62 |
+ CC="$(tc-getCC)" |
63 |
+} |
64 |
+ |
65 |
+pkg_postinst() { |
66 |
+ if [[ ${CHOST} == *-solaris* ]] ; then |
67 |
+ einfo "dmidecode needs root privileges to read /dev/xsvc" |
68 |
+ einfo "To make dmidecode useful, either run as root, or chown and setuid the binary." |
69 |
+ einfo "Note that /usr/sbin/ptrconf and /usr/sbin/ptrdiag give similar" |
70 |
+ einfo "information without requiring root privileges." |
71 |
+ fi |
72 |
+} |