From nobody Wed Mar 13 00:58:00 2024 X-Original-To: dev-commits-ports-main@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 4TvXDn2p5cz5Ctqj; Wed, 13 Mar 2024 00:58:01 +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 4TvXDn0Ft6z3xD8; Wed, 13 Mar 2024 00:58:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710291481; 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=lBDefapkI06vFs8YDwz5IayDmuNHPRqjXAOaCGLZPU4=; b=xublOKM621Y/DWD3hx1LfI8/9qL3j2YCBCgIndQWOUFzpjRit1ET16dfEDeiy12lLOithW O/DaAYYUEiZbs4rY2mm5PnQAi516nAX1ozsi8kmaF5ArQj908ukb5vSOkoeT+2b3c9IEpE xQCFdkw7Cs9c7YZWL1hibMWXRJ9v+wccRi6JIKINZ1MfHl+VZcd7C+w0u6PmXIXqVxCUr1 N2Ni6tAV9SCB0MBDIIr7TaCtp/yucP+iSTW5V/CqIMmUZTf+QYl+sauRRp0jFln+abxl3N XHMQ/EDAHkhXN+3d8msGZelLv3lZbMLFFTAsVcAa94DYNP8lW0m7Ea+9d/yjnA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710291481; a=rsa-sha256; cv=none; b=Ijd0Zmdjn+moisjXFjRztU4QYFa+Wl+FpDRBQL+1ARe69VQ/R6r4lZIk/P/7f0TNalFKC3 iwz1JxlzZFPh2YnSUo2zFcgismM7du0BpcGsms8+gsoNT9V1xuRSBnQ3ru3YSBswP0p6CC MWd3MkQPyLJ/qmYsZqvf9bURixk+rIOmSUroe7Ur4n7UzpKdRkPass3tnd7LkUFjbMgk0G NYSiWAPKf7CfTKrlPeTw3K9wjucDP3uet+5LkipjRulMnGwwarwgDkVveu8IbZZcvmlkww A+Fz8k96n6dIgCaqWZdKYwjZt49PMgWRuqfW7GzVV7bEjtXhEZa7442ItxBQUA== 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=1710291481; 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=lBDefapkI06vFs8YDwz5IayDmuNHPRqjXAOaCGLZPU4=; b=dFlCfeRGPgZcoVtoI2Eznxjymp4u7FP9hqV8x9FFtQWk8eUq0oqdw0zVukgNi48VYAsA5T 6XDgkMGKriGQ/MPBWAoA8JOnAOsKfshjN2yvYqYZrwIvgyadOnvACFrLHCVyiDHpcQ/OBe PKfEEhTdcfASU8VE/q8oQCCWADf2v/Q9Lox12o9AhVDzOniUN7tbYi1Z5/XIOemmb0dqAe PSWUjt5ROnza5gSk3alF0Fdnh48BSuFIAWfA66wu8kxP1bLWgua/pZrje5FLMtGq+ok5rB 4NP5C33hp2HO3zZVQWwLjWnAA1MWD6cUNPyyakZGNOu0WaW1iC5l1T8sVzyxUQ== 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 4TvXDm6z9JzMQM; Wed, 13 Mar 2024 00:58:00 +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 42D0w0S5013832; Wed, 13 Mar 2024 00:58:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42D0w0Ej013829; Wed, 13 Mar 2024 00:58:00 GMT (envelope-from git) Date: Wed, 13 Mar 2024 00:58:00 GMT Message-Id: <202403130058.42D0w0Ej013829@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yasuhiro Kimura Subject: git: de40af5ca187 - main - security/pecl-xxtea: Add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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/main X-Git-Reftype: branch X-Git-Commit: de40af5ca187d945ab9458d14a62539db33de517 Auto-Submitted: auto-generated The branch main has been updated by yasu: URL: https://cgit.FreeBSD.org/ports/commit/?id=de40af5ca187d945ab9458d14a62539db33de517 commit de40af5ca187d945ab9458d14a62539db33de517 Author: Yasuhiro Kimura AuthorDate: 2024-03-13 00:12:27 +0000 Commit: Yasuhiro Kimura CommitDate: 2024-03-13 00:57:29 +0000 security/pecl-xxtea: Add new port Add security/pecl-xxtea, XXTEA encryption algorithm extension for PHP. MFH: 2024Q1 --- 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 fba81a9c8f31..74f65b885b42 100644 --- a/security/Makefile +++ b/security/Makefile @@ -795,6 +795,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.