Manages a local copy of the HardenedBSD ports tree
Find a file
0x1eef 08d97a33c4 Clone without --depth 1
The background for this change was discussed on the HardenedBSD
irc channel. It is known to cause issues with pull later on,
due to hardware constraints on git.hardenedbsd.org.
2023-01-25 16:16:08 -03:00
bin Clone without --depth 1 2023-01-25 16:16:08 -03:00
libexec/portzap Assign rwx to /usr/ports directories owned by _portzap group 2023-01-24 05:32:09 -03:00
.projectile First commit 2023-01-14 14:30:29 -03:00
README.md FIx a small typo in README.md 2023-01-23 19:18:37 -03:00
VERSION v0.3.1 2023-01-23 11:50:31 -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 into /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 install
    This command should be run as root.
    The command installs /home/_portzap/ports into /usr/ports.

Sources