2024-05-11 21:03:00 +02:00
|
|
|
.Dd May 2023
|
2024-05-12 01:19:45 +02:00
|
|
|
.Dt SOURCEZAP 8
|
2024-05-11 21:03:00 +02:00
|
|
|
.Os
|
|
|
|
.Sh NAME
|
2024-05-12 01:19:45 +02:00
|
|
|
.Nm sourcezap
|
2024-05-11 21:33:43 +02:00
|
|
|
.Nd manages a copy of the HardenedBSD source tree
|
2024-05-11 21:03:00 +02:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.br
|
2024-08-17 00:45:22 +02:00
|
|
|
.Nm sourcezap setup
|
|
|
|
.Nm sourcezap teardown
|
2024-06-01 08:58:10 +02:00
|
|
|
.Nm sourcezap clone
|
|
|
|
.Nm sourcezap pull
|
|
|
|
.Nm sourcezap checkout
|
|
|
|
.Nm sourcezap install
|
|
|
|
.Nm sourcezap rm
|
2024-05-11 21:03:00 +02:00
|
|
|
.Sh DESCRIPTION
|
2024-05-12 01:19:45 +02:00
|
|
|
.Nm sourcezap
|
2024-05-11 21:33:43 +02:00
|
|
|
manages a copy of the HardenedBSD source tree.
|
2024-05-11 21:03:00 +02:00
|
|
|
The copy of the source tree is maintained by members of
|
2024-05-12 01:19:45 +02:00
|
|
|
the '_sourcezap' group, and a copy of the source tree
|
2024-05-11 21:43:59 +02:00
|
|
|
can be installed into /usr/src/ by root.
|
2024-08-17 00:45:22 +02:00
|
|
|
.Sh SETUP
|
|
|
|
.sp
|
|
|
|
.sp
|
|
|
|
.Nm sourcezap setup
|
|
|
|
.br
|
|
|
|
Setup sourcezap for the first time
|
|
|
|
.br
|
|
|
|
This command requires root privileges
|
|
|
|
.Pp
|
|
|
|
.Nm sourcezap teardown
|
|
|
|
.br
|
2024-08-17 21:34:28 +02:00
|
|
|
Reverse the changes made by 'sourcezap setup'
|
2024-08-17 00:45:22 +02:00
|
|
|
.br
|
|
|
|
This command requires root privileges
|
|
|
|
.Pp
|
2024-08-17 01:16:21 +02:00
|
|
|
.Sh GENERAL
|
2024-05-11 21:03:00 +02:00
|
|
|
.sp
|
|
|
|
.sp
|
2024-05-12 01:19:45 +02:00
|
|
|
.Nm sourcezap clone
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
2024-05-12 05:06:01 +02:00
|
|
|
Clone the HardenedBSD source tree into /home/_sourcezap/src/
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
2024-05-12 05:06:01 +02:00
|
|
|
This command is delegated to the '_sourcezap' user
|
2024-05-11 21:03:00 +02:00
|
|
|
.Pp
|
2024-05-12 01:19:45 +02:00
|
|
|
.Nm sourcezap pull
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
2024-05-12 05:06:01 +02:00
|
|
|
Pull updates into /home/_sourcezap/src/
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
2024-05-12 05:06:01 +02:00
|
|
|
This command is delegated to the '_sourcezap' user
|
2024-05-11 21:03:00 +02:00
|
|
|
.Pp
|
2024-05-12 04:32:08 +02:00
|
|
|
.Nm sourcezap checkout
|
2024-05-12 03:53:37 +02:00
|
|
|
.br
|
2024-05-12 05:06:01 +02:00
|
|
|
Checkout a branch other than the default: hardened/14-stable/master
|
2024-05-12 03:53:37 +02:00
|
|
|
.br
|
2024-05-12 05:06:01 +02:00
|
|
|
This command is delegated to the '_sourcezap' user
|
2024-05-12 03:53:37 +02:00
|
|
|
.Pp
|
2024-08-07 08:45:25 +02:00
|
|
|
.Nm sourcezap sh
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
2024-08-07 08:45:25 +02:00
|
|
|
Run /bin/sh within /home/_sourcezap/src/
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
2024-08-07 08:45:25 +02:00
|
|
|
This command is delegated to the '_sourcezap' user and
|
|
|
|
limited to members of the '_sourcezap' group
|
2024-05-11 21:03:00 +02:00
|
|
|
.Pp
|
2024-05-12 04:55:58 +02:00
|
|
|
.Nm sourcezap rm
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
2024-05-12 05:06:01 +02:00
|
|
|
Remove the contents of /usr/src/ and /home/_sourcezap/src/
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
2024-05-12 05:06:01 +02:00
|
|
|
This command requires root privileges
|
2024-08-07 08:45:25 +02:00
|
|
|
.Pp
|
|
|
|
.Nm sourcezap install
|
|
|
|
.br
|
|
|
|
Install /home/_sourcezap/src/ into /usr/src/
|
|
|
|
.br
|
|
|
|
This command requires root privileges
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
|
|
|
.Sh ENVIRONMENT
|
|
|
|
.sp
|
|
|
|
.sp
|
2024-05-12 04:23:57 +02:00
|
|
|
.Nm SOURCEZAP_CLONEURL
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
2024-05-12 05:06:01 +02:00
|
|
|
The URL of a git repository
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
2024-05-12 00:41:53 +02:00
|
|
|
Default: https://git.HardenedBSD.org/HardenedBSD/HardenedBSD.git/
|
2024-05-11 21:03:00 +02:00
|
|
|
.sp
|
2024-05-12 01:19:45 +02:00
|
|
|
.Nm SOURCEZAP_INSTALLDIR
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
2024-06-23 01:21:54 +02:00
|
|
|
The directory where the source tree will be installed
|
2024-05-11 21:03:00 +02:00
|
|
|
.br
|
|
|
|
Default: /usr/src/
|
|
|
|
.sp
|
|
|
|
.Sh AUTHORS
|
|
|
|
The
|
2024-05-12 01:19:45 +02:00
|
|
|
.Nm sourcezap
|
2024-05-11 21:03:00 +02:00
|
|
|
utility and this manual page were written by
|
|
|
|
0x1eef <0x1eef@protonmail.com>.
|