diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-24 23:59:27 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-24 23:59:27 +0100 |
commit | b987a550f067c3da93b0664cf1fdc8a624c0aa38 (patch) | |
tree | 9ad1767fad656d26471a81af6bac8400a1c75218 /sys-apps/dmidecode | |
parent | e3f21c8aff8a76afe3423721c437a088e9232840 (diff) |
gentoo auto-resync : 24:04:2024 - 23:59:27
Diffstat (limited to 'sys-apps/dmidecode')
-rw-r--r-- | sys-apps/dmidecode/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/dmidecode/dmidecode-3.6.ebuild | 63 |
2 files changed, 65 insertions, 0 deletions
diff --git a/sys-apps/dmidecode/Manifest b/sys-apps/dmidecode/Manifest index d826af24022f..13e493dbc8e2 100644 --- a/sys-apps/dmidecode/Manifest +++ b/sys-apps/dmidecode/Manifest @@ -2,6 +2,8 @@ AUX dmidecode-3.5-backport-HPE-OEM-record-137-fix.patch 1667 BLAKE2B 4657a4a77b7 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 EBUILD dmidecode-3.5-r2.ebuild 1325 BLAKE2B 1ba8f7f528efc76c33af5b85d5420c778f76d9debe28c988e8469a2f7055cd330062404b6d29047fce008bd2c2b2509ed82210f638827e4487e08f83cfa562a1 SHA512 1b197bbea13a6ad097b48a4d0c873c449b83f10c36028cb08db92bfdccff74c57825cdf958efe59de247c5cf0a11ffc681054b092d366acb899648e7ab87641b EBUILD dmidecode-3.5-r3.ebuild 1554 BLAKE2B a6b1432ad14bea83060562685f0ba3b81626bf84778bc7aff94f6ba8c1aebb27058fcff67cd9cb2a491bc97e0f572059be3a613f180ce1b33d3549b89129481e SHA512 c1e5347330de38270c6b394595fbbfe2717427555c00bccbe58346b83b7824699f941810e7a7f822961b6ea454e915efe138c46e2bbc84afe406c6cc4a69294e +EBUILD dmidecode-3.6.ebuild 1673 BLAKE2B 199f20afaf1caf5d3c98f22a5ca94ee8b8197fcb413bf555021e605bfa6f04825ff8e6213645c3afe76f6118cb869848114e41742b98a9e3b8065196f04060a1 SHA512 d6bb8e622736845c0e83bd1dac9651c07cc5533e134d8232656be7e2f95a9c6a43252c817a0db46ff49bcedb369c35786052cc9d890cc863b779ffaef4e4e954 MISC metadata.xml 254 BLAKE2B f3a9f843cf94243d1129711770df727fcdc8808bca829ef784819cab6f5410dfa463cfed85182f8228c7de796a674dd602653ad3ef817a62c0c3e7198b23befe SHA512 b9fcd3084a7e197f6138e1ce8b0eff99c4c203c37a7d5c40de207040ba1501ef0e5b2f4e00216a567037bcd6d3394fdec6ff587484c9ba2fca9d04f431733b7c diff --git a/sys-apps/dmidecode/dmidecode-3.6.ebuild b/sys-apps/dmidecode/dmidecode-3.6.ebuild new file mode 100644 index 000000000000..f28bc89d104e --- /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="mirror://nongnu/${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 +} |