From nobody Mon Sep 23 23:21:32 2024 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 4XCJsS6Dzhz5WgR4; Mon, 23 Sep 2024 23:21:32 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XCJsS5YyDz4tQx; Mon, 23 Sep 2024 23:21:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727133692; 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=W9TMbQwSPwNHtUiQJ8Hm+h/kZPaAs596RL5A71uy898=; b=h+SyrhuHTYocJl7cx+rRshijtwNaWpRjHz3isWbBOjzv0dunMosnfcMocmyK6uWnsXNZjU wntECfGj/qkN4cT2kij7D8k7tJK3T8BC4HbSPvM4prRJ4gp0rgZ+Cj6bC5lgdGQBOOWdcM Ruz36KogmwwVeiKRpTv8si4QPQgODMv/NeuHsTs7SdbaUbS1qJNWFvzyQRjgBXURhdjVV7 Cb6H+W7BYqxcKuHMy50Noq2JiKjl6cxiKGhTNW/sLOJZuFxzi92S4r7VMeh/qcRPuatflD oqLQOTDxexp5JJ3yOAStetWBibEH7ZeDH+mt7xBnU9xkSY/vjMXTZz66f741Ng== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727133692; a=rsa-sha256; cv=none; b=WLGMpOKNPoVUGMFTHNdnIbo9/gvabmQ7w8ZSKVPOj3t4tjpzXWu42kq1+lMi+/vFVeTjJA ueUULmdc+7+dibrLwR875MYwoL2rGLY5hFdi6Tj2vd2v1YcImYJ7yH5sM8TvgduQoUjQbQ U77JBlOpugAd3IvI20F5BbVGxgsjoCefkIx5G5WzmviAbqQr8NrNWqhTYNWZBsDynHFz/q 7AONkrG7LQTk0PiXBYUh/cwT8jtbC4xYdh4kDTRDQ7/unWoqngYqx5CRJyxs8HjU8mBeln Eeok9/XiN+YbF3XLHuegrQoUwm0Z9eWeSMjqIHqfL2uH+0gy0q95psElZayxaQ== 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=1727133692; 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=W9TMbQwSPwNHtUiQJ8Hm+h/kZPaAs596RL5A71uy898=; b=ecrt4nKp81n0YN4sZUH7Oi8zdnjJKtAplSJB4ooR3+FBmH9LiIt7++/0ArFKCrLTweJXJi 1UbSRNOV2T3waJ3r9ZpQwXsldcQssXi/kL60qC8UMMm7J6PmKKF9NGERISfOwIULVSaTnT 3nn+4lTba0WFtJKlHMGiKxcQvtEmGGKucH/lXOuW30FRJh+4mHlK6hs4qDrSMwHuYmnk6j FPWgI/voa4GVjlkeQxc5GfLebigZ/BWxFTvATsZmJtxzQo1sZ1uNHrlDfVcXA2R0mV16Vk 58BqbR49IllHfNsRK5KxyJXIjlKdJZnWdNDHYc6AeHOpdFDk+WKPeYxQbU1mZQ== 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 4XCJsS58yJz14YN; Mon, 23 Sep 2024 23:21:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48NNLWFZ060128; Mon, 23 Sep 2024 23:21:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48NNLWhV060125; Mon, 23 Sep 2024 23:21:32 GMT (envelope-from git) Date: Mon, 23 Sep 2024 23:21:32 GMT Message-Id: <202409232321.48NNLWhV060125@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Ryan Steinmetz Subject: git: 44c309b0d9b9 - main - databases/proxysql: Update to 2.6.6 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: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zi X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 44c309b0d9b967210ab5a901ff40b832a49746b3 Auto-Submitted: auto-generated The branch main has been updated by zi: URL: https://cgit.FreeBSD.org/ports/commit/?id=44c309b0d9b967210ab5a901ff40b832a49746b3 commit 44c309b0d9b967210ab5a901ff40b832a49746b3 Author: Ryan Steinmetz AuthorDate: 2024-09-23 23:21:24 +0000 Commit: Ryan Steinmetz CommitDate: 2024-09-23 23:21:24 +0000 databases/proxysql: Update to 2.6.6 --- databases/proxysql/Makefile | 20 +++++--------------- databases/proxysql/distinfo | 6 +++--- .../patch-deps_sqlite3_sqlite3__pass__exts.patch | 11 ----------- .../proxysql/files/patch-lib_ProxySQL__Admin.cpp | 11 ----------- .../files/patch-lib_ProxySQL__RESTAPI__Server.cpp | 11 ----------- databases/proxysql/files/proxysql.conf | 2 -- databases/proxysql/files/proxysql.conf-newsyslog | 2 +- databases/proxysql/files/proxysql.in | 13 +++++-------- databases/proxysql/pkg-message | 4 ---- databases/proxysql/pkg-plist | 3 --- 10 files changed, 14 insertions(+), 69 deletions(-) diff --git a/databases/proxysql/Makefile b/databases/proxysql/Makefile index b86e0d65216d..7741ea538d32 100644 --- a/databases/proxysql/Makefile +++ b/databases/proxysql/Makefile @@ -1,5 +1,5 @@ PORTNAME= proxysql -PORTVERSION= 2.6.4 +PORTVERSION= 2.6.6 CATEGORIES= databases MAINTAINER= zi@FreeBSD.org @@ -42,24 +42,17 @@ GH_ACCOUNT= sysown post-patch: @${REINPLACE_CMD} -e 's,/etc/,${ETCDIR}/,g' ${WRKSRC}/lib/ProxySQL_GloVars.cpp - @${REINPLACE_CMD} \ - -e 's|strftime(__buffer, 25, "%Y-%m-%d %H:%M:%S", __tm_info);|snprintf(__buffer, 3, "%s", "");|g' \ - -e 's,"%s \[,"%s\[,g' \ - -e '/__timer/d' \ - -e '/__tm_info/d' \ - ${WRKSRC}/include/proxysql_debug.h @${REINPLACE_CMD} \ -e 's,/var/lib,/var/db,g' \ -e '7s/^/errorlog="\/var\/log\/proxysql\/proxysql-error.log"\n\n/g' \ - -e '7s/^/pid="\/var\/run\/${PORTNAME}\/${PORTNAME}.pid"\n/g' \ + -e '7s/^/pidfile="\/var\/run\/${PORTNAME}\/${PORTNAME}.pid"\n/g' \ ${WRKSRC}/src/proxysql.cfg @${REINPLACE_CMD} \ - -e 's,grep,${LOCALBASE}/bin/grep,g' \ - -e 's,ln -fsT,ln -fs,' \ + -e 's,grep -P,${LOCALBASE}/bin/grep -P,g' \ + -e '/ export C/d' \ -e 's,PROXYSQLCLICKHOUSE=1 ,,g' \ -e 's,--enable-fastopen=false ,--enable-fastopen=false --enable-shared=no ,g' \ - ${WRKSRC}/Makefile ${WRKSRC}/deps/Makefile \ - ${WRKSRC}/lib/Makefile ${WRKSRC}/src/Makefile + ${WRKSRC}/Makefile ${WRKSRC}/deps/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/proxysql ${STAGEDIR}${LOCALBASE}/sbin @@ -67,11 +60,8 @@ do-install: post-install: ${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}/var/db/${PORTNAME} \ ${STAGEDIR}/var/run/${PORTNAME} \ - ${STAGEDIR}${LOCALBASE}/etc/syslog.d \ ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d \ ${STAGEDIR}/var/log/${PORTNAME} - ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf \ - ${STAGEDIR}${LOCALBASE}/etc/syslog.d ${INSTALL_DATA} ${FILESDIR}/proxysql.conf-newsyslog \ ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/proxysql.conf.sample ${INSTALL_DATA} ${WRKSRC}/src/proxysql.cfg \ diff --git a/databases/proxysql/distinfo b/databases/proxysql/distinfo index 373ba9b4f0dc..de4abe7a3946 100644 --- a/databases/proxysql/distinfo +++ b/databases/proxysql/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1724763891 -SHA256 (sysown-proxysql-2.6.4_GH0.tar.gz) = d1b018550fc5a0e16c697795060d98dd8c8d1d77e6ce184c2065c5d4374d26ab -SIZE (sysown-proxysql-2.6.4_GH0.tar.gz) = 50074326 +TIMESTAMP = 1727108943 +SHA256 (sysown-proxysql-2.6.6_GH0.tar.gz) = c447ac0c4532c6654cc648416e3dd1560824f67406f510efe52c4c6291a1ef4a +SIZE (sysown-proxysql-2.6.6_GH0.tar.gz) = 50425374 diff --git a/databases/proxysql/files/patch-deps_sqlite3_sqlite3__pass__exts.patch b/databases/proxysql/files/patch-deps_sqlite3_sqlite3__pass__exts.patch deleted file mode 100644 index 6fd69e2b56a6..000000000000 --- a/databases/proxysql/files/patch-deps_sqlite3_sqlite3__pass__exts.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- deps/sqlite3/sqlite3_pass_exts.patch.orig 2024-06-03 21:25:24 UTC -+++ deps/sqlite3/sqlite3_pass_exts.patch -@@ -11,7 +11,7 @@ - +//////////////////////////////////////////////////////////////////////////////// - + - +// ctype.h --+extern int toupper (int __c) __THROW; -++extern int toupper (int __c); - + - +// SHA256_crypt - +char * sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen); diff --git a/databases/proxysql/files/patch-lib_ProxySQL__Admin.cpp b/databases/proxysql/files/patch-lib_ProxySQL__Admin.cpp deleted file mode 100644 index deeac65cb508..000000000000 --- a/databases/proxysql/files/patch-lib_ProxySQL__Admin.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- lib/ProxySQL_Admin.cpp.orig 2024-04-05 16:24:43 UTC -+++ lib/ProxySQL_Admin.cpp -@@ -9507,7 +9507,7 @@ void ProxySQL_Admin::p_update_metrics() { - * @return On success, the number of currently opened file descriptors, '-1' otherwise. - */ - int32_t get_open_fds() { -- DIR* dir = opendir("/proc/self/fd"); -+ DIR* dir = opendir("/dev/fd"); - if (dir == NULL) { - proxy_error("'opendir()' failed with error: '%d'\n", errno); - return -1; diff --git a/databases/proxysql/files/patch-lib_ProxySQL__RESTAPI__Server.cpp b/databases/proxysql/files/patch-lib_ProxySQL__RESTAPI__Server.cpp deleted file mode 100644 index 72ae22c8e798..000000000000 --- a/databases/proxysql/files/patch-lib_ProxySQL__RESTAPI__Server.cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- lib/ProxySQL_RESTAPI_Server.cpp.orig 2024-04-01 15:50:50 UTC -+++ lib/ProxySQL_RESTAPI_Server.cpp -@@ -346,7 +346,7 @@ ProxySQL_RESTAPI_Server::ProxySQL_RESTAPI_Server( - // NOTE: Right now ProxySQL is using the simplest mode of 'libhttpserver' for serving 'REST' queries, - // in the current mode concurrency on serving requests is low, and throughput is directly related with - // the time required to execute the target script, since each of the calls are blocking. -- ws = std::unique_ptr(new webserver(create_webserver(p))); -+ ws = std::unique_ptr(new webserver(create_webserver(p).start_method(http::http_utils::start_method_T::THREAD_PER_CONNECTION))); - // NOTE: Enable for benchmarking purposes. In this mode each request will be served by it's own thread. - // ws = std::unique_ptr(new webserver(create_webserver(p).start_method(http::http_utils::start_method_T::THREAD_PER_CONNECTION))); - auto sr = new sync_resource(); diff --git a/databases/proxysql/files/proxysql.conf b/databases/proxysql/files/proxysql.conf deleted file mode 100644 index 68fbfbcf23e8..000000000000 --- a/databases/proxysql/files/proxysql.conf +++ /dev/null @@ -1,2 +0,0 @@ -!proxysql -*.* /var/log/proxysql.log diff --git a/databases/proxysql/files/proxysql.conf-newsyslog b/databases/proxysql/files/proxysql.conf-newsyslog index 8a51ca3a6927..b67f04ed636d 100644 --- a/databases/proxysql/files/proxysql.conf-newsyslog +++ b/databases/proxysql/files/proxysql.conf-newsyslog @@ -1 +1 @@ -/var/log/proxysql.log root:wheel 640 10 1000 * JC +/var/log/proxysql.log root:wheel 640 10 1000 * JC /var/run/proxysql/proxysql.pid SIGUSR1 diff --git a/databases/proxysql/files/proxysql.in b/databases/proxysql/files/proxysql.in index 9220f30c0889..ad46d3f22ba3 100644 --- a/databases/proxysql/files/proxysql.in +++ b/databases/proxysql/files/proxysql.in @@ -33,15 +33,12 @@ load_rc_config $name : ${proxysql_args:=""} : ${proxysql_restart_delay:="10"} - +##### REMOVE daemon, allow proxysql to fork pidfile="/var/run/proxysql/proxysql.pid" -command="/usr/sbin/daemon" -proxysql_command="%%PREFIX%%/sbin/proxysql" -command_args="-rP ${pidfile} -S -R ${proxysql_restart_delay} \ - -T ${name} ${proxysql_command} \ - -f -c ${proxysql_config} \ - -D ${proxysql_datadir} \ - --no-version-check ${proxysql_args}" +command="%%PREFIX%%/sbin/proxysql" +command_args="-c ${proxysql_config} \ + -D ${proxysql_datadir} \ + --no-version-check ${proxysql_args}" required_files="${proxysql_config}" extra_commands="reload initial" reload_cmd=proxysql_reload diff --git a/databases/proxysql/pkg-message b/databases/proxysql/pkg-message index d7fdd1560919..c78b1cd41f14 100644 --- a/databases/proxysql/pkg-message +++ b/databases/proxysql/pkg-message @@ -10,10 +10,6 @@ If you have not yet enabled it, please do the following: To make this change persist through reboots, you must edit /etc/fstab: fdesc /dev/fd fdescfs rw 0 0 - -In order for logging to function, you must restart syslogd: - -# service syslogd restart EOM } ] diff --git a/databases/proxysql/pkg-plist b/databases/proxysql/pkg-plist index f49b893c5a16..cec65a43ac82 100644 --- a/databases/proxysql/pkg-plist +++ b/databases/proxysql/pkg-plist @@ -1,4 +1,3 @@ -etc/syslog.d/proxysql.conf sbin/proxysql @dir(,proxysql,0750) %%ETCDIR%% @sample(,proxysql,0640) %%ETCDIR%%/proxysql.cfg.sample @@ -6,5 +5,3 @@ sbin/proxysql @dir(proxysql,proxysql,0750) /var/db/proxysql @dir(proxysql,proxysql,0750) /var/run/proxysql @dir(proxysql,proxysql,0750) /var/log/proxysql -@postexec test -f /var/log/proxysql.log || touch /var/log/proxysql.log -@postexec chmod 600 /var/log/proxysql.log