PORTGEN(1)

πŸ“¦ in nixpkgs unstable

πŸ’– 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: ✨

  • -m makeopt β€” pass makeopt to make(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:

  • sqlports
  • p5-DBI
  • p5-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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms