agentsclimarketplace

Openbsd porting

Skill DeciSym/openbsd-porting

OpenBSD ports workflow grounded in OpenBSD docs and man pages. Use when working in /usr/ports or a local ports tree, building packages, or submitting new ports.From its SKILL.md

Install
npx -y skills add DeciSym/openbsd-porting

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as LICENSE. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

3.5 KB, 858 tokens by cl100k_base, as published. Nobody here has run it

Openbsd Porting

Overview

Create, test, and prepare OpenBSD ports in a local ports tree, including Rust ports that need vendoring and patching. Use this skill for new ports, updates, or preparing review submissions to [email protected]. Prefer authoritative sources: OpenBSD Porting Guide and OpenBSD man pages. Always follow the Porting Checklist in the OpenBSD Porting Guide: https://www.openbsd.org/faq/ports/guide.html

Workflow

  1. Check the environment

Confirm ports tree and build directories. Prefer a local ports tree and set: PORTSDIR_PATH, WRKOBJDIR, DISTDIR, PACKAGE_REPOSITORY, PLIST_REPOSITORY, BULK_COOKIES_DIR.

  1. Prepare the port skeleton

Create Makefile, distinfo, pkg/DESCR, pkg/PLIST, and crates.inc (for Rust). Avoid $OpenBSD$ tags in pkg/PLIST. Run make update-plist early when packaging large CLI suites to surface public bin/ name collisions before finalizing wrappers or CONFLICTS. When only a few command names collide, prefer renamed OpenBSD wrapper names over package-wide CONFLICTS.

  1. Pin dependencies

Do not use branch-based git deps. Pin rev in Cargo.toml and, for ports, use DIST_TUPLE and a patch to replace git deps with local paths.

  1. Generate checksums

Run make makesum after the source commit is pushed upstream so distfiles exist.

  1. Build and test

Run make test and fix upstream issues instead of disabling tests when possible. For a full rebuild verification, run make clean=all and make package as separate invocations; the ports framework rejects mixing clean=all with package.

  1. Run portcheck

Use /usr/ports/infrastructure/bin/portcheck -p /path/to/ports to catch structure issues (missing crates.inc include, PLIST tags, etc.).

  1. Prepare for submission

Bundle the port directory as a tarball for [email protected] review. See references for email expectations.

Rust Ports Notes

  • crates.inc must be included in Makefile with a non-indented line: .include "crates.inc".
  • PKGNAME must not be a stem-only name. Include a version component.
  • If a distfile 404s, ensure the commit or tag is pushed upstream.

Examples

  1. New port

User: "Create a new port for foo 1.2.3."

Assistant: Follow the workflow steps, run make makesum, build/test, and run portcheck, then prepare the tarball for [email protected] review.

  1. Update existing port

User: "Update the port to 2.0 and fix build issues."

Assistant: Update Makefile, regenerate distinfo, run tests, and validate with portcheck.

Edge Cases

  • Distfile fetch fails (404): confirm upstream tag/commit is public before make makesum.
  • Tests fail: prefer upstream fixes or targeted patches; avoid disabling tests unless unavoidable.
  • Git dependencies: replace branch-based deps with pinned rev and DIST_TUPLE plus patches.
  • Files processed by SUBST_PROGRAM: avoid shell variables named ${PREFIX} for runtime path discovery, because SUBST_VARS rewrites ${PREFIX} to the fake install prefix during packaging. Use a differently named runtime variable instead.

References

What ships with it: 2 files

920 B alongside SKILL.md

agents/

Keep looking

Skills are one crate of 326,422. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.