From nobody Mon Oct 16 16:00:27 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4S8MJq2Z9Zz4xWnm; Mon, 16 Oct 2023 16:00:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S8MJq27slz4dSR; Mon, 16 Oct 2023 16:00:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697472027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9BD5cHDZWF3yChT0/L06p4EdJX51TrRAOOw9vLRQgRY=; b=ulumoRuXX1Z3g406SugxJIMXXEhOwW+b2iWkWtqoT2G6zHZEbpDFehsjVIMxthKiwc7Dc4 tsMl3bLljexcOpwPgFs2mSFppo+rdkOAVhyJoG80Hdhfguv1w2xDvZ6vmT4gtFWxzPN0o5 pySvZUIctfy8/wRCdwVviLIZ9dh/IVmdz91sws9A369SwvMCEa6F9WMQmB4Xufwp5m4pxR EMkcYMrFMQcCfo0Y+sUh7sYKFfEWIq1cjHUyI2Qjgks5RkM4AxhA5lWroRMxbPYEvhG69D NiRC83alDauXDNjq6F0zFndDvaxarBgpeUzghWwQMRiIzxGuYwyrZAU78OHnrA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697472027; a=rsa-sha256; cv=none; b=I0Ne8TRC8xQpdK7JWVexSKKHnpGCDuWdN+7L5wh+lSCYVgnkSSFKSzwGMfxhs7F9ykSQ84 qFMJIoFtulZ+ILOYkZHWzvHQ9OEjh9mBrj32xqsLqYWuMwOC2SacmviviDTJT6H+0IWlNs jPUj81CdTFfIWWk3r/cjZpT9n7uevbQsIgCpYIlThR1vstrAlGwT7IwoDbYtVXNEEM3L+Q bzQs6wmvux4MWwwzDHwMKuokfriT5DNisD1+Xy3Y5sr0rNjAzLP/cdSI5gtUTgroatWF83 1J83ThoN+8a0bGLto5AZZhzIezI5yJBDaQ576b1s5vZJti0P0EqQibPmlsnyZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697472027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=9BD5cHDZWF3yChT0/L06p4EdJX51TrRAOOw9vLRQgRY=; b=Ti/h7JE4RldbxYGEuhN44QH9hVvvvY8+86E1E6d9o11wLC6534oOkIAN55NFZ/lJl8PhUQ jj1y4nrzhrX7I2iNDMNmLibqtwXDbYli9GqTFcEBzofnf3z8MXcSqhEOOIRgA+Qj5Oaa/q keoi5j3XNc67LYoLDjTB0+OLqBfv2eb8Fpo+zn5GnwENKbvfuB7aN0Rae9iFEOxN6uFZVa UZHmBbgl0Ai5Wedsqr1MRcDyaZigP8lnQdLmalOADWa2OSnFdk5xRwz+mK5+HMtbxkZ6Ix CdVVmAU+gh9SLK/AcsAj6Pu5LhYgRYqu6Gd3CK93ki124vMO8Zj6gMh5Q5J8ZQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4S8MJq1G14zmqD; Mon, 16 Oct 2023 16:00:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39GG0RZY031665; Mon, 16 Oct 2023 16:00:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39GG0Rb3031662; Mon, 16 Oct 2023 16:00:27 GMT (envelope-from git) Date: Mon, 16 Oct 2023 16:00:27 GMT Message-Id: <202310161600.39GG0Rb3031662@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 833ccb4129f7 - main - databases/trilogy: Add trilogy 2.6.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 833ccb4129f7a9938fea067a2db5f05854d86dab Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=833ccb4129f7a9938fea067a2db5f05854d86dab commit 833ccb4129f7a9938fea067a2db5f05854d86dab Author: Po-Chuan Hsieh AuthorDate: 2023-10-16 15:17:25 +0000 Commit: Po-Chuan Hsieh CommitDate: 2023-10-16 15:59:38 +0000 databases/trilogy: Add trilogy 2.6.0 Trilogy is a client library for MySQL-compatible database servers, designed for performance, flexibility, and ease of embedding. It's currently in production use on github.com. Features: - Supports the most frequently used parts of the text protocol - Handshake - Password authentication - Query, ping, and quit commands - Support prepared statements (binary protocol) - Low-level protocol API completely decoupled from IO - Non-blocking client API wrapping the protocol API - Blocking client API wrapping the non-blocking API - No dependencies outside of POSIX, the C standard library & OpenSSL - Minimal dynamic allocation - MIT licensed --- databases/Makefile | 1 + databases/trilogy/Makefile | 24 ++++++++++++++++++++++++ databases/trilogy/distinfo | 3 +++ databases/trilogy/files/patch-Makefile | 24 ++++++++++++++++++++++++ databases/trilogy/pkg-descr | 17 +++++++++++++++++ databases/trilogy/pkg-plist | 16 ++++++++++++++++ 6 files changed, 85 insertions(+) diff --git a/databases/Makefile b/databases/Makefile index 59f7d3ab59ad..2ea92903b6f3 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -1059,6 +1059,7 @@ SUBDIR += tinycdb SUBDIR += tokyocabinet SUBDIR += tokyotyrant + SUBDIR += trilogy SUBDIR += tsearch_extras SUBDIR += tuning-primer SUBDIR += twemproxy diff --git a/databases/trilogy/Makefile b/databases/trilogy/Makefile new file mode 100644 index 000000000000..aedeb5a9ba1c --- /dev/null +++ b/databases/trilogy/Makefile @@ -0,0 +1,24 @@ +PORTNAME= trilogy +PORTVERSION= 2.6.0 +DISTVERSIONPREFIX= v +CATEGORIES= databases + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Client library for MySQL-compatible database servers +WWW= https://github.com/trilogy-libraries/trilogy + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= gmake ssl + +USE_GITHUB= yes +GH_ACCOUNT= trilogy-libraries + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/example/trilogy_query ${STAGEDIR}${PREFIX}/bin/ + cd ${WRKSRC}/inc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/include/ + ${INSTALL_DATA} ${WRKSRC}/libtrilogy.a ${STAGEDIR}${PREFIX}/lib/ + ${INSTALL_LIB} ${WRKSRC}/libtrilogy.so ${STAGEDIR}${PREFIX}/lib/ + +.include diff --git a/databases/trilogy/distinfo b/databases/trilogy/distinfo new file mode 100644 index 000000000000..de186e94a2d1 --- /dev/null +++ b/databases/trilogy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1697463030 +SHA256 (trilogy-libraries-trilogy-v2.6.0_GH0.tar.gz) = 7439670bfaaf76fa88648c686b54a4db11308cc7cd2feedf86ade6732e6eaec6 +SIZE (trilogy-libraries-trilogy-v2.6.0_GH0.tar.gz) = 113662 diff --git a/databases/trilogy/files/patch-Makefile b/databases/trilogy/files/patch-Makefile new file mode 100644 index 000000000000..591bd4280d91 --- /dev/null +++ b/databases/trilogy/files/patch-Makefile @@ -0,0 +1,24 @@ +--- Makefile.orig 2023-09-18 20:57:42 UTC ++++ Makefile +@@ -21,16 +21,19 @@ else + endif + + .PHONY: all +-all: libtrilogy.a examples ++all: libtrilogy.a libtrilogy.so examples + + .PHONY: examples + examples: $(EXAMPLES) + +-example/%: example/%.c libtrilogy.a ++example/%: example/%.c libtrilogy.so + $(CC) -o $@ $(CFLAGS) -pedantic $(LDFLAGS) $^ $(OPENSSL) + + libtrilogy.a: $(OBJS) + $(AR) r $@ $^ ++ ++libtrilogy.so: $(OBJS) ++ $(CC) -shared $^ -o $@ + + %.o: %.c inc/trilogy/*.h + $(CC) -o $@ $(CFLAGS) -pedantic -c $< diff --git a/databases/trilogy/pkg-descr b/databases/trilogy/pkg-descr new file mode 100644 index 000000000000..3c677b5465ba --- /dev/null +++ b/databases/trilogy/pkg-descr @@ -0,0 +1,17 @@ +Trilogy is a client library for MySQL-compatible database servers, designed for +performance, flexibility, and ease of embedding. + +It's currently in production use on github.com. + +Features: +- Supports the most frequently used parts of the text protocol + - Handshake + - Password authentication + - Query, ping, and quit commands +- Support prepared statements (binary protocol) +- Low-level protocol API completely decoupled from IO +- Non-blocking client API wrapping the protocol API +- Blocking client API wrapping the non-blocking API +- No dependencies outside of POSIX, the C standard library & OpenSSL +- Minimal dynamic allocation +- MIT licensed diff --git a/databases/trilogy/pkg-plist b/databases/trilogy/pkg-plist new file mode 100644 index 000000000000..a75a94cfd941 --- /dev/null +++ b/databases/trilogy/pkg-plist @@ -0,0 +1,16 @@ +bin/trilogy_query +include/trilogy.h +include/trilogy/blocking.h +include/trilogy/buffer.h +include/trilogy/builder.h +include/trilogy/charset.h +include/trilogy/client.h +include/trilogy/error.h +include/trilogy/packet_parser.h +include/trilogy/protocol.h +include/trilogy/reader.h +include/trilogy/socket.h +include/trilogy/vendor/curl_hostcheck.h +include/trilogy/vendor/openssl_hostname_validation.h +lib/libtrilogy.a +lib/libtrilogy.so