aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2026-11-27 03:25:09 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2026-11-27 04:44:36 +0000
commita57a58f19869f7b2226155b42e35919f91150f2a (patch)
treecf0b3c5a787e9ad24a69df972745633373ff6b64
parent7cf41f335366836ee991fced9c1a2cf524316414 (diff)
security/{pecl|php}-mcrypt: Convert port
Pecl package available only for PHP 7.2 and above Please note that pecl infrastructure is being deprecated so create a different port which is not dependent on pecl infrastructure. This commit also removes pecl-mcrypt ports in lieu of this port and updates reverse dependency. WWW: https://pecl.php.net/package/mcrypt https://github.com/php/pecl-encryption-mcrypt/
-rw-r--r--MOVED2
-rw-r--r--Mk/Uses/php.mk4
-rw-r--r--security/Makefile2
-rw-r--r--security/pecl-mcrypt/Makefile18
-rw-r--r--security/pecl-mcrypt/distinfo3
-rw-r--r--security/pecl-mcrypt/files/patch-php8414
-rw-r--r--security/php-mcrypt/Makefile23
-rw-r--r--security/php-mcrypt/distinfo3
-rw-r--r--security/php-mcrypt/pkg-descr (renamed from security/pecl-mcrypt/pkg-descr)0
9 files changed, 31 insertions, 38 deletions
diff --git a/MOVED b/MOVED
index 35af5788a77e..9a7eb4d58064 100644
--- a/MOVED
+++ b/MOVED
@@ -5476,7 +5476,6 @@ graphics/gimp-jxl-plugin||2026-07-03|Integrated into graphics/gimp-app
textproc/pecl-pspell|textproc/php-pspell|2026-07-05|Converted to standard extension from pecl extension
print/qpdfview@qt5||2026-07-10|Unflavorize, remove Qt5 flavor
print/qpdfview@qt6|print/qpdfview|2026-07-10|Unflavorize
-devel/pecl-raphf2|devel/php-raphf|2026-07-12|Converted to standard extension from pecl extension
devel/pecl-grpc|devel/php-grpc|2026-07-12|Converted to standard extension from pecl extension
devel/pecl-swoole|devel/php-swoole|2026-07-12|Converted to standard extension from pecl extension
graphics/pecl-qrencode|graphics/php-qrencode|2026-07-12|Converted to standard extension from pecl extension
@@ -5823,3 +5822,4 @@ devel/ros-wstool||2026-11-23|Has expired: Upstream repo archived on June 25, 202
devel/ros-vcstools||2026-11-23|Has expired: Upstream repo archived on June 26, 2020
chinese/fandol||2026-11-23|Declared obsolete by upstream
security/openssl36||2026-11-24|Has expired: Please use security/openssl (LTS)
+security/pecl-mcrypt|security/php-mcrypt|2026-11-27|Converted to standard extension from pecl extension
diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk
index 1b51d9e4d6b1..56e04b7b0124 100644
--- a/Mk/Uses/php.mk
+++ b/Mk/Uses/php.mk
@@ -423,7 +423,9 @@ imap_DEPENDS= mail/pecl-imap@${PHP_FLAVOR}
intl_DEPENDS= devel/php${PHP_VER}-intl
ldap_DEPENDS= net/php${PHP_VER}-ldap
mbstring_DEPENDS= converters/php${PHP_VER}-mbstring
-mcrypt_DEPENDS= security/pecl-mcrypt@${PHP_FLAVOR}
+. if ${PHP_VER} <= 85
+mcrypt_DEPENDS= security/php-mcrypt@${PHP_FLAVOR}
+. endif
memcache_DEPENDS= databases/pecl-memcache@${PHP_FLAVOR}
memcached_DEPENDS= databases/pecl-memcached@${PHP_FLAVOR}
mysqli_DEPENDS= databases/php${PHP_VER}-mysqli
diff --git a/security/Makefile b/security/Makefile
index 14f024f77ad4..7df133519a37 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -831,7 +831,6 @@
SUBDIR += pecl-gnupg
SUBDIR += pecl-krb5
SUBDIR += pecl-libsodium
- SUBDIR += pecl-mcrypt
SUBDIR += pecl-pam
SUBDIR += pecl-pkcs11
SUBDIR += pecl-scrypt
@@ -843,6 +842,7 @@
SUBDIR += pgpdump
SUBDIR += pgpgpg
SUBDIR += pgpin
+ SUBDIR += php-mcrypt
SUBDIR += php82-filter
SUBDIR += php82-sodium
SUBDIR += php83-filter
diff --git a/security/pecl-mcrypt/Makefile b/security/pecl-mcrypt/Makefile
deleted file mode 100644
index 7ba0aef582ed..000000000000
--- a/security/pecl-mcrypt/Makefile
+++ /dev/null
@@ -1,18 +0,0 @@
-PORTNAME= mcrypt
-PORTVERSION= 1.0.7
-PORTREVISION= 0
-CATEGORIES= security pear
-
-MAINTAINER= bofh@FreeBSD.org
-COMMENT= PHP extension for mcrypt, removed in PHP 7.2
-WWW= https://pecl.php.net/package/mcrypt
-
-LICENSE= PHP301
-
-LIB_DEPENDS= libltdl.so:devel/libltdl \
- libmcrypt.so:security/libmcrypt
-
-USES= php:pecl
-IGNORE_WITH_PHP= 86
-
-.include <bsd.port.mk>
diff --git a/security/pecl-mcrypt/distinfo b/security/pecl-mcrypt/distinfo
deleted file mode 100644
index e1038c69cacc..000000000000
--- a/security/pecl-mcrypt/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-TIMESTAMP = 1715118049
-SHA256 (PECL/mcrypt-1.0.7.tgz) = 12ea2fbbf2e2efbe790a12121f77bf096c8b84cef81d0216bec00d56e5badef4
-SIZE (PECL/mcrypt-1.0.7.tgz) = 27060
diff --git a/security/pecl-mcrypt/files/patch-php84 b/security/pecl-mcrypt/files/patch-php84
deleted file mode 100644
index 9d7ac9def9e6..000000000000
--- a/security/pecl-mcrypt/files/patch-php84
+++ /dev/null
@@ -1,14 +0,0 @@
---- mcrypt.c.orig 2023-12-19 10:55:02 UTC
-+++ mcrypt.c
-@@ -38,7 +38,11 @@
- #include "php_ini.h"
- #include "php_globals.h"
- #include "ext/standard/info.h"
-+#if PHP_VERSION_ID >= 80400
-+#include "ext/random/php_random.h"
-+#else
- #include "ext/standard/php_rand.h"
-+#endif
- #include "zend_smart_str.h"
- #include "php_mcrypt_filter.h"
-
diff --git a/security/php-mcrypt/Makefile b/security/php-mcrypt/Makefile
new file mode 100644
index 000000000000..ec40039e328f
--- /dev/null
+++ b/security/php-mcrypt/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= mcrypt
+DISTVERSION= 1.0.9
+CATEGORIES= security
+PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
+
+MAINTAINER= bofh@FreeBSD.org
+COMMENT= PHP extension for mcrypt, removed in PHP 7.2
+WWW= https://pecl.php.net/package/mcrypt \
+ https://github.com/php/pecl-encryption-mcrypt/
+
+LICENSE= PHP-3.01
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libltdl.so:devel/libltdl \
+ libmcrypt.so:security/libmcrypt
+
+USES= php:ext
+USE_GITHUB= yes
+GH_ACCOUNT= php
+GH_PROJECT= pecl-encryption-${PORTNAME}
+IGNORE_WITH_PHP= 86
+
+.include <bsd.port.mk>
diff --git a/security/php-mcrypt/distinfo b/security/php-mcrypt/distinfo
new file mode 100644
index 000000000000..cd966030a53c
--- /dev/null
+++ b/security/php-mcrypt/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1795492760
+SHA256 (php-pecl-encryption-mcrypt-1.0.9_GH0.tar.gz) = 83a39d6337cd87933be855e60a2f47e4d205bd88cc3cb79b869ab3b42f825350
+SIZE (php-pecl-encryption-mcrypt-1.0.9_GH0.tar.gz) = 27606
diff --git a/security/pecl-mcrypt/pkg-descr b/security/php-mcrypt/pkg-descr
index a8ba625750e5..a8ba625750e5 100644
--- a/security/pecl-mcrypt/pkg-descr
+++ b/security/php-mcrypt/pkg-descr