git: 9db3b5c7bafe - main - devel/linux-rl9-strace: add strace from Rocky Linux

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Sun, 12 May 2024 10:02:44 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9db3b5c7bafe3d642fe8501838eef16253e4280b

commit 9db3b5c7bafe3d642fe8501838eef16253e4280b
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2024-02-05 07:48:23 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-05-12 10:01:18 +0000

    devel/linux-rl9-strace: add strace from Rocky Linux
    
    Co-authored-by: Gleb Popov <arrowd@FreeBSD.org>
    
    Sponsored by:   Serenity Cybersecurity, LLC
---
 Mk/Uses/linux.mk                       |  1 +
 devel/Makefile                         |  1 +
 devel/linux-rl9-strace/Makefile        | 21 +++++++++++++++++++++
 devel/linux-rl9-strace/distinfo        |  7 +++++++
 devel/linux-rl9-strace/pkg-descr       |  8 ++++++++
 devel/linux-rl9-strace/pkg-plist.amd64 | 11 +++++++++++
 6 files changed, 49 insertions(+)

diff --git a/Mk/Uses/linux.mk b/Mk/Uses/linux.mk
index f4038650cc06..bf606879f532 100644
--- a/Mk/Uses/linux.mk
+++ b/Mk/Uses/linux.mk
@@ -150,6 +150,7 @@ _linux_${linux_ARGS}_sdlimage=		linux-${linux_ARGS}-sdl_image>0:graphics/linux-$
 _linux_${linux_ARGS}_sdlmixer=		linux-${linux_ARGS}-sdl_mixer>0:audio/linux-${linux_ARGS}-sdl_mixer
 _linux_${linux_ARGS}_sdlttf=		linux-${linux_ARGS}-sdl_ttf>0:graphics/linux-${linux_ARGS}-sdl_ttf
 _linux_${linux_ARGS}_sqlite3=		linux-${linux_ARGS}-sqlite>0:databases/linux-${linux_ARGS}-sqlite3
+_linux_${linux_ARGS}_strace=		linux-${linux_ARGS}-strace>0:devel/linux-${linux_ARGS}-strace
 _linux_${linux_ARGS}_systemd-libs=	linux-${linux_ARGS}-systemd-libs>0:devel/linux-${linux_ARGS}-systemd-libs
 _linux_${linux_ARGS}_tcl85=		linux-${linux_ARGS}-tcl85>0:lang/linux-${linux_ARGS}-tcl85
 _linux_${linux_ARGS}_tcp_wrappers-libs=	linux-${linux_ARGS}-tcp_wrappers-libs>0:net/linux-${linux_ARGS}-tcp_wrappers-libs
diff --git a/devel/Makefile b/devel/Makefile
index d1d0bdbf87af..6891521813bc 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1512,6 +1512,7 @@
     SUBDIR += linux-rl9-libunistring
     SUBDIR += linux-rl9-llvm
     SUBDIR += linux-rl9-nspr
+    SUBDIR += linux-rl9-strace
     SUBDIR += linux-rl9-systemd-libs
     SUBDIR += linux-sublime-merge
     SUBDIR += linux_libusb
diff --git a/devel/linux-rl9-strace/Makefile b/devel/linux-rl9-strace/Makefile
new file mode 100644
index 000000000000..6c6f8276dc75
--- /dev/null
+++ b/devel/linux-rl9-strace/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	strace
+PORTVERSION=	5.18
+DISTVERSIONSUFFIX=	-2.el9
+CATEGORIES=	devel
+
+MAINTAINER=	emulation@FreeBSD.org
+COMMENT=	System call tracer (Rocky Linux ${LINUX_DIST_VER})
+WWW=		https://sourceforge.net/projects/strace/
+
+USES=		cpe linux:rl9
+USE_LINUX=	elfutils-libs
+USE_LINUX_RPM=	nolib
+
+CPE_VENDOR=	strace_project
+
+CONFLICTS=	linux-c7-${PORTNAME}
+DOCSDIR=	${PREFIX}/usr/share/doc/${PORTNAME}${PKGNAMESUFFIX}
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.mk>
diff --git a/devel/linux-rl9-strace/distinfo b/devel/linux-rl9-strace/distinfo
new file mode 100644
index 000000000000..d0e98d76e42f
--- /dev/null
+++ b/devel/linux-rl9-strace/distinfo
@@ -0,0 +1,7 @@
+TIMESTAMP = 1706860420
+SHA256 (rocky/s/strace-5.18-2.el9.aarch64.rpm) = 09f70a66adcea1e3778ccf07f41d8dfedb365c1dfa2b5eb50810d39f07525507
+SIZE (rocky/s/strace-5.18-2.el9.aarch64.rpm) = 1368782
+SHA256 (rocky/s/strace-5.18-2.el9.x86_64.rpm) = f189da0f9d11a954f2e2828f50580fd8a1c72a9d086d984523734b6e230177d1
+SIZE (rocky/s/strace-5.18-2.el9.x86_64.rpm) = 1428127
+SHA256 (rocky/s/strace-5.18-2.el9.src.rpm) = 5e461fe9b700d4825a9a16b551d408bdbb838b71bea152143e3009d2c5944803
+SIZE (rocky/s/strace-5.18-2.el9.src.rpm) = 2342957
diff --git a/devel/linux-rl9-strace/pkg-descr b/devel/linux-rl9-strace/pkg-descr
new file mode 100644
index 000000000000..b643d61c2dbc
--- /dev/null
+++ b/devel/linux-rl9-strace/pkg-descr
@@ -0,0 +1,8 @@
+strace is a system call tracer, i.e. a debugging tool which prints out a trace
+of all the system calls made by a another process/program.
+
+strace is similar to the native BSD ``truss'' utility, but it's output style is
+more convenient in most cases.
+
+For strace to work, linprocfs has to be mounted. FreeBSD does not mount it by
+default. For more information, man linprocfs.
diff --git a/devel/linux-rl9-strace/pkg-plist.amd64 b/devel/linux-rl9-strace/pkg-plist.amd64
new file mode 100644
index 000000000000..9ebc8259b5a4
--- /dev/null
+++ b/devel/linux-rl9-strace/pkg-plist.amd64
@@ -0,0 +1,11 @@
+usr/bin/strace
+usr/bin/strace-log-merge
+usr/lib/.build-id/e8/df21c76b8689e5542f3dfb6bae1425626ed342
+usr/share/man/man1/strace-log-merge.1.gz
+usr/share/man/man1/strace.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/CREDITS
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog-CVS.gz
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.gz
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README