public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/dmidecode/
Date: Wed, 24 Apr 2024 12:48:58 +0000 (UTC)	[thread overview]
Message-ID: <1713962922.e2d84cd3b46aecb9b7e5156355c97f86813debef.sam@gentoo> (raw)

commit:     e2d84cd3b46aecb9b7e5156355c97f86813debef
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 24 12:45:14 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Apr 24 12:48:42 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2d84cd3

sys-apps/dmidecode: add 3.6

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/dmidecode/Manifest             |  1 +
 sys-apps/dmidecode/dmidecode-3.6.ebuild | 63 +++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/sys-apps/dmidecode/Manifest b/sys-apps/dmidecode/Manifest
index 3cbad40a4371..4ea1995771a9 100644
--- a/sys-apps/dmidecode/Manifest
+++ b/sys-apps/dmidecode/Manifest
@@ -1,3 +1,4 @@
 DIST dmidecode-3.5-80de376231e903d2cbea95e51ffea31860502159.patch 1762 BLAKE2B b3b1d4232ab8089cfd405f5bf88a9e5eab7be244b70c3af663b33836c0e2d7c7bc01affa41e826ff0129b66afd6a066f51a722d8a0ab64c42990a1d1440285c4 SHA512 cb7cc66e608bfd67d1db6ba96e887b06c11526956819ea48c378edbb93af139600b41501330ae936bfbe333de461265b51d680170fb044b29d70fedfeb47f52a
 DIST dmidecode-3.5-c76ddda0ba0aa99a55945e3290095c2ec493c892.patch 1933 BLAKE2B e3aff73dc780d3d6b92a9d0de05906a620657664c3b30d40bc10a57e29522e883f671ce7658c0fdea6ee6c2b891639c1639a695f4f2f25dbe091cc93c6951cee SHA512 7caee6762b6676f4e133025cd0e68e7fbd93ae2dea773b2f6180505fda3384f60e0de40ae32322ff50a470b7986dbf6071a86dd770d7bca9df3cc601dbc0e18b
 DIST dmidecode-3.5.tar.xz 65068 BLAKE2B 07cc4c069dc1cba36160de158c4d0390df9b77b4192f5847df0756f9e097a7fbc751cd7b5b073df7661267ab78ea0d9be2831d70ddda8d1981c628f3cfee8802 SHA512 690c9bea391f6bbfc8cd48e8db408a61d5b551a07a2823c29d03a09607fc2043cc1bea44ee9fd27fd0e7bc0b287bf9de9f22a1a66053f5b1e63d77c03d93e1ae
+DIST dmidecode-3.6.tar.xz 69284 BLAKE2B 0fd5d1c6f1cef774fe9b31ee36915d9222f568dcff10b416077aff2edd38cc1193cbf28410fcb7377c482bd267b45ee63ddce3d35e7b58dd8674cdf9a19f1b86 SHA512 b1e47a2121062581876ba2daf3ce80b1c39612d078718609b8bc97d4e7a4b47427200502468b5d71f0d0dcb5ba299fb2e808791b62dc5b50e67acac60c51a461

diff --git a/sys-apps/dmidecode/dmidecode-3.6.ebuild b/sys-apps/dmidecode/dmidecode-3.6.ebuild
new file mode 100644
index 000000000000..3d93149aaccd
--- /dev/null
+++ b/sys-apps/dmidecode/dmidecode-3.6.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Upstream often give "recommended patches" at https://www.nongnu.org/dmidecode/
+# Check regularly after releases!
+inherit bash-completion-r1 flag-o-matic toolchain-funcs
+
+UPSTREAM_PATCH_COMMITS=()
+DESCRIPTION="DMI (Desktop Management Interface) table related utilities"
+HOMEPAGE="https://www.nongnu.org/dmidecode/"
+SRC_URI="https://savannah.nongnu.org/download/${PN}/${P}.tar.xz"
+for commit in "${UPSTREAM_PATCH_COMMITS[@]}" ; do
+	SRC_URI+=" https://git.savannah.gnu.org/cgit/dmidecode.git/patch/?id=${commit} -> ${P}-${commit}.patch"
+	UPSTREAM_PATCHES+=( "${DISTDIR}"/${P}-${commit}.patch )
+done
+unset commit
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* ~alpha ~amd64 ~arm ~arm64 ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~x86"
+IUSE="selinux"
+
+RDEPEND="selinux? ( sec-policy/selinux-dmidecode )"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+	"${UPSTREAM_PATCHES[@]}"
+)
+
+src_prepare() {
+	default
+
+	sed -i \
+		-e "/^prefix/s:/usr/local:${EPREFIX}/usr:" \
+		-e "/^docdir/s:dmidecode:${PF}:" \
+		-e '/^PROGRAMS !=/d' \
+		Makefile || die
+}
+
+src_compile() {
+	append-lfs-flags
+
+	emake \
+		CFLAGS="${CFLAGS} ${CPPFLAGS}" \
+		LDFLAGS="${LDFLAGS}" \
+		CC="$(tc-getCC)"
+}
+
+src_install() {
+	einstalldocs
+	emake DESTDIR="${D}" compdir="$(get_bashcompdir)" install
+}
+
+pkg_postinst() {
+	if [[ ${CHOST} == *-solaris* ]] ; then
+		einfo "dmidecode needs root privileges to read /dev/xsvc"
+		einfo "To make dmidecode useful, either run as root, or chown and setuid the binary."
+		einfo "Note that /usr/sbin/ptrconf and /usr/sbin/ptrdiag give similar"
+		einfo "information without requiring root privileges."
+	fi
+}


             reply	other threads:[~2024-04-24 12:49 UTC|newest]

