Manages a local copy of the HardenedBSD ports tree
Find a file
2024-04-01 09:29:06 -03:00
.github/workflows Add shellcheck GitHub action 2024-04-01 09:29:06 -03:00
bin Add $PORTZAP_PORTS_URL 2024-04-01 09:29:06 -03:00
libexec/portzap namespaces: move pull command under 'portzap' namespace 2024-04-01 09:29:06 -03:00
man/man8 portzap.1 -> portzap.8 2024-04-01 09:29:06 -03:00
.projectile Add HardenedBSD source 2023-01-29 07:48:09 -03:00
.shellcheckrc Fix shellcheck (./bin/portzap), and add .shellcheckrc 2024-04-01 09:29:06 -03:00
LICENSE License = 0BSD 2023-03-11 22:15:49 -03:00
README.md Add $PORTZAP_PORTS_URL 2024-04-01 09:29:06 -03:00
VERSION v0.5.8 2023-05-22 02:39:04 -03:00

About

portzap is designed to allow unprivileged users who are members of the _portzap group to create and update a transient copy of the HardenedBSD ports tree, which can then be installed into the /usr/ports/ directory by root. Once the initial installation is complete, future updates are incremental, which means that portzap will only add, remove or update ports that have changed since the last update.

Usage

Commands

  • portzap clone
    Clones the ports tree into /home/_portzap/ports/.

  • portzap pull
    Pulls updates into /home/_portzap/ports/.

  • portzap install
    Installs /home/_portzap/ports/ into /usr/ports/.

Environment variables

Install

portzap can be installed through git, or via a port.
The port makes installation, and deinstallation easier.

Port

See 0x1eef/ports/freebsd/hardenedbsd/portzap.

Git

git clone https://git.hardenedbsd.org/0x1eef/portzap.git
cd portzap
cp -R bin /usr/local/
cp -R libexec /usr/local/
pw useradd -n _portzap \
           -c "portzap utility user" \
           -m \
           -s /sbin/nologin
pw groupmod -n _portzap -m <user>

Sources

License

BSD Zero Clause.
See LICENSE.