git: d47abcaff730 - main - mail/pecl-imap: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 30 Jul 2024 18:22:38 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=d47abcaff730c43fb9f569997aad37f7b9a07ab2 commit d47abcaff730c43fb9f569997aad37f7b9a07ab2 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2024-07-30 18:19:59 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2024-07-30 18:22:19 +0000 mail/pecl-imap: New port PHP extension to operate with the IMAP protocol, as well as the NNTP, POP3, and local mailbox access methods. This extension is no longer maintained by php team officially and might phase out of support in near future. --- Mk/Uses/php.mk | 12 ++++++++---- mail/Makefile | 1 + mail/pecl-imap/Makefile | 28 ++++++++++++++++++++++++++++ mail/pecl-imap/distinfo | 5 +++++ mail/pecl-imap/pkg-descr | 2 ++ 5 files changed, 44 insertions(+), 4 deletions(-) diff --git a/Mk/Uses/php.mk b/Mk/Uses/php.mk index c35e3dad88d7..ed76cf6f5f54 100644 --- a/Mk/Uses/php.mk +++ b/Mk/Uses/php.mk @@ -374,7 +374,7 @@ add-plist-phpext: # non-version specific components _USE_PHP_ALL= bcmath bitset bz2 calendar ctype curl dba dom \ enchant exif ffi fileinfo filter ftp gd gettext gmp \ - hash iconv igbinary intl json ldap mbstring mcrypt \ + hash iconv igbinary imap intl json ldap mbstring mcrypt \ memcache memcached mysqli odbc opcache \ openssl pcntl pcre pdo pdo_dblib pdo_firebird pdo_mysql \ pdo_odbc pdo_pgsql pdo_sqlite phar pgsql posix \ @@ -383,9 +383,9 @@ _USE_PHP_ALL= bcmath bitset bz2 calendar ctype curl dba dom \ tidy tokenizer xml xmlreader xmlrpc xmlwriter xsl zephir_parser \ zip zlib # version specific components -_USE_PHP_VER81= ${_USE_PHP_ALL} imap -_USE_PHP_VER82= ${_USE_PHP_ALL} imap -_USE_PHP_VER83= ${_USE_PHP_ALL} imap +_USE_PHP_VER81= ${_USE_PHP_ALL} +_USE_PHP_VER82= ${_USE_PHP_ALL} +_USE_PHP_VER83= ${_USE_PHP_ALL} _USE_PHP_VER84= ${_USE_PHP_ALL} bcmath_DEPENDS= math/php${PHP_VER}-bcmath @@ -407,7 +407,11 @@ gettext_DEPENDS=devel/php${PHP_VER}-gettext gmp_DEPENDS= math/php${PHP_VER}-gmp iconv_DEPENDS= converters/php${PHP_VER}-iconv igbinary_DEPENDS= converters/pecl-igbinary@${PHP_FLAVOR} +. if ${PHP_VER} <= 83 imap_DEPENDS= mail/php${PHP_VER}-imap +. else +imap_DEPENDS= mail/pecl-imap@${PHP_FLAVOR} +. endif intl_DEPENDS= devel/php${PHP_VER}-intl ldap_DEPENDS= net/php${PHP_VER}-ldap mbstring_DEPENDS= converters/php${PHP_VER}-mbstring diff --git a/mail/Makefile b/mail/Makefile index 4193b1f7d61f..d86307825e46 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -459,6 +459,7 @@ SUBDIR += pear-Net_Cyrus SUBDIR += pear-Net_IMAP SUBDIR += pear-Net_LMTP + SUBDIR += pecl-imap SUBDIR += pecl-mailparse SUBDIR += perdition SUBDIR += pflogsumm diff --git a/mail/pecl-imap/Makefile b/mail/pecl-imap/Makefile new file mode 100644 index 000000000000..74caf92aed10 --- /dev/null +++ b/mail/pecl-imap/Makefile @@ -0,0 +1,28 @@ +PORTNAME= imap +DISTVERSION= 1.0.2 +CATEGORIES= mail + +PATCH_SITES= https://github.com/php/pecl-mail-imap/commit/ +PATCHFILES= 4fc9970a29c205ec328f36edc8c119c158129324.diff:-p1 + +MAINTAINER= mickael.maillot@gmail.com +COMMENT= PHP extension to operate with the IMAP protocol +WWW= https://github.com/php/pecl-mail-imap + +LICENSE= PHP301 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libc-client.so.2010:mail/panda-cclient \ + libpcre2-8.so:devel/pcre2 + +USES= php:pecl localbase ssl +IGNORE_WITH_PHP= 81 82 83 + +CONFIGURE_ARGS+= --with-imap-ssl=${OPENSSLBASE} --with-imap=${LOCALBASE} +CONFIGURE_ENV+= OPENSSL_CFLAGS="-I${OPENSSLINC}" OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" + +TEST_TARGET= test + +LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl + +.include <bsd.port.mk> diff --git a/mail/pecl-imap/distinfo b/mail/pecl-imap/distinfo new file mode 100644 index 000000000000..70167ef0e690 --- /dev/null +++ b/mail/pecl-imap/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1722361491 +SHA256 (PECL/imap-1.0.2.tgz) = eb6d13fe10668dbb0ad6aa424139645434d0f8b4816c69dd1b251367adb3a16c +SIZE (PECL/imap-1.0.2.tgz) = 63295 +SHA256 (PECL/4fc9970a29c205ec328f36edc8c119c158129324.diff) = 110a2723afcf4cc02e703e8549002552de6b5303b66ee54bbd4c749b0ebe4b33 +SIZE (PECL/4fc9970a29c205ec328f36edc8c119c158129324.diff) = 489 diff --git a/mail/pecl-imap/pkg-descr b/mail/pecl-imap/pkg-descr new file mode 100644 index 000000000000..ff59fc016029 --- /dev/null +++ b/mail/pecl-imap/pkg-descr @@ -0,0 +1,2 @@ +PHP extension to operate with the IMAP protocol, as well as the +NNTP, POP3, and local mailbox access methods.