Installing Ports and Source Code

If you intend to build your own OpenBSD releases or heavily customize OpenBSD, you’ll need the operating system source code (see Chapter 18, Chapter 19, and Chapter 20). If you intend to build your own packages (covered in Chapter 13), you’ll need the ports tree. Both the ports tree and the system source code are specific to an OpenBSD release, and if you need them, install them when you install the system.

The ports tree is the compressed file ports.tar.gz in the release directory where you stored OpenBSD—either on the mirror site or the CD. All architectures share one ports tree. Download this file to your home directory and extract it in /usr.

# cd /usr/
# tar -xzvf $HOME/ports.tar.gz

This extracts the ports tree to /usr/ports.

The system source code is found in three files in the release directory: the kernel source code sys.tar.gz (see Chapter 19), userland source code src.tar.gz (see Chapter 20), and the Xenocara xenocara.tar.gz (see Chapter 20). Extract Xenocara to /usr, and the others to /usr/src.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.216.175