Manages a local copy of the HardenedBSD source tree
Find a file
0x1eef 6165f4444d
Some checks failed
sourcezap / shellcheck (push) Has been cancelled
docs: update
2024-11-16 01:19:15 -03:00
.github/workflows Update .github/ 2024-05-11 20:29:04 -03:00
bin s|rev|commit|g, s|revfile|commitfile|g 2024-08-20 02:20:11 -03:00
libexec/sourcezap Create doas.conf if neccessary 2024-09-15 21:01:03 -03:00
man/man8 Update sourcezap.8 2024-08-17 16:34:28 -03:00
share/sourcezap v1.2.1 2024-09-19 16:00:41 -03:00
.editorconfig Add editorconfig 2024-09-14 04:22:29 -03:00
.projectile First commit 2024-05-11 16:03:00 -03:00
Makefile Fix "make deinstall" 2024-08-18 23:05:52 -03:00
README.md docs: update 2024-11-16 01:19:15 -03:00

About

sourcezap is a utility that manages a local copy of the HardenedBSD source tree. The copy of the source tree is maintained by members of the _sourcezap group, and the copy of the source tree can be installed into /usr/src/ by root.

CLI

Commands

Group

The following commands are restricted to members of the _sourcezap group, and delegated to the _sourcezap user via doas(1):

  • sourcezap clone
    Clone the HardenedBSD source tree into /home/_sourcezap/src/

  • sourcezap pull
    Pull updates into /home/_sourcezap/src/

  • sourcezap checkout
    Checkout a branch other than the default: hardened/14-stable/master

  • sourcezap sh
    Run /bin/sh within /home/_sourcezap/src/

Root

The following commands are restricted to root:

  • sourcezap rm
    Remove the contents of /usr/src/ and /home/_sourcezap/src/

  • sourcezap install
    Install /home/_sourcezap/src/ into /usr/src/

Environment

Install

sourcezap is available from the HardenedBSD ports tree. pkg install sourcezap should work too but expect slower updates. After installation of sourcezap, sourcezap setup should be run as root and one or more users should be added to the _sourcezap group:

root@localhost# sourcezap setup
root@localhost# pw groupmod -n _sourcezap -m myuser

Requirements

Sources

License

BSD Zero Clause
See LICENSE