Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/dmidecode/
Date: Mon, 17 Sep 2018 07:56:57
Message-Id: 1537171002.d33ea761e24053b6c17ec3dfd0229d6c793f330d.polynomial-c@gentoo
1 commit: d33ea761e24053b6c17ec3dfd0229d6c793f330d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 17 07:56:42 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 17 07:56:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d33ea761
7
8 sys-apps/dmidecode: Bump to version 3.2
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 sys-apps/dmidecode/Manifest | 1 +
13 sys-apps/dmidecode/dmidecode-3.2.ebuild | 43 +++++++++++++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/sys-apps/dmidecode/Manifest b/sys-apps/dmidecode/Manifest
17 index aac071b4c3d..0dbdb951ec6 100644
18 --- a/sys-apps/dmidecode/Manifest
19 +++ b/sys-apps/dmidecode/Manifest
20 @@ -1 +1,2 @@
21 DIST dmidecode-3.1.tar.xz 61204 BLAKE2B 439e265dd3f7b225d61b5d4228c0a77b25dd44b5d3672fdd9bbe432f5ae59ac23d2abd80e40621cda934643c9819b05f34d4f5befc8a75b93ae1840caf717cea SHA512 226557ad5747a2a2eb54a938543373b9ddcff032d330ca3b9a066cc81c0e137028f606ffedc042e0220b523346e2f2f7abb0e4b8b34a8bd173719aa858519de9
22 +DIST dmidecode-3.2.tar.xz 54440 BLAKE2B ff5b891b28231bc50657e6fe1fa1345171109ce9baf7fa4558ced482a0616be4206ef69dcf3909611475d543b12691cc2bfe4849d8e3d35b34d1bfffe600af21 SHA512 b080c73fbda756109f0f29935c641e0b32ea9ffe90f0a8254164c9c1ff5617d042347298e6bac31e5463e94fa56efe2b2743238156d878254fc77120e6dc1a18
23
24 diff --git a/sys-apps/dmidecode/dmidecode-3.2.ebuild b/sys-apps/dmidecode/dmidecode-3.2.ebuild
25 new file mode 100644
26 index 00000000000..3d98eebf5a0
27 --- /dev/null
28 +++ b/sys-apps/dmidecode/dmidecode-3.2.ebuild
29 @@ -0,0 +1,43 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +inherit flag-o-matic toolchain-funcs
36 +
37 +DESCRIPTION="DMI (Desktop Management Interface) table related utilities"
38 +HOMEPAGE="https://www.nongnu.org/dmidecode/"
39 +SRC_URI="https://savannah.nongnu.org/download/${PN}/${P}.tar.xz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="-* ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-solaris"
44 +IUSE="selinux"
45 +
46 +RDEPEND="selinux? ( sec-policy/selinux-dmidecode )"
47 +DEPEND=""
48 +
49 +src_prepare() {
50 + default
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 +}