BSD Ports

databases/couchdb3 3.5.3_2 MidnightBSD

JSON document database with HTTP API and scalable cluster mesh sync

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
432e5fcbb1
License
Apache-2.0, bsd3, iscl, OFL11, WTFPL
Categories
databases

Description

Apache CouchDB lets you access your data where you need it by defining the Couch Replication Protocol that is implemented by a variety of projects and products that span every imaginable computing environment from globally distributed server-clusters, over mobile phones to web browsers.

In the other systems

SystemPortVersion
MidnightBSDdatabases/couchdb33.5.3_2
FreeBSDdatabases/couchdb33.5.3
DragonFlydatabases/couchdb33.3.3_1
HardenedBSDdatabases/couchdb33.5.2_5
GhostBSDdatabases/couchdb33.5.2_4

Install

Binary package:

mport install couchdb3

From mports:

cd /usr/mports/databases/couchdb3 && make install clean

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

RUN_DEPENDS=	couchdb3>0:databases/couchdb3

Dependencies

As this port's Makefile names them.

Build 1

Library 2

Runtime 1

Build dependencies 3
Run dependencies 3

No port depends on this one.

Configuration

Options name: databases_couchdb3

OptionDefaultDescription
DOCSoff
USES
compiler:c++17-lang cpe gmake libtool ncurses ssl
Service scripts
couchdb3
Conflicts with
couchdb4*

Files

Manual pages 1
  • apachecouchdb(1)
pkg-plist 1759
  • @sample(couchdb,couchdb,640) etc/couchdb3/local.ini.sample
  • @sample(couchdb,couchdb,640) etc/couchdb3/vm.args.sample
  • libexec/couchdb3/LICENSE
  • libexec/couchdb3/bin/couchdb
  • libexec/couchdb3/bin/couchjs
  • libexec/couchdb3/bin/remsh
  • libexec/couchdb3/bin/weatherreport
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/beam.smp
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/ct_run
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/epmd
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/erl
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/erl_call
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/erl_child_setup
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/erlc
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/erlexec
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/escript
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/heart
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/inet_gethost
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/run_erl
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/start
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/to_erl
  • libexec/couchdb3/erts-%%ERTS_VER%%/bin/yielding_c_fun
  • libexec/couchdb3/erts-%%ERTS_VER%%/lib/internal/README
  • libexec/couchdb3/etc/default.ini
  • libexec/couchdb3/etc/nouveau.yaml
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1.app
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1.appup
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1_db.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_check.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_constructed_ber_bin_v2.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_constructed_per.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_eval_ext.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_func.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_gen.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_gen_ber_bin_v2.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_gen_check.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_gen_jer.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_gen_per.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_imm.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_name.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_parser2.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_partial_decode.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_pretty_format.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_rtt.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_table.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_tok.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1ct_value.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/ebin/asn1rt_nif.beam
  • libexec/couchdb3/lib/asn1-%%ASN1_VER%%/priv/lib/asn1rt_nif.so
  • libexec/couchdb3/lib/b64url-%%VERSION%%/ebin/b64url.app
  • libexec/couchdb3/lib/b64url-%%VERSION%%/ebin/b64url.beam
  • libexec/couchdb3/lib/b64url-%%VERSION%%/priv/b64url.so
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd.app
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_app.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_auth.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_auth_cache.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_auth_request.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_cors.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_db.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_epi.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_external.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_handlers.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_httpd_handlers.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_misc.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_node.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_plugin.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_prefer_header.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_rewrite.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_show.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_stats.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_sup.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_test_util.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_util.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_view.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/ebin/chttpd_xframe_options.beam
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/include/chttpd.hrl
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/include/chttpd_cors.hrl
  • libexec/couchdb3/lib/chttpd-%%VERSION%%/priv/stats_descriptions.cfg
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_a.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_asm.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_block.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_bounds.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_call_types.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_clean.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_core_to_ssa.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_dict.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_digraph.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_disasm.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_doc.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_flatten.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_jump.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_listing.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_opcodes.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_ssa.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_ssa_alias.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_ssa_bc_size.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_ssa_bool.beam
  • libexec/couchdb3/lib/compiler-%%COMPILER_VER%%/ebin/beam_ssa_bsm.beam

