Intended as a supplement to the regular OpenBSD ports collection, this repository houses porting instructions for various third-party software. Ultimate goal of these ports is inclusion in the OpenBSD CVS repository where viable.
These instructions assume the files in this repository reside in /usr/ports/mystuff
. Inclusion in the regular ports infrastructure is done through patching the root ports Makefile
. Since the mystuff
directory is included in searches for ports, no further steps are required.
cd /usr/ports
git clone https://github.com/rkrieger/openbsd-ports.git mystuff
If you wish to place items in another directory, you can use the ports-Makefile.patch
file, after adjusting its mystuff
to your liking. If you skip this step, the ports tools may not pick up the ports in this repository. Patching would be as simple as:
cd /usr/ports
patch < $otherdir/ports-Makefile.patch
Adding the files from the repository to the root of your ports tree is not recommended (due to existing Makefile
s being overwritten by git clone
).
As with anything in life, there are certain things to be mindful of:
- These ports are created and maintained using the OpenBSD-current branch. As such, I recommend against using these ports on regular releases of OpenBSD. This prevents you from shooting yourself in the foot and messing up your system's environment. For more details, review the OpenBSD FAQ #5. Still, there are no guarantees.
- Do not extract the repository in your ports root directory, use a subdirectory (
mystuff
) instead. The repository containsMakefile
s that would otherwise overwrite and break your ports checkout.