summaryrefslogtreecommitdiff
path: root/sys-block/blktrace
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-21 12:05:28 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-21 12:05:28 +0100
commit490ef2c2dc8b4e808f37add1adee21a754efd9a9 (patch)
treee235cdf15550b3d2f644b6fc4a8aa726971416f5 /sys-block/blktrace
parentda7ae1dd1fccb6b3c0e4763ab983ad96d57bf463 (diff)
gentoo auto-resync : 21:04:2024 - 12:05:28
Diffstat (limited to 'sys-block/blktrace')
-rw-r--r--sys-block/blktrace/Manifest1
-rw-r--r--sys-block/blktrace/blktrace-1.3.0-r1.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/sys-block/blktrace/Manifest b/sys-block/blktrace/Manifest
index 646abecf15bc..dcba919ded63 100644
--- a/sys-block/blktrace/Manifest
+++ b/sys-block/blktrace/Manifest
@@ -1,3 +1,4 @@
DIST blktrace-1.3.0.tar.bz2 396669 BLAKE2B ab340b27421ec423c8e5bd9fd719f97e06c30366ce95560adea644d10737f41d2c2f16e4c6503b65ef8fedeec7d997de6f47f0d3f2542c5065fe7846f8d18966 SHA512 4cc3d8e0d77e934bd70f447e1bb462400d3c9982460802f093d260e3cb69a66c6f61a63a05af55b84c35c5bdf18027e571d55cebea8c89d0be6d00c7ca9b9174
+EBUILD blktrace-1.3.0-r1.ebuild 1092 BLAKE2B 086ff90dc577569f844cb0b2b9d682717d6ae43c049c223dcf68c621c4485656209b26d3201fa3ae25bcacc7c8c4aa089167d0fd4eb6a6dce855e84823a649db SHA512 52c8bab5c7a34c1e04e4ccefd886a9766ad319aae2131fe5aa3f2a933e34287e4e57f5f8204dad844924927ce074c55eff7c328817b5b664fb69fec1c6be4a56
EBUILD blktrace-1.3.0.ebuild 1560 BLAKE2B 9324cbb84ca1a955f66784d9b96d27dd07874f20f1fbfd8199dff2d883c93571b956c72ad88d949ff6a703cddef4cef4c8df6fbf6479035c14d364fabaff0e6d SHA512 23091b6e6f1dfd40f1ff0a06c74b4428adc34a78d17d7ea67c223cc3d71734505e390fe1db4678591f53cddcc09570e81519d36ba93fd3578faa7215af791512
MISC metadata.xml 309 BLAKE2B 2f51620b760c1d052a616a429bf9d7a2d32c355af4ab680725b04111ce93b7abdac0eb491a5713a449452c718e1f299428442363edee9b7fb11ae72442431b36 SHA512 f7621d1712406fa86a803e19faac002289eaaaf347360c37c40aab1b635d686768a5b61d7d5f6bac8eae1993762476ce29f5a3389af15eb07dad6dc1404bbc0a
diff --git a/sys-block/blktrace/blktrace-1.3.0-r1.ebuild b/sys-block/blktrace/blktrace-1.3.0-r1.ebuild
new file mode 100644
index 000000000000..f894d58430b3
--- /dev/null
+++ b/sys-block/blktrace/blktrace-1.3.0-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs flag-o-matic linux-info
+
+DESCRIPTION="show detailed info about what is happening on a block device io queue"
+HOMEPAGE="https://git.kernel.dk/cgit/blktrace/"
+SRC_URI="https://brick.kernel.dk/snaps/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="doc"
+
+RDEPEND="dev-libs/libaio"
+# This is a Linux specific app!
+DEPEND="${RDEPEND}
+ sys-kernel/linux-headers
+ doc? (
+ virtual/latex-base
+ >=app-text/texlive-core-2014
+ )
+"
+
+CONFIG_CHECK="~BLK_DEV_IO_TRACE"
+WARNING_BLK_DEV_IO_TRACE="you need to enable BLK_DEV_IO_TRACE kernel option if you want to gather traces from this machine"
+
+src_compile() {
+ append-cppflags -DLVM_REMAP_WORKAROUND -W -I"${S}"
+ emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${CPPFLAGS}"
+ if use doc; then
+ export VARTEXFONTS="${T}/fonts"
+ emake docs
+ fi
+}
+
+src_install() {
+ emake install DESTDIR="${ED}" prefix="/usr" mandir="/usr/share/man"
+ einstalldocs
+ use doc && dodoc doc/blktrace.pdf btt/doc/btt.pdf
+}