Setting up a private package repo for FreeBSD
Lately the EU mirror for FreeBSD packages(http://pkg0.bme.freebsd.org) has been really slow for me. My best guess is the mirror is being overloaded, it could be because of my ISP peering weirdly too.
I already have a Poudriere setup running on a beefy server. How hard it would be building all the packages that I need? Turns out its not that hard at all.
First step is to get all the packages that I currently use and their port names
Setup poudriere with instructions from handbook: https://www.freebsd.org/doc/handbook/ports-poudriere.html
Build the packages
After a day and half poudriere built all the packages I need :)
Now all that left is to disable the official repo and replace it with mine
Bye bye slow mirrors!
This should be filed under over-engineering, and I should really investigate why the mirror is slow; This does work and love how simple and powerful the pkg system is. Workflow is far better than I am used to bulk building debian or arch packages.