Thread overview: 72+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-24 12:48 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-24 13:57 [gentoo-commits] repo/gentoo:master commit in: sys-apps/dmidecode/ Sam James
2023-11-04 13:35 Sam James
2023-11-04 12:25 Sam James
2023-11-04 10:52 Sam James
2023-11-04 10:50 Sam James
2023-10-02 23:00 Robin H. Johnson
2023-10-02 21:42 Robin H. Johnson
2023-10-02 21:42 Robin H. Johnson
2023-06-17 21:03 Sam James
2023-06-17 15:13 Sam James
2023-06-17 10:42 Arthur Zamarin
2023-06-17  6:12 Sam James
2023-06-17  6:12 Sam James
2023-06-17  5:57 Sam James
2023-04-23 22:28 Sam James
2023-04-23 21:15 Sam James
2023-04-23 20:22 Sam James
2023-04-23 20:22 Sam James
2023-04-23 20:07 Sam James
2023-04-23 20:07 Sam James
2023-03-19  3:30 Sam James
2023-03-19  3:30 Sam James
2023-03-15  5:45 Sam James
2022-09-23  2:09 Sam James
2022-09-17  5:38 Arthur Zamarin
2022-09-06 21:59 Jakov Smolić
2022-09-06 21:49 Jakov Smolić
2022-09-06 21:46 Jakov Smolić
2022-09-06 21:36 Sam James
2022-09-06 21:28 Sam James
2022-07-01  6:38 Sam James
2022-05-05  9:51 WANG Xuerui
2021-09-01  9:24 Yixun Lan
2021-05-13 13:55 David Seifert
2021-05-10 14:44 David Seifert
2021-05-09 21:48 Sam James
2021-05-09 21:48 Sam James
2021-05-09 21:48 Sam James
2021-05-09 21:44 Sam James
2021-05-09 21:42 Sam James
2021-05-09 11:01 Sam James
2021-03-24 13:27 Ben Kohler
2020-10-14 20:52 Lars Wendler
2020-10-14 20:52 Lars Wendler
2020-06-13 12:29 Mart Raudsepp
2019-05-11 12:21 Mikle Kolyada
2019-05-07 20:14 Tobias Klausmann
2019-04-29 19:49 Sergei Trofimovich
2019-04-29  8:51 Sergei Trofimovich
2019-04-29  8:49 Sergei Trofimovich
2019-04-29  8:19 Sergei Trofimovich
2019-04-28 20:34 Thomas Deutschmann
2019-04-28 19:42 Mikle Kolyada
2018-10-24  4:10 Matt Turner
2018-09-17  7:56 Lars Wendler
2018-05-10 17:40 Mikle Kolyada
2018-05-10 17:15 Mikle Kolyada
2018-05-10 17:12 Mikle Kolyada
2018-04-21  9:14 Mikle Kolyada
2018-04-15 22:21 Sergei Trofimovich
2018-03-14 12:54 Mikle Kolyada
2018-03-14  7:20 Sergei Trofimovich
2018-03-13 23:07 Sergei Trofimovich
2017-05-30  4:57 Markus Meier
2017-05-26 14:05 Agostino Sarubbo
2017-05-26  7:08 Michael Weber
2017-05-25 23:17 Michael Weber
2017-05-25 10:44 Agostino Sarubbo
2017-05-24 14:29 Lars Wendler
2016-02-28  7:08 Matt Thode
2015-09-07  7:00 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1713962922.e2d84cd3b46aecb9b7e5156355c97f86813debef.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox