Update docs

This commit is contained in:
0x1eef 2024-04-01 23:49:45 -03:00
parent 9811cf229c
commit c87237df2b
2 changed files with 19 additions and 17 deletions

View file

@ -7,28 +7,27 @@ portzap is a utility that manages a local copy of the
**CLI** **CLI**
# Clones the ports tree into "/home/_portzap/ports/" # Clone the hardenedbsd ports tree into /home/_portzap/ports/.
$ portzap clone $ portzap clone
# Pulls updates into "/home/_portzap/ports/" # Pull updates into /home/_portzap/ports/.
$ portzap pull $ portzap pull
# Installs "/home/_portzap/ports/" into "/usr/ports/" # Install /home/_portzap/ports/ into /usr/ports/.
# portzap install # portzap install
**Environment** # Add the portzap user, group and home directory.
# portzap adduser
# The URL of a git repository **ENVIRONMENT VARIABLES**
# Defaults to https://git.hardenedbsd.org/hardenedbsd/ports.git
export PORTZAP_PORTS_URL=https://github.com/HardenedBSD/ports
# The directory where the ports collection will be installed * __$PORTZAP\_GITURL__ <br>
# Defaults to "/usr/ports/" The URL to a git repository. Default:
export PORTZAP_PORTS_DIR=/path/to/ports https://git.hardenedbsd.org/hardenedbsd/ports.git
* __$PORTZAP_PORTS_DIR__ <br> * __$PORTZAP\_INSTALLDIR__ <br>
The directory where the ports collection will be installed. <br> The directory where the ports collection will be
Defaults to /usr/ports. installed. Default: /usr/ports/.
## Install ## Install
@ -37,10 +36,7 @@ $ git clone https://github.com/0x1eef/portzap.git
$ cd portzap $ cd portzap
# cp -R bin /usr/local/ # cp -R bin /usr/local/
# cp -R libexec /usr/local/ # cp -R libexec /usr/local/
# pw useradd -n _portzap \ # pw adduser
-c "portzap utility user" \
-m \
-s /sbin/nologin
# pw groupmod -n _portzap -m <user> # pw groupmod -n _portzap -m <user>
``` ```

View file

@ -11,6 +11,8 @@ portzap clone
portzap pull portzap pull
.br .br
portzap install portzap install
.br
portzap adduser
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm portzap .Nm portzap
manages a copy of the hardenedbsd ports tree. manages a copy of the hardenedbsd ports tree.
@ -27,6 +29,10 @@ Pull updates into /home/_portzap/ports/.
.Nm portzap install .Nm portzap install
.br .br
Install /home/_portzap/ports/ into /usr/ports/. Install /home/_portzap/ports/ into /usr/ports/.
.Pp
.Nm portzap adduser
.br
Add the portzap user, group and home directory.
.Sh ENVIRONMENT VARIABLES .Sh ENVIRONMENT VARIABLES
.Pp .Pp
.Bl -tag -width $PORTZAP_GITURL .Bl -tag -width $PORTZAP_GITURL