How to Create an #OpenBSD Port

Channel:
Subscribers:
476
Published on ● Video Link: https://www.youtube.com/watch?v=wX3E0MX4bOQ



Category:
Guide
Duration: 1:10:33
387 views
15


Making a new port, using my own project rigg to show how I do this.

# How to Create an OpenBSD Port

## Goal

Create a new port for OpenBSD and share it.

## The Plan

1. Pick the port and version
2. Create port from Makefile.template in ${PORTSDIR}/mystuff
3. Build the new port (and fix any build issues)
4. Create PLIST and DESCR
5. Test it (static test tools and runtime)
6. Create and share the tarball

## Prerequisites

Ports Tree
= https://www.openbsd.org/faq/faq5.html#Bld

Dependencies
= https://man.openbsd.org/bsd.port.mk#FETCH_PACKAGES

## Further Reading

Creating or updating ports often leads to problems not covered here. Know where to look for more details:

= https://www.openbsd.org/faq/ports/index.html
= https://www.openbsd.org/faq/ports/guide.html
= https://man.openbsd.org/bsd.port.mk.5
= https://man.openbsd.org/ports.7
= https://www.openbsd.org/faq/ports/differences.html

I also commonly grep(1) through the ports tree for specific problems, like unsupported API.
-- Watch live at https://www.twitch.tv/thfrw







Tags:
games
openbsd
playonbsd
porting
twitch