On Fri, Dec 08, 2017 at 08:01:22AM -0800,
vermad...@gmail.com wrote:
>
> Hi,
>
> the HardenedBSD Handbook states that 'portsnap' should be used to download
> the Ports tree, I have read that HardenedBSD removed 'portsnap' bucause of
> its insecurity.
Good catch. I haven't modified those bits of the Handbook, only added
Chapter 14, the HardenedBSD chapter. I should go through the rest of
the Handbook and make modifications to the necessary bits.
>
> What is the way to use HardenedBSD Ports on HardenedBSD?
For the first time, use the following sequence (from a fresh install):
1. cd ${HOME}
2. fetch --no-verify-peer
https://github.com/HardenedBSD/hardenedbsd-ports/archive/master.tar.gz
3. tar -xf master.tar.gz -C /usr/ports --strip-components 1
You now have a ports tree.
Install devel/git or devel/git-lite. Then rm -rf the ports tree and
clone the repo with git:
1. cd /usr/ports/devel/git-lite
2. make install clean BATCH=1
3. cd ${HOME}
4. rm -rf /usr/ports
5. mkdir -p /usr/ports
6. cd /usr/ports
7. git clone
https://github.com/HardenedBSD/hardenedbsd-ports.git .
Instead of doing both of those sets of steps, you could just install
git-lite from our pkg repo and skip to step 6 above.
Thanks,
--
Shawn Webb
Cofounder and Security Engineer
HardenedBSD
GPG Key ID: 0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE