PORTS

sync and list port collections

Synopsis

ports -u [ collection ...]
ports -l

Description

ports manages port collections by syncing them from remote repositories and listing available ports. Collections are configured by files in

/etc/ports/

with .rsync or .git extensions. Files with other extensions (e.g. .inactive, .pub ) are ignored.

Options

-u, --update
Sync port collections from their configured remotes. If one or more __IBLOCK__collection names are given, only those are synced. Otherwise all active collections are synced. Requires root.
-l, --list
List all available ports across all configured port directories. Prints collection / portname for each port that contains a MAKEPKG file.

Configuration

Rsync

/etc/ports/name.rsync

host=rsync.opentux.org
module=ports

core=/ports/core
opt=/usr/ports/opt
Each key = value pair after host and module maps a remote collection name to a local destination path.

Git

/etc/ports/name.git

url=https://github.com/opentux/ports.git
branch=main
destination=/usr/ports/opt
If branch is omitted, it defaults to main .

Port Directories

ports -l scans the following directories for ports:
/ports/core
/usr/ports/libs
/usr/ports/devel
/usr/ports/python
/usr/ports/opt
/usr/ports/xorg
/usr/ports/contrib
/usr/local/ports/*/

Files

__IBLOCK__/etc/ports/
Collection configuration directory.
__IBLOCK__/etc/ports/*.pub
Signify public keys for port verification.

Exit Status

0 on success, 1 on error or sync failure.

See Also

Pure LLVM musl libc Source-Based Independent