From 7ffb0d788095b25c4d39a0f2b975bbb9fe3a5014 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Wed, 7 Aug 2024 02:20:07 -0300 Subject: [PATCH] Update docs (README.md) --- README.md | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 4c5398d..7a927a7 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ can be installed into `/usr/ports/` by root. ## Examples -#### CLI: setup-portzap +### CLI: setup-portzap `setup-portzap` should be run after installing portzap for the first time.
There is no harm in running `setup-portzap` @@ -18,37 +18,37 @@ multiple times: # This command requires root privileges root@localhost# setup-portzap -#### CLI: portzap +### CLI: group - # Clone the HardenedBSD ports tree into /home/_portzap/ports/ - # This command is delegated to the '_portzap' user and - # limited to members of the '_portzap' group - user@localhost$ portzap clone +The following commands are delegated to the `_portzap` user and +restricted to members of the `_portzap` group. The restrictions +are enforced by portzap and to a lesser extent by +[doas(1)](https://man.openbsd.org/doas): - # Pull updates into /home/_portzap/ports/ - # This command is delegated to the '_portzap' user and - # limited to members of the '_portzap' group - user@localhost$ portzap pull +**portzap clone**
+Clone the HardenedBSD ports tree into `/home/_portzap/ports/`
- # Checkout a branch other than the default: hardenedbsd/main - # This command is delegated to the '_portzap' user and - # limited to members of the '_portzap' group - user@localhost$ portzap checkout freebsd/main +**portzap pull**
+Pull updates into `/home/_portzap/ports/`
- # Run /bin/sh within /home/_portzap/ports/ - # This command is delegated to the '_portzap' user and - # limited to members of the '_portzap' group - user@localhost$ portzap sh +**portzap checkout**
+Checkout a branch other than the default: `hardenedbsd/main`
- # Remove the contents of /usr/ports/ and /home/_portzap/ports/ - # This command requires root privileges - root@localhost# portzap rm +**portzap sh**
+Run `/bin/sh` within `/home/_portzap/ports/`
- # Install /home/_portzap/ports/ into /usr/ports/ - # This command requires root privileges - root@localhost# portzap install +### CLI: superuser -#### Environment +The following commands are restricted to root.
+The restrictions are enforced by portzap: + +**portzap rm**
+Remove the contents of `/usr/ports/` and `/home/_portzap/ports/`
+ +**portzap install**
+Install `/home/_portzap/ports/` into `/usr/ports/`
+ +## Environment * __$PORTZAP\_CLONEURL__
The URL of a git repository