aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2026-08-21 10:54:44 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2026-08-21 10:58:28 +0000
commit863adee61ccbd856e41bb8623dcc0ada7fdc215f (patch)
tree06dbf727f2faf5ee1e2042d083c637218200fbcb
parentb69565e8ba855242f252e1771394a1473b7b8dae (diff)
sysutils/facl: New port: Terminal UI and CLI for NFSv4 ACLs
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/facl/Makefile22
-rw-r--r--sysutils/facl/distinfo5
-rw-r--r--sysutils/facl/pkg-descr14
4 files changed, 42 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index c82eed840967..0d3935b04790 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -383,6 +383,7 @@
SUBDIR += f-upgrade
SUBDIR += f2
SUBDIR += f3
+ SUBDIR += facl
SUBDIR += fakertc
SUBDIR += faketty
SUBDIR += fand
diff --git a/sysutils/facl/Makefile b/sysutils/facl/Makefile
new file mode 100644
index 000000000000..9ae8c625e9f1
--- /dev/null
+++ b/sysutils/facl/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= facl
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.1.1
+CATEGORIES= sysutils
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= Terminal UI and CLI for NFSv4 ACLs
+WWW= https://github.com/olgeni/facl
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+GO_MODULE= github.com/olgeni/facl
+
+PLIST_FILES= bin/facl \
+ share/man/man1/facl.1.gz
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/facl.1 ${STAGEDIR}${PREFIX}/share/man/man1/
+
+.include <bsd.port.mk>
diff --git a/sysutils/facl/distinfo b/sysutils/facl/distinfo
new file mode 100644
index 000000000000..09c81d37e1b9
--- /dev/null
+++ b/sysutils/facl/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1787309584
+SHA256 (go/sysutils_facl/facl-v1.1.1/v1.1.1.mod) = 4e145e73c936f5b7bf81113cafcad18f2d5dcdcebeedbfc8efce7b4b9717a6d0
+SIZE (go/sysutils_facl/facl-v1.1.1/v1.1.1.mod) = 1593
+SHA256 (go/sysutils_facl/facl-v1.1.1/v1.1.1.zip) = e2f91bf954160a5e1e4c5fdc28da635fd13f176f3989d85742384312b697c1a3
+SIZE (go/sysutils_facl/facl-v1.1.1/v1.1.1.zip) = 566423
diff --git a/sysutils/facl/pkg-descr b/sysutils/facl/pkg-descr
new file mode 100644
index 000000000000..5be4ed90598b
--- /dev/null
+++ b/sysutils/facl/pkg-descr
@@ -0,0 +1,14 @@
+facl is an interactive editor for NFSv4 access control lists, modelled
+after the Windows "Advanced Security Settings" dialog: one row per ACL
+entry, an entry editor with "Applies to" (this folder, subfolders and
+files, ...), basic and advanced permissions, and apply scopes that
+propagate or replace the inherited entries of a whole tree. Changes are
+previewed as the exact setfacl(1) commands before they run.
+
+It reads ACLs with getfacl(1) and writes them with setfacl(1), and works
+on ZFS, UFS with nfsv4acls and NFSv4 mounts. On ZFS the dataset's
+aclinherit and aclmode properties are honoured when computing what
+descendants inherit and what chmod(1) would do to an ACL. It also shows
+the effective access of a user or group, audits a tree for inheritance
+drift, changes ownership, keeps ACL templates, and offers all of that
+non-interactively for scripts (dry run, -set, -audit, -effective, ...).