2023-03-12 02:10:30 +01:00
|
|
|
## About
|
2023-01-14 18:30:29 +01:00
|
|
|
|
2023-03-12 02:07:13 +01:00
|
|
|
portzap is a utility for staying up to date with the
|
|
|
|
[HardenedBSD ports tree](https://hardenedbsd.org).
|
|
|
|
The utility stores a transient copy of the ports tree in `/home/_portzap/ports/`.
|
|
|
|
The transient copy can be created, and updated by an unprivileged user account
|
|
|
|
who is a member of the `_portzap` group. The transient copy can then be installed
|
2023-03-19 06:31:25 +01:00
|
|
|
into the `/usr/ports/` directory by root.
|
2023-01-14 18:30:29 +01:00
|
|
|
|
2023-03-12 02:10:30 +01:00
|
|
|
## Usage
|
2023-01-16 02:36:35 +01:00
|
|
|
|
2023-03-12 02:10:30 +01:00
|
|
|
* `portzap clone` <br>
|
2023-03-19 06:31:25 +01:00
|
|
|
This command clones HardenedBSD's ports tree into `/home/_portzap/ports/`.
|
2023-01-14 18:30:29 +01:00
|
|
|
|
2023-03-12 02:10:30 +01:00
|
|
|
* `portzap pull` <br>
|
2023-03-19 06:31:25 +01:00
|
|
|
This command pulls updates into `/home/_portzap/ports/`.
|
2023-01-14 18:30:29 +01:00
|
|
|
|
2023-03-12 02:10:30 +01:00
|
|
|
* `portzap install` <br>
|
2023-01-14 23:52:50 +01:00
|
|
|
This command should be run as root. <br>
|
2023-03-19 06:31:25 +01:00
|
|
|
The command installs `/home/_portzap/ports/` into `/usr/ports/`. <br>
|
|
|
|
After the first installation, future installations try to save time by being incremental.
|
2023-01-14 18:30:29 +01:00
|
|
|
|
2023-03-19 20:03:04 +01:00
|
|
|
## Install
|
|
|
|
|
|
|
|
Git installation:
|
|
|
|
|
|
|
|
```
|
|
|
|
git clone https://git.hardenedbsd.org/0x1eef/portzap.git
|
|
|
|
cd portzap
|
|
|
|
cp -R bin /usr/local/
|
|
|
|
cp -R libexec /usr/local/
|
|
|
|
```
|
|
|
|
|
2023-03-12 02:10:30 +01:00
|
|
|
## Sources
|
2023-01-14 18:45:46 +01:00
|
|
|
|
2023-01-29 11:48:09 +01:00
|
|
|
* [Source code (git.hardenedbsd.org)](https://git.hardenedbsd.org/0x1eef/portzap)
|
2023-01-14 18:45:46 +01:00
|
|
|
* [Source code (GitHub)](https://github.com/0x1eef/portzap)
|
|
|
|
* [Source code (GitLab)](https://gitlab.com/0x1eef/portzap)
|
2023-03-12 02:15:32 +01:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
[BSD Zero Clause](https://choosealicense.com/licenses/0bsd/). <br>
|
|
|
|
See [LICENSE](./LICENSE).
|