summaryrefslogtreecommitdiff
path: root/sys-process/nmon
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-22 00:11:38 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-22 00:11:38 +0100
commit491d0101c89d81dec507f28215b3cb094800d600 (patch)
treea47cf0d9ff4a5f16976435358f5b956ac25f522c /sys-process/nmon
parentbed3b604e16fc6075e29f1af8d47507a07035bd3 (diff)
gentoo auto-resync : 22:06:2024 - 00:11:37
Diffstat (limited to 'sys-process/nmon')
-rw-r--r--sys-process/nmon/Manifest2
-rw-r--r--sys-process/nmon/nmon-16q.ebuild57
2 files changed, 59 insertions, 0 deletions
diff --git a/sys-process/nmon/Manifest b/sys-process/nmon/Manifest
index 313892619605..d2ee26538162 100644
--- a/sys-process/nmon/Manifest
+++ b/sys-process/nmon/Manifest
@@ -1,4 +1,6 @@
AUX nmon-16n-musl.patch 853 BLAKE2B b6f1dc26a08e74be03659c75186c9785214de662520509dbdc0ce13ecd3c6637ae0863009cedbe5a4ebf8cfbfebcb05ce7c08f605ce624278a8bb18250bfcc02 SHA512 cb45b34d8dcf27e8e160ee0b7632a393ad61b95c24f787671ff72b0f2e7aa00d3783497f426e3e6970cd43f2315af6e735c176141b3dca2e0edfebfa7048f4ab
DIST lmon16n.c 268772 BLAKE2B a85aa30029cff39859058689f013801d864a9ecc0f1115d59aac4b86284108b43c1f4230fdc617c1b7718ed503634ba14dfca2f9a6fb4cb8592e9f6bc327739f SHA512 7b801e3d8a1d60794993af6572b8db04aa0bc707cebd16404c6ad9056f4c37216d57e894241540405192bf76a7e0a49f2e31b55b1721c7eb9da437808ff5abda
+DIST lmon16q.c 271117 BLAKE2B cd1238b0f7c00dc719635231dc38dd091d33608b124d619a0ca5cd2d1b58826d14024c01b4683ca53ecdfbb0efef8185e71cc800cbde7c0a5d43548b26730832 SHA512 06386a4c4b77d029b7cbbbc7f4f8b22028787d286e725257b5daef6d77551c5d3d2c26d303adfab8a953455e51ae308ffb5b1170856ff7b391e696f677bafeef
EBUILD nmon-16n.ebuild 1051 BLAKE2B 4308829804e39c54ae26a0c992b944bb708c77cd46e6e3d8693169aa59fbed057c8a1dbce6339f4e417bc1ae68d8449d6f25ff642d7ccb2208e9ff9c5f91185e SHA512 b064ed2981332f6a7d40563b0570c610ea7039129c24d49006959c352c424b8dcd4ed7d0ee805fbbe3172af099ceffe9ad3434ebeb2c508d74f3f56de36c91cd
+EBUILD nmon-16q.ebuild 1053 BLAKE2B 358dd11702c585a963048788f21368bce22db6667ca576570411e0db3c46ddcdc1698f431e6429b6c2cd08290499d38969e2aa9d13f24a6c8da900c439996231 SHA512 50679194e23c331b1db101fc04426090d7ce3c4ae2d7a29343fd33fe5f5e5c4ea99d44791f0293f78ae42e788c19eb216612092187b16254abe01cc95c49fc91
MISC metadata.xml 242 BLAKE2B 1dd26f07fdb13f53ab2af6aaff6c6f4ad675e9424088170eecaaceefd70d5f8e52b5849b97cb705c79cdeab723675bdc2a612b12ac5b1cec450dca47d170f344 SHA512 f910e0e91bee857d0b614384727e19b98e5743b1c55ae7fcd404a261670572429ee632dd91eb8156b656596f2d2b98f3a6fcf3f30c3db5666c8b14d36198b65c
diff --git a/sys-process/nmon/nmon-16q.ebuild b/sys-process/nmon/nmon-16q.ebuild
new file mode 100644
index 000000000000..3f39fe737fa2
--- /dev/null
+++ b/sys-process/nmon/nmon-16q.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+MY_P="lmon${PV}"
+DESCRIPTION="Nigel's performance MONitor for CPU, memory, network, disks, etc"
+HOMEPAGE="http://nmon.sourceforge.net/"
+SRC_URI="https://downloads.sourceforge.net/${PN}/${MY_P}.c"
+S="${WORKDIR}"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+RDEPEND="sys-libs/ncurses:="
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-16n-musl.patch
+)
+
+src_unpack() {
+ cp "${DISTDIR}"/${MY_P}.c "${S}"/${PN}.c || die
+}
+
+src_configure() {
+ local cflags=(
+ # Recommended by upstream to be always on
+ -DGETUSER
+ -DJFS
+ -DLARGEMEM
+ -DKERNEL_2_6_18
+
+ # Arches
+ $(usex amd64 -DX86 '')
+ $(usex x86 -DX86 '')
+ $(usex arm -DARM '')
+ $(usex ppc64 -DPOWER '')
+ )
+
+ append-cflags "${cflags[@]}"
+ append-libs "$($(tc-getPKG_CONFIG) --libs ncurses) -lm"
+}
+
+src_compile() {
+ tc-export CC
+
+ emake ${PN} LDLIBS="${LIBS}"
+}
+
+src_install() {
+ dobin ${PN}
+}