PORTGEN(1)
π PORTGEN(1) β port modules on the fly π
okay so this is the PORTGEN(1) page from the General Commands Manual, and the main character is portgen, duh π
she ports modules on the fly and weβre obsessed.
πΈ NAME πΈ
portgen β port modules on the fly
π¦ SYNOPSIS π¦
portgen [-m makeopt] type module-name
β¨ DESCRIPTION β¨
okay so portgen is the utility that creates ports for the module-name you hand it, using the type module framework. It downloads the module, analyzes it, and translates it into a port β like a glow-up but for software π«Ά. Any missing dependencies are handled recursively, no cap.
New ports will land under ${PORTSDIR}/mystuff. The PORTSDIR value will be taken from the current user environment, and defaults to /usr/ports. so if you donβt set it, sheβs going to /usr/ports, periodt.
β¨ the options are as follows, bestie: β¨
-mmakeopt β pass makeopt tomake(1)invocations while resolving missing dependencies. This is mostly useful with βFETCH_PACKAGES=β to avoid building everything from scratch. lowkey the move π
The portgen utility currently supports the following type values:
p5β for Perl modules on CPAN.rubyβ for Ruby gems.goβ for Go modules.
A go module may be used with an @version suffix to specify a tag or branch to port. The default suffix is @latest, which is interpreted as the latest release. iconic β¨
The following packages must be installed prior to the invocation of portgen:
sqlportsp5-DBIp5-DBD-SQLite
π EXIT STATUS π
The portgen utility exits 0 on success, and >0 if an error occurs. so 0 is the slay outcome, and anything >0 is the βsomething went offβ vibe π
π EXAMPLES π
The following command will download the latest version of Config::AutoConf from CPAN, parse it and create a port for it:
portgen p5 Config::AutoConf
π§ SEE ALSO π§
port-modules(5), ports(7) β go read those too, iykyk π
π HISTORY π
The portgen utility first appeared in OpenBSD 5.9 as a result of Google Summer of Code 2015. iconic origin story, fr fr π
π AUTHORS π
Giannis Tsaraias <tsg@openbsd.org>
π CAVEATS π
Not every module could be converted to a port. thatβs just the tea, bestie π
and thatβs the page! footer vibes: source/version Debian, date August 13, 2022, page PORTGEN(1) β mwah, bye bestie ππ
β¨
π¦ where this page comes from
- nixpkgs unstable: cvs-export
- Copyright (c) 2015 Giannis Tsaraias <tsg@openbsd.org>
- Copyright (c) 2015 Vadim Zhukov <zhuk@openbsd.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms