1. Introduction
2. Installing MacPorts
2.1. Install Xcode
2.2. Install MacPorts
2.3. Upgrade MacPorts
2.4. Uninstall MacPorts
2.5. MacPorts and the Shell
3. Using MacPorts
3.1. The port Command
3.2. Port Variants
3.3. Common Tasks
3.4. Port Binaries
4. Portfile Development
4.1. Portfile Introduction
4.2. Creating a Portfile
4.3. Example Portfiles
4.4. Port Variants
4.5. Patch Files
4.6. Local Portfile Repositories
4.7. Portfile Best Practices
4.8. MacPorts' buildbot
5. Portfile Reference
5.1. Global Keywords
5.2. Global Variables
5.3. Port Phases
5.4. Dependencies
5.5. Variants
5.6. Tcl Extensions & Useful Tcl Commands
5.7. StartupItems
5.8. Livecheck / Distcheck
5.9. PortGroups
6. MacPorts Internals
6.1. File Hierarchy
6.2. Configuration Files
6.3. Port Images
6.4. APIs and Libs
6.5. The MacPorts Registry
6.6. Tests
7. MacPorts Project
7.1. Using Trac for Tickets
7.2. Using Git and GitHub
7.3. Contributing to MacPorts
7.4. Port Update Policies
7.5. Updating Documentation
7.6. MacPorts Membership
7.7. The PortMgr Team
8. MacPorts Guide Glossary
Glossary

Name

porthier — layout of the ports filesystems

Description

A map of the filesystem hierarchy used by MacPorts and the ports it installs. Much of it is based on hier(7).

${prefix}

The base of the MacPorts filesystem hierarchy.

Default: /opt/local/

bin/

Common utilities, programming tools, and applications.

etc/

System configuration files and scripts.

include/

Standard C include files.

lib/

Archive libraries.

libexec/

System daemons and system utilities (executed by other programs).

Library/Frameworks/

Native macOS frameworks.

sbin/

System programs and administration utilities.

share/

Architecture-independent files.

doc/

Miscellaneous documentation.

examples/

Examples for users and programmers.

info/

GNU Info hypertext system.

locale/

Localization files.

man/

Manual pages.

misc/

Miscellaneous system-wide ASCII text files.

src/

Source code.

var/

Multi-purpose log, temporary, transient and spool files.

db/

Miscellaneous automatically generated system-specific database files.

macports/

MacPorts package building topdir.

build/

Where ports are built and destrooted.

distfiles/

Storage location for the distfiles of fetched ports.

packages/

Obsolete. Formerly contained archives (packages) of installed ports.

receipts/

Obsolete. Formerly contained the registry information and receipts for installed ports, in flat-file format.

registry/

Contains the registry database in sqlite format.

software/

The files for each installed port are stored here.

sources/

Holds the sources for the ports tree (the Portfiles) and also MacPorts base.

spool/

Directory containing output spool files.

log/

Miscellaneous system log files.

run/

System information files describing various information about the system since it was booted.

www/

Files to be served by an http server.

cgi-bin/

Directory for cgi executables.

/Applications/MacPorts/

Native macOS applications.

SEE ALSO

port(1), macports.conf(5), portfile(7), portgroup(7), portstyle(7), hier(7)

AUTHORS

Felix Kroniage

Juan Manuel Palacios