Add $PORTZAP_PORTS_DIR

This commit is contained in:
0x1eef 2023-06-09 22:04:38 -03:00
parent f937372f9a
commit 1249f3c354
3 changed files with 10 additions and 2 deletions

View file

@ -26,6 +26,10 @@ portzap is a utility that manages a local copy of the
# Defaults to "/usr/ports/"
export PORTZAP_PORTS_DIR=/path/to/ports
* __$PORTZAP_PORTS_DIR__ <br>
The directory where the ports collection will be installed. <br>
Defaults to /usr/ports.
## Install
```

View file

@ -4,7 +4,7 @@
# Variables
base_dir=$(dirname "$0")
ports_url="${PORTZAP_PORTS_URL:-https://git.hardenedbsd.org/hardenedbsd/ports.git}"
ports_dir="/usr/ports/"
ports_dir="${PORTZAP_PORTS_DIR:-/usr/ports/}"
portzap_file="$ports_dir/.portzap"
portzap_dir="/home/_portzap/ports"
libexec_dir=$(realpath "$base_dir/../libexec/portzap/")

View file

@ -47,8 +47,12 @@ The following variables can be used:
.It Ev PORTZAP_PORTS_URL
The URL to a git repository.
Defaults to https://git.hardenedbsd.org/hardenedbsd/ports.git.
.It Ev PORTZAP_PORTS_DIR
The directory where the ports collection will be installed.
Defaults to
.Pa /usr/ports.
.Sh AUTHORS
The
.Nm portzap
utility and this manual page were written by
0x1eef <0x1eef@protonmail.com> .
0x1eef <0x1eef@protonmail.com>.