FreeBSD upgrade caching proxy
- Perl 74.1%
- Roff 22.6%
- Shell 3.3%
| etc/rc.d | Fix rc.d script | |
| sbin | Version 2 | |
| share/man/man8 | Move man page to share/ | |
| README.md | README.md: more errors | |
DESCRIPTION
This daemon serves as a relay for pkg(8) and freebsd-update(8) that addresses several shortcomings of these tools that are especially painful over slow links. Primarily:
- it is capable of restarting the download if the connection gets broken,
- it does aggresive caching with checksumming support (ETag) to discover remote file changes to prevent downloading the same file all over again,
- connection handling is done by libcurl rather than the fetch(3) interface.
Increasing timeouts by setting FETCH_TIMEOUT and HTTP_TIMEOUT environment variables is recommended. This delegates timeout handling to the proxy.
INSTALLING
cp -r sbin etc share /usr/local/
Enabling:
sysrc upgrade_proxy_enable=YES
sysrc upgrade_proxy_user=...
service upgrade_proxy start
Additional command line switches may be specified in upgrade_proxy_flags.