2020-01-28 09:08:01 +01:00
|
|
|
PORTNAME= foundationdb-devel
|
2022-01-04 10:19:05 +01:00
|
|
|
DISTVERSION= 7.0.0
|
2022-05-22 20:33:24 +02:00
|
|
|
PORTREVISION= 1
|
2020-01-28 09:08:01 +01:00
|
|
|
CATEGORIES= databases
|
|
|
|
|
2021-04-23 14:33:29 +02:00
|
|
|
# PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/pull/
|
2021-03-29 11:27:33 +02:00
|
|
|
|
2020-01-28 09:08:01 +01:00
|
|
|
MAINTAINER= dch@FreeBSD.org
|
|
|
|
COMMENT= Distributed, transactional key-value store
|
|
|
|
|
|
|
|
LICENSE= APACHE20
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
2021-05-31 12:26:00 +02:00
|
|
|
ONLY_FOR_ARCHS= aarch64 amd64
|
|
|
|
ONLY_FOR_ARCHS_REASON= not yet ported to anything else
|
2020-01-30 09:26:22 +01:00
|
|
|
|
2021-01-06 11:47:52 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/doctest/doctest.h:devel/doctest \
|
|
|
|
${LOCALBASE}/include/toml.hpp:devel/toml11 \
|
|
|
|
bash:shells/bash \
|
|
|
|
git:devel/git
|
|
|
|
|
2020-01-28 09:08:01 +01:00
|
|
|
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
|
|
|
|
libeio.so:devel/libeio
|
|
|
|
|
2021-05-31 12:26:00 +02:00
|
|
|
USES= cmake compiler:c++17-lang mono:build python:build shebangfix \
|
|
|
|
ssl
|
2020-01-28 09:08:01 +01:00
|
|
|
USE_GITHUB= yes
|
2020-05-18 23:48:23 +02:00
|
|
|
GH_ACCOUNT= apple
|
|
|
|
GH_PROJECT= foundationdb
|
|
|
|
USE_LDCONFIG= yes
|
2020-01-28 09:08:01 +01:00
|
|
|
USE_RC_SUBR= foundationdb
|
|
|
|
|
Fix CONFLICTS entries of multiple ports
There have been lots of missing CONFLICTS_INSTALL entries, either
because conflicting ports were added without updating existing ports,
due to name changes of generated packages, due to mis-understanding
the format and semantics of the conflicts entries, or just due to
typoes in package names.
This patch is the result of a comparison of all files contained in
the official packages with each other. This comparison was based on
packages built with default options and may therefore have missed
further conflicts with optionally installed files.
Where possible, version numbers in conflicts entries have been
generalized, some times taking advantage of the fact that a port
cannot conflict with itself (due to logic in bsd.port.mk that
supresses the pattern match result in that case).
A few ports that set the conflicts variables depending on complex
conditions (e.g. port options), have been left unmodified, despite
probably containing outdated package names.
These changes should only affect the installation of locally built
ports, not the package building with poudriere. They should give an
early indication of the install conflict in cases where currently
the pkg command aborts an installation when it detects that an
existing file would be overwritten,
Approved by: portmgr (implicit)
2022-01-10 15:20:12 +01:00
|
|
|
CONFLICTS_INSTALL= foundationdb
|
|
|
|
|
2020-04-19 14:05:11 +02:00
|
|
|
SHEBANG_FILES= bindings/c/generate_asm.py
|
2020-01-28 09:08:01 +01:00
|
|
|
|
2020-05-18 23:48:23 +02:00
|
|
|
CMAKE_ARGS= -DOPENSSL_ROOT_DIR=${OPENSSLLIB}
|
2022-01-04 10:19:05 +01:00
|
|
|
CMAKE_OFF= DISABLE_TLS USE_DTRACE USE_JEMALLOC WITH_CONTRIB WITH_FLOWBENCH
|
|
|
|
|
|
|
|
MAKE_ENV= MONO_REGISTRY_PATH=/tmp/registry
|
2020-03-30 00:23:28 +02:00
|
|
|
|
2020-01-28 09:08:01 +01:00
|
|
|
USERS= foundationdb
|
|
|
|
GROUPS= foundationdb
|
|
|
|
DBDIR?= /var/db/foundationdb
|
|
|
|
LOGDIR?= /var/log/foundationdb
|
|
|
|
|
2021-05-31 12:26:00 +02:00
|
|
|
SUB_FDB= DB_USER=${USERS} DB_GROUP=${GROUPS} DB_DIR=${DBDIR} \
|
2020-01-28 09:08:01 +01:00
|
|
|
LOG_DIR=${LOGDIR}
|
|
|
|
SUB_FILES+= foundationdb.conf
|
|
|
|
SUB_LIST+= ${SUB_FDB}
|
|
|
|
PLIST_SUB+= ${SUB_FDB}
|
|
|
|
|
2020-05-18 23:48:23 +02:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} 's/OPENSSL_USE_STATIC_LIBS TRUE/OPENSSL_USE_STATIC_LIBS FALSE/' \
|
|
|
|
${WRKSRC}/cmake/FDBComponents.cmake
|
2022-05-22 20:33:24 +02:00
|
|
|
${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
|
|
|
${WRKSRC}/bindings/c/test/unit/third_party/CMakeLists.txt
|
2021-01-06 11:47:52 +01:00
|
|
|
|
2020-01-28 09:08:01 +01:00
|
|
|
do-install:
|
2021-05-31 12:26:00 +02:00
|
|
|
# commands on first line, dev tools on next two
|
2020-01-28 09:08:01 +01:00
|
|
|
.for f in fdbbackup fdbcli fdbmonitor fdbserver \
|
2022-01-04 10:19:05 +01:00
|
|
|
actor_flamegraph fdb_flow_tester fdbconvert fdbdecode tutorial
|
2020-01-28 09:08:01 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKDIR}/.build/bin/${f} ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
.endfor
|
2020-05-18 23:48:23 +02:00
|
|
|
.for s in backup_agent dr_agent fastrestore_agent fdbr fdbrestore
|
2020-01-28 09:08:01 +01:00
|
|
|
${RLN} ${STAGEDIR}${PREFIX}/bin/fdbbackup ${STAGEDIR}${PREFIX}/bin/${s}
|
|
|
|
.endfor
|
2021-05-31 12:26:00 +02:00
|
|
|
# exposed libraries - confirm with upstream
|
2022-01-04 10:19:05 +01:00
|
|
|
.for l in libfdb_c.so libfdb_flow.a libfdb_sqlite.a libfdbclient.a libfdbrpc.a \
|
|
|
|
libflow.a
|
2020-01-28 09:08:01 +01:00
|
|
|
${STRIP_CMD} ${WRKDIR}/.build/lib/${l}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/.build/lib/${l} ${STAGEDIR}/${PREFIX}/lib/
|
|
|
|
.endfor
|
2021-05-31 12:26:00 +02:00
|
|
|
# exposed headers - confirm with upstream
|
2020-01-28 09:08:01 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/include/foundationdb
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bindings/c/foundationdb/fdb_c.h \
|
|
|
|
${STAGEDIR}/${PREFIX}/include/foundationdb/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/fdbclient/vexillographer/fdb.options \
|
|
|
|
${STAGEDIR}/${PREFIX}/include/foundationdb/
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/.build/bindings/c/foundationdb/fdb_c_options.g.h \
|
|
|
|
${STAGEDIR}/${PREFIX}/include/foundationdb/
|
2021-05-31 12:26:00 +02:00
|
|
|
# runtime related
|
2020-01-28 09:08:01 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DBDIR} \
|
|
|
|
${STAGEDIR}${LOGDIR} \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/foundationdb
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/foundationdb.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/foundationdb/foundationdb.conf.sample
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|