The first 100 are listed.

distinfo 1
FileSizeSHA256
apache-couchdb-3.5.3.tar.gz2.5034444e+07ae0bb374cc89900d6cb1dfb8d8e80c799186dcf2d143ca886296c230af420896
Master sites 1
  • APACHE/couchdb/source/3.5.3

Commit history 4

DateCommitCreditsLog message
432e5fcbb1 Lucas Holt databases/couchdb3: stop linking couchjs against x11/libei (#1852)
On a build host with `x11/libei` installed, `couchjs` and `couch_ejson_compare.so` got `DT_NEEDED libei.so.1`. That is the X11 emulated-input library, not Erlang's `ei`, and couchdb3 does not depend on it. fake-qa reported: ``` Error: /usr/local/libexec/couchdb3/bin/couchjs is linked to /usr/local/lib/libei.so.1 from x11/libei but it is not declared as a dependency ``` **Cause:** rebar's link template is `$LDFLAGS $EXE_LDFLAGS` / `$LDFLAGS $DRV_LDFLAGS`, and both expand `$ERL_LDFLAGS` (`-L$ERL_EI_LIBDIR ... -lei`). The couchjs and BSD ICU envs put `-L/usr/local/lib` in `LDFLAGS`, so `-lei` resolved to `/usr/local/lib/libei.so.1` before Erlang's static `erl_interface/lib/libei.a`. **Fix:** neither binary uses ei. `files/patch-src_couch_rebar.config.script` sets `ERL_LDFLAGS` to `""` …
599f44f246 Lucas Holt databases/couchdb3: remove priv/couch_js on deinstall (#1851)
`mport delete couchdb3` left `/usr/local/libexec/couchdb3/lib/couch-3.5.3/priv/couch_js` and its empty parents behind. The plist has `@dir .../priv/couch_js/102` but no entry for `priv/couch_js`. mport records automatic parent directories only for files (`insert_autodir_assets()`), not for `@dir` entries, so nothing owned that directory. This adds `@dir libexec/couchdb3/lib/couch-%%VERSION%%/priv/couch_js` and bumps PORTREVISION to 1. Testing on 4.0.9 amd64: - `bmake clean package install`, then `mport.delete -n couchdb3` - After the delete, `/usr/local/libexec/couchdb3`, `/usr/local/etc/couchdb3`, `/usr/local/www/couchdb3`, `/var/db/couchdb3`, `/var/log/couchdb3` and `/var/run/couchdb3` are all gone - `portlint -AC`: 0 fatal errors …
e77d0a58d7 Lucas Holt databases/couchdb3: update to 3.5.3 (#1836)
Update couchdb3 from 3.5.1 to 3.5.3. **Depends on #1835** (lang/erlang-runtime28): merge that first. **Security:** all six CVEs in CouchDB's 2026-10-12 advisories affect 3.5.2 and below. - CVE-2026-86471 (High): shell command injection through weatherreport config values - CVE-2026-90797 (High): gzip bomb on unauthenticated endpoints exhausts memory - CVE-2026-90799 (High): crafted resume tokens exhaust the atom table and abort the VM - CVE-2026-90800 (High): admin-only `_all_docs`/`_changes` not enforced on prefixed `_users`/`_replicator` - CVE-2026-107755 (High): replication credentials in URL objects leak to non-owners - CVE-2026-90798 (Medium): the replicator follows redirects forever **Why this is larger than a version bump:** …
c3545b8bb1 Lucas Holt databases/couchdb3: use packaged rebar
Use the packaged rebar for the upstream release build instead of the bundled escript, whose embedded BEAM files fail to load under the Erlang runtime used by the port. Also fix staged install paths for runtime directories and the Fauxton UI copy. AI-Assisted-by: Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>