From nobody Wed Mar 13 00:59:23 2024 X-Original-To: dev-commits-ports-branches@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 4TvXGN0hxvz5Cthp; Wed, 13 Mar 2024 00:59:24 +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 4TvXGN083cz3xSC; Wed, 13 Mar 2024 00:59:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710291564; 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=ZaZWCp/5l7TrpDAv7OIzv3wih7VYB09zDEqJkmqJsD8=; b=t+3I0wXgih7p3UCqpUwdmx++kQxQ1REeZv9RS675O+Wmc0DhL7kQ7iedVslFiaqh+hzxXo Gaqu2WwcExG6VS14FzbkFS7P1zvbh62O8/hMPQbFeAYw8b0rYUCOH+StYqiJWRmNwcz5w5 0f709D2VpSEnTNkzRjY/usQkkvkmL4O09sZ5h7fnlpoQb6v9FbL5Avzkl8w92eP35FS6/C LKbMr9UdEFT2UAHL/CngWusNAktVbNHYstMTMS2eqIEGh31/B4K3M8vCgswle+W00pYLFw n5hEm8Ej1rFRJcX8cXR04zCbvzxZBCKJXN1xVCuiGpe4H9bUkdlx7Uui//GIxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710291564; a=rsa-sha256; cv=none; b=MOlQl7sX39BMTklC+YhRESFdxL8X98plLXRnGTSZsz80QrDR/DNG19JO0T7pzXQI1Tn8FB H92EjYQ8edR+2usxC+GEqdtK42G8d3gfbLa+xTWfVAnkE8NiJtc2qhvP46jFPukYSTar6z fpuXtp2QvuIZTZDMLYufHdNWN1s1NkUxltpZ82z1R7N/dnhNGeQzAWWkoDkj3ILjKH+LAO O3QFEO29oDncvH85DGaXb7Clgtu6S4cmv/nQmfUdeTYgR76wdvIj6kjrU4nSpSkPtlilIk AwIKvJIETQ5BO7dt2erExFU3OEWlfuzw/xJsivxJ2PNCF7WaB124MLimAvxnNw== 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=1710291564; 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=ZaZWCp/5l7TrpDAv7OIzv3wih7VYB09zDEqJkmqJsD8=; b=Rx1K0QqGKGJ2NNy4m6Eot1k3O7DH+q35kIXFLrl0L64OZZ86EU1jAII5hZsJZZjWGnlTMP DY7m38+hpdz7Xdu2EZjuMYOmV0UvYwEQnV7JX0zpd16s9E0HlNo7biuokWS5r7dX1WuGcw eqzuOMy4gwJY7cLwzEqm2QEIA2wbtsK4dpuuiYZdLwprCL/rmwxk2vSzmMCBrQEMlCXa7m b+Z0a9OwWg1aVd6/Trrna7bVwGhJTa9708Dy21/ASbDpOe5MAilCDqgNgV782CiVwoRiOt Mm+5w3QEMAiM5I8/hKMsyz2opR+5X7QdHgolx3dNxgJteskhqlNICmkREdr/yQ== 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 4TvXGM6sjqzMN0; Wed, 13 Mar 2024 00:59:23 +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 42D0xNXM014269; Wed, 13 Mar 2024 00:59:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42D0xNXs014266; Wed, 13 Mar 2024 00:59:23 GMT (envelope-from git) Date: Wed, 13 Mar 2024 00:59:23 GMT Message-Id: <202403130059.42D0xNXs014266@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org From: Yasuhiro Kimura Subject: git: 439291470380 - 2024Q1 - security/pecl-xxtea: Add new port List-Id: Commits to the quarterly branches of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-branches@freebsd.org X-BeenThere: dev-commits-ports-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yasu X-Git-Repository: ports X-Git-Refname: refs/heads/2024Q1 X-Git-Reftype: branch X-Git-Commit: 439291470380e1afc631b46ecb02c7345d389f7a Auto-Submitted: auto-generated The branch 2024Q1 has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=439291470380e1afc631b46ecb02c7345d389f7a commit 439291470380e1afc631b46ecb02c7345d389f7a Author: Yasuhiro Kimura AuthorDate: 2024-03-13 00:12:27 +0000 Commit: Yasuhiro Kimura CommitDate: 2024-03-13 00:59:02 +0000 security/pecl-xxtea: Add new port Add security/pecl-xxtea, XXTEA encryption algorithm extension for PHP. MFH: 2024Q1 (cherry picked from commit de40af5ca187d945ab9458d14a62539db33de517) --- security/Makefile | 1 + security/pecl-xxtea/Makefile | 14 ++++++++++++++ security/pecl-xxtea/distinfo | 3 +++ security/pecl-xxtea/files/patch-php__xxtea.c | 29 ++++++++++++++++++++++++++++ security/pecl-xxtea/pkg-descr | 4 ++++ 5 files changed, 51 insertions(+) diff --git a/security/Makefile b/security/Makefile index 24e5ef2f8ead..c61c48bcc171 100644 --- a/security/Makefile +++ b/security/Makefile @@ -797,6 +797,7 @@ SUBDIR += pecl-pkcs11 SUBDIR += pecl-scrypt SUBDIR += pecl-ssh2 + SUBDIR += pecl-xxtea SUBDIR += peda SUBDIR += pev SUBDIR += pgpdump diff --git a/security/pecl-xxtea/Makefile b/security/pecl-xxtea/Makefile new file mode 100644 index 000000000000..9df1ae76aeb6 --- /dev/null +++ b/security/pecl-xxtea/Makefile @@ -0,0 +1,14 @@ +PORTNAME= xxtea +DISTVERSION= 1.0.11 +CATEGORIES= security + +MAINTAINER= yasu@FreeBSD.org +COMMENT= XXTEA encryption algorithm extension for PHP +WWW= https://github.com/xxtea/xxtea-pecl + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +USES= dos2unix php:pecl + +.include diff --git a/security/pecl-xxtea/distinfo b/security/pecl-xxtea/distinfo new file mode 100644 index 000000000000..2cd512de6cb2 --- /dev/null +++ b/security/pecl-xxtea/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1710288047 +SHA256 (PECL/xxtea-1.0.11.tgz) = 5b1e318d3e70b27ad017d125d09ba3cf7bb3859e11be864a7bc3ddba421108af +SIZE (PECL/xxtea-1.0.11.tgz) = 7404 diff --git a/security/pecl-xxtea/files/patch-php__xxtea.c b/security/pecl-xxtea/files/patch-php__xxtea.c new file mode 100644 index 000000000000..2eab88f6ac5f --- /dev/null +++ b/security/pecl-xxtea/files/patch-php__xxtea.c @@ -0,0 +1,29 @@ +--- php_xxtea.c.orig 2024-03-12 22:05:18 UTC ++++ php_xxtea.c +@@ -275,7 +275,7 @@ ZEND_FUNCTION(xxtea_encrypt) { + size_t i, ret_length; + uint8_t fixed_key[16]; + +- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &data, &data_len, &key, &key_len) == FAILURE) { ++ if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &data, &data_len, &key, &key_len) == FAILURE) { + return; + } + if (data_len == 0) { +@@ -308,7 +308,7 @@ ZEND_FUNCTION(xxtea_decrypt) { + size_t i, ret_length; + uint8_t fixed_key[16]; + +- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &data, &data_len, &key, &key_len) == FAILURE) { ++ if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &data, &data_len, &key, &key_len) == FAILURE) { + return; + } + if (data_len == 0) { +@@ -340,7 +340,7 @@ ZEND_MINIT_FUNCTION(xxtea) { + ZEND_MINIT_FUNCTION(xxtea) { + zend_class_entry ce; + INIT_CLASS_ENTRY(ce, "XXTEA", xxtea_method); +- xxtea_ce = zend_register_internal_class(&ce TSRMLS_CC); ++ xxtea_ce = zend_register_internal_class(&ce); + return SUCCESS; + } + diff --git a/security/pecl-xxtea/pkg-descr b/security/pecl-xxtea/pkg-descr new file mode 100644 index 000000000000..589cc44ee983 --- /dev/null +++ b/security/pecl-xxtea/pkg-descr @@ -0,0 +1,4 @@ +XXTEA is a fast and secure encryption algorithm. This is a XXTEA +extension for PHP. It is different from the original XXTEA encryption +algorithm. It encrypts and decrypts string instead of uint32 array, +and the key is also string.