First up, thank you for deciding to dedicate your time and effort to the FreeBSD community and to make things better.
This guide is designed to be lightweight, get you ramped up quickly, and save you time and effort. Is it not exhaustive.
DEVELOPER=yes in /etc/make.conf, which enables extra QA, error, & sanity checks.At a minimum:
For bonus points:
This is a basic process for making changes to one port. If you plan to do longer-term ports work, or across multiple ports, we suggest cloning an entire ports tree with git, so you have all of those tools and features available to you (like branching, stashing, etc).
~username/ports is fine.~username/.porttools configuration (Read man 5 porttools)category/port you want to modify from /usr/ports into a local tree.Here it is in action:
cp -Rp /usr/ports/category/portname ~username/ports/category <make some changes> port test <fix reported issues> port test port diff
port diff > patch.diff
patch.diff to issue