Jul 20, 2023

Nifty script searching the ports database

pkg_search scans the ports INDEX file to use as a database, fetching it if necessary. Example of usage to search for a package

# pkg_search cyrus-sasl cyrus-sasl-1.5.28_5 RFC 2222 SASL Simple Authentication and Security Layer cyrus-sasl-2.1.22 RFC 2222 SASL Simple Authentication and Security Layer cyrus-sasl-ldapdb-2.1.22 SASL LDAPDB auxprop plugin cyrus-sasl-saslauthd-2.1.22 SASL authentication server for cyrus-sasl2

# pkg_search -i cyrus-sasl-2.1.22 Name cyrus-sasl-2.1.22-50 Dir /usr/ports/security/cyrus-sasl2 Desc RFC 2222 SASL Simple Authentication and Security Layer URL http// Deps

Checkout these related ports:
  • Wanted-ports - Just depend on a configurable, arbitrary set of other ports
  • Synth - Custom package repository builder for FreeBSD and DragonFly
  • Submodules2tuple - GH_TUPLE generator for GitHub projects with submodules
  • Sccache-overlay - Ports overlay for sccache
  • Reprise - Port testing system
  • Rc-subr-jail - Shell library to help writing RC scripts with jail support
  • Py-skog - Generate visual dependency trees for FreeBSD ports
  • Py-pytoport - Generate FreeBSD ports from Python modules on PyPI
  • Py-freebsd-ports - Parse FreeBSD Ports INDEX, provide search API
  • Psearch - Utility for searching the FreeBSD Ports Collection
  • Poudriere - Port build and test system
  • Poudriere-devel - Port build and test system
  • Portupgrade - FreeBSD ports/packages administration and management tool suite
  • Portupgrade-devel - FreeBSD ports/packages management tool (devel version)
  • Portupdate-scan - Display pertinent parts of {PORTSDIR}/UPDATING