aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2026-08-23 07:37:53 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2026-08-23 07:39:41 +0000
commit69b304f0387f3992e27562ff90b93f9ab37939fd (patch)
tree0622ee0b96db583c50028ddc81119d4c9f49564d
parent2dd7da955e1bee49f7b7e8c3264b2ad045559dee (diff)
sysutils/zfs-allow: New port: Terminal UI and CLI for ZFS delegated administration
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/zfs-allow/Makefile34
-rw-r--r--sysutils/zfs-allow/distinfo5
-rw-r--r--sysutils/zfs-allow/pkg-descr11
4 files changed, 51 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 0d3935b04790..2d3868b5fea5 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -1706,6 +1706,7 @@
SUBDIR += zeroer
SUBDIR += zetaback
SUBDIR += zetaback-devel
+ SUBDIR += zfs-allow
SUBDIR += zidrav
SUBDIR += zli
SUBDIR += znapzend
diff --git a/sysutils/zfs-allow/Makefile b/sysutils/zfs-allow/Makefile
new file mode 100644
index 000000000000..ffc8599b68a8
--- /dev/null
+++ b/sysutils/zfs-allow/Makefile
@@ -0,0 +1,34 @@
+PORTNAME= zfs-allow
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.0.1
+CATEGORIES= sysutils
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= Terminal UI and CLI for ZFS delegated administration
+WWW= https://github.com/olgeni/zfs-allow
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+GO_MODULE= github.com/olgeni/zfs-allow
+
+PLIST_FILES= bin/zfs-allow \
+ share/bash-completion/completions/zfs-allow \
+ share/fish/vendor_completions.d/zfs-allow.fish \
+ share/man/man1/zfs-allow.1.gz \
+ share/zsh/site-functions/_zfs-allow
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/zfs-allow.1 ${STAGEDIR}${PREFIX}/share/man/man1/
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions \
+ ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d \
+ ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+ ${INSTALL_DATA} ${WRKSRC}/completions/zfs-allow.bash \
+ ${STAGEDIR}${PREFIX}/share/bash-completion/completions/zfs-allow
+ ${INSTALL_DATA} ${WRKSRC}/completions/zfs-allow.fish \
+ ${STAGEDIR}${PREFIX}/share/fish/vendor_completions.d/zfs-allow.fish
+ ${INSTALL_DATA} ${WRKSRC}/completions/_zfs-allow \
+ ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_zfs-allow
+
+.include <bsd.port.mk>
diff --git a/sysutils/zfs-allow/distinfo b/sysutils/zfs-allow/distinfo
new file mode 100644
index 000000000000..22c8b2f19b99
--- /dev/null
+++ b/sysutils/zfs-allow/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1787469549
+SHA256 (go/sysutils_zfs-allow/zfs-allow-v1.0.1/v1.0.1.mod) = 84bedb21533147e5456cea8392e150670681f43557ec58cda6e64629644e7ef5
+SIZE (go/sysutils_zfs-allow/zfs-allow-v1.0.1/v1.0.1.mod) = 1586
+SHA256 (go/sysutils_zfs-allow/zfs-allow-v1.0.1/v1.0.1.zip) = 830d986d6ba052973ab31e9d7470b30e40a9728ef1314bc404b07001d8384ec9
+SIZE (go/sysutils_zfs-allow/zfs-allow-v1.0.1/v1.0.1.zip) = 364762
diff --git a/sysutils/zfs-allow/pkg-descr b/sysutils/zfs-allow/pkg-descr
new file mode 100644
index 000000000000..ffa1e93c4a79
--- /dev/null
+++ b/sysutils/zfs-allow/pkg-descr
@@ -0,0 +1,11 @@
+zfs-allow is a terminal UI and scripting front-end for ZFS delegated
+administration (zfs allow / zfs unallow). It shows the delegations of a
+dataset the way zfs allow prints them, lets you edit them as a checklist in
+which every permission is described, and turns the edits into the exact
+zfs allow / zfs unallow commands, shown for review before they run.
+Pre-flight checks point out what the commands will not achieve: create
+without mount, vfs.usermount=0, a mount point the grantee cannot create
+directories in, what an unprivileged delegator cannot do. It also shows the
+effective permissions of a user on a dataset with their sources, and offers
+all of that non-interactively for scripts (-add, -remove, -effective,
+-where, -dump/-restore, dry run, -check).