Charlie Li 9c6febcd11
databases/cockroach: deprecate and expire
Excerpt from PR comment:

  The more pressing issue however is that the latest versions are
  no longer open source (in the strict definition). Releases between
  sometime in 2019 and prior to 20241118 are under Business Source
  Licence 1.1 at release time, electing to change to the open source
  Apache Licence 2.0 three years after the branch was first released.
  Starting 20241118 all releases of the software are fully proprietary
  even though source is available.

  As of [20251202], 22.2.19 is the latest version that is now under
  an open source licence, but the whole 22.2 branch is completely
  unsupported upstream. There are a couple newer LTS branches that
  are still supported but the earliest they become open source is
  late next year, by which point they may also become unsupported.

PR: 272257
2025-12-24 01:03:50 -05:00

54 lines
1.5 KiB
Makefile

PORTNAME= cockroach
DISTVERSIONPREFIX= v
DISTVERSION= 19.1.11
PORTREVISION= 35
CATEGORIES= databases
MASTER_SITES= https://binaries.cockroachdb.com/
EXTRACT_SUFX= .src.tgz
MAINTAINER= vishwin@FreeBSD.org
COMMENT= Cloud-native SQL database that survive disasters
WWW= https://www.cockroachlabs.com/
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/src/github.com/cockroachdb/cockroach/LICENSE
DEPRECATED= Current versions are fully-proprietary software, see PR 272257
EXPIRATION_DATE= 2025-12-31
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= 64-bit system is strongly recommended
BUILD_DEPENDS= autoconf:devel/autoconf \
bash:shells/bash \
cmake:devel/cmake-core
USES= gmake go libedit
USE_GCC= yes # RocksDB is broken with clang - See PR 236213
USE_RC_SUBR= cockroach
NO_CCACHE= yes
ALL_TARGET= build
PLIST_FILES= bin/cockroach
USERS= cockroach
GROUPS= cockroach
post-patch:
@${REINPLACE_CMD} -e 's|LDFLAGS: -ledit|LDFLAGS: -L${LOCALBASE}/lib -ledit|g' \
-e 's|CPPFLAGS: -Ishim|CPPFLAGS: -I${LOCALBASE}/include -Ishim|g' \
${WRKSRC}/src/github.com/cockroachdb/cockroach/vendor/github.com/knz/go-libedit/unix/editline_unix.go
@${REINPLACE_CMD} -e 's|build -i -o|build -o|g' \
${WRKSRC}/src/github.com/cockroachdb/cockroach/Makefile
do-build:
@${SETENV} -i ${MAKE_ENV} ${GO_ENV} \
${MAKE_CMD} -C ${WRKSRC} buildoss
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/cockroachdb/cockroach/cockroachoss ${STAGEDIR}${PREFIX}/bin/cockroach
.include <bsd.port.mk>