Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Last active August 25, 2020 17:58
Show Gist options
  • Save miguelmota/8fbe67032ddb5fa48420d5e24a1eb0ac to your computer and use it in GitHub Desktop.
Save miguelmota/8fbe67032ddb5fa48420d5e24a1eb0ac to your computer and use it in GitHub Desktop.
FreeBSD create port patch example
# note: i'm a *bsd noob so there's better ways out there
sudo -
cd /usr/ports/finance/cointop
cp Makefile Makefile.orig
vim Makefile
make makesum # generate distinfo
diff -ruN Makefile.orig Makefile > patch
patch < patch # apply patch using unix patch command
# bug patch for reference: https://bugs.freebsd.org/bugzilla/attachment.cgi?id=217512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment