aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>2026-04-15 02:43:46 +0000
committerJesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org>2026-04-15 02:44:33 +0000
commit716e7ab7b2d0c2753d1cca2f7a45a656fb82be17 (patch)
tree9e9159d518cfa0cf3d327ec090b91c178402dbfa
parent84a0bb711c38c51fdb231faa3bcdf07f8169aee7 (diff)
sysutils/unixexec: New port: Attach stdin/stdout of a command to a Unix socket
unixexec attaches the stdin/stdout of a command to a Unix socket: * immediately exec(3)'s the command: the data is not proxied via another process * does not multiplex access to a socket WWW: https://github.com/DtxdF/unixexec/
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/unixexec/Makefile24
-rw-r--r--sysutils/unixexec/distinfo3
-rw-r--r--sysutils/unixexec/pkg-descr4
4 files changed, 32 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 4ca46f71bb60..047229215e8a 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1550,6 +1550,7 @@
SUBDIR += uif2iso
SUBDIR += unetbootin
SUBDIR += uniutils
+ SUBDIR += unixexec
SUBDIR += unquote
SUBDIR += unstow
SUBDIR += upower
diff --git a/sysutils/unixexec/Makefile b/sysutils/unixexec/Makefile
new file mode 100644
index 000000000000..f20710cf4822
--- /dev/null
+++ b/sysutils/unixexec/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= unixexec
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.4.0
+CATEGORIES= sysutils
+
+MAINTAINER= dtxdf@FreeBSD.org
+COMMENT= Attach stdin/stdout of a command to a Unix socket
+
+LICENSE= ISCL
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+TEST_DEPENDS= bats:devel/bats-core
+
+USE_GITHUB= yes
+GH_ACCOUNT= DtxdF
+
+TEST_TARGET= test
+
+PLIST_FILES= bin/unixexec
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/unixexec ${STAGEDIR}${PREFIX}/bin/unixexec
+
+.include <bsd.port.mk>
diff --git a/sysutils/unixexec/distinfo b/sysutils/unixexec/distinfo
new file mode 100644
index 000000000000..cf1eb84c627e
--- /dev/null
+++ b/sysutils/unixexec/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1776217762
+SHA256 (DtxdF-unixexec-v0.4.0_GH0.tar.gz) = 2df933600be7030c0a99cbf9d475849a6a9a0290e8a3234f29faa432cb625eb7
+SIZE (DtxdF-unixexec-v0.4.0_GH0.tar.gz) = 4430
diff --git a/sysutils/unixexec/pkg-descr b/sysutils/unixexec/pkg-descr
new file mode 100644
index 000000000000..d986f3898734
--- /dev/null
+++ b/sysutils/unixexec/pkg-descr
@@ -0,0 +1,4 @@
+unixexec attaches the stdin/stdout of a command to a Unix socket:
+
+* immediately exec(3)'s the command: the data is not proxied via another process
+* does not multiplex access to a socket