Manages a local copy of the HardenedBSD ports tree
Find a file
0x1eef f08ad32c90 Add portzap-install-port
Add a new script that is responsible for installing a new port
to /usr/ports with the correct permissions.
2023-01-19 10:13:20 -03:00
bin Add portzap-install-port 2023-01-19 10:13:20 -03:00
.projectile First commit 2023-01-14 14:30:29 -03:00
README.md readme: update 2023-01-15 22:36:35 -03:00
VERSION v0.1.0 2023-01-14 19:56:04 -03:00

About

portzap is a simple bourne shell script that takes care of keeping up to date with the HardenedBSD ports collection.

The HardenedBSD ports collection is maintained as a git repository, and portzap allows the repository to be cloned (and updated) using a regular user account. The unpacking of the repository to /usr/ports is also supported but must be performed by root.

Usage

  • portzap init
    This command should be run as root.
    The command creates the _portzap user / group, and the directory /home/_portzap.

  • portzap clone
    This command should be run by a user account that is a member of the _portzap group.
    The command clones HardenedBSD's ports collection to /home/_portzap/ports.

  • portzap pull
    This command should be run by a user account that is a member of the _portzap group.
    The command updates an existing repository previously cloned with portzap clone.

  • portzap unpack
    This command should be run as root.
    The command copies /home/_portzap/ports to /usr/ports.

Sources