BSD Ports

databases/cdb 20251021 FreeBSD

Fast lookup database library & utilities

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
PD
Categories
databases
Package size
40.6 KiB, 246.3 KiB installed

Description

cdb is a fast, reliable, lightweight package for creating and reading constant databases. Its database structure provides several features:

* Fast lookups: A successful lookup in a large database normally takes just two disk accesses. An unsuccessful lookup takes only one. * Low overhead: A database uses 2048 bytes (or 4096 bytes for cdb64), plus 24 bytes per record (or 48 bytes per record for cdb64), plus the space for keys and data. * No random limits: cdb can handle any database up to 4 gigabytes (or up to an exabyte for cdb64). There are no other restrictions. Records are streamed and don't have to fit into memory. Databases are stored in a machine-independent format (one format for cdb, one format for cdb64). * Fast atomic database replacement: `cdbmake` rewrites an entire database much more quickly than other hashing packages. Database replacement is safe against system crashes. Readers don't pause during a rewrite: they continue transparently using the old database until the new database is in place. * Fast database dumps: `cdbdump` prints the contents of a database in cdbmake-compatible format.

In the other systems

SystemPortVersion
FreeBSDdatabases/cdb20251021
NetBSDdatabases/cdb20251021
DragonFlydatabases/cdb0.75

Install

Binary package:

pkg install cdb

From the ports tree:

cd /usr/ports/databases/cdb/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	cdb>0:databases/cdb

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest20251021202510210.750.75_120251021
FreeBSD:14:quarterly2025102120251021n/a0.75_120251021
FreeBSD:15:latest2025102120251021n/a0.75_10.75_1
FreeBSD:15:quarterly2025102120251021n/an/an/a
FreeBSD:16:latest2025102120251021n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Configuration

Options name: databases_cdb

OptionDefaultDescription
DOCSoffBuild and/or install documentation
Service scripts
none

Files

pkg-plist 14
  • bin/cdb64dump
  • bin/cdb64get
  • bin/cdb64make
  • bin/cdb64make-12
  • bin/cdb64make-sv
  • bin/cdb64stats
  • bin/cdb64test
  • bin/cdbdump
  • bin/cdbget
  • bin/cdbmake
  • bin/cdbmake-12
  • bin/cdbmake-sv
  • bin/cdbstats
  • bin/cdbtest
distinfo 1
FileSizeSHA256
cdb-20251021.tar.gz1119528e531d6390bcd7c9a4cbd16fed36326eee78e8b0e5c0783a8158a6a79437e3dd
Master sites 1
  • https://cdb.cr.yp.to/

Commit history 0

No commits in the history this site was built from.