0x1eef
8763cd2b82
The 'portzap install' command would always install the entire ports tree, whether for the first time or on a subsequent update where copying the entire tree isn't neccessary. This change is an attempt at only copying ports that have been modified in some way. Rather than dealing with modifications file by file, a port that is found to have modifications has its entire directory copied. This makes life easier but is a bit slower.
32 lines
1.1 KiB
Markdown
32 lines
1.1 KiB
Markdown
## About
|
|
|
|
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
|
|
into the `/usr/ports/` directory by root.
|
|
|
|
## Usage
|
|
|
|
* `portzap clone` <br>
|
|
This command clones HardenedBSD's ports tree into `/home/_portzap/ports/`.
|
|
|
|
* `portzap pull` <br>
|
|
This command pulls updates into `/home/_portzap/ports/`.
|
|
|
|
* `portzap install` <br>
|
|
This command should be run as root. <br>
|
|
The command installs `/home/_portzap/ports/` into `/usr/ports/`. <br>
|
|
After the first installation, future installations try to save time by being incremental.
|
|
|
|
## Sources
|
|
|
|
* [Source code (git.hardenedbsd.org)](https://git.hardenedbsd.org/0x1eef/portzap)
|
|
* [Source code (GitHub)](https://github.com/0x1eef/portzap)
|
|
* [Source code (GitLab)](https://gitlab.com/0x1eef/portzap)
|
|
|
|
## License
|
|
|
|
[BSD Zero Clause](https://choosealicense.com/licenses/0bsd/). <br>
|
|
See [LICENSE](./LICENSE).
|