summaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-02-24 05:51:29 +0000
committeredwin <edwin@FreeBSD.org>2003-02-24 05:51:29 +0000
commitebb76d0295ac95824679b9d4fddb8ab812fd9cec (patch)
tree73140e686e7d1b02d172622f9728e90edb8f2caf /mail
parentdb62b47fa4214e30a42fe7615d788fd394634bb5 (diff)
downloadFreeBSD-ports-ebb76d0295ac95824679b9d4fddb8ab812fd9cec.zip
FreeBSD-ports-ebb76d0295ac95824679b9d4fddb8ab812fd9cec.tar.gz
New port: mail/pear-mailparse
PEAR classes to create and decode MIME messages. PR: ports/48121 Submitted by: Thierry Thomas <thierry@pompo.net>
Diffstat (limited to 'mail')
-rw-r--r--mail/Makefile1
-rw-r--r--mail/pear-mailparse/Makefile90
-rw-r--r--mail/pear-mailparse/distinfo1
-rw-r--r--mail/pear-mailparse/pkg-deinstall13
-rw-r--r--mail/pear-mailparse/pkg-descr7
-rw-r--r--mail/pear-mailparse/pkg-plist24
-rw-r--r--mail/pecl-mailparse/Makefile90
-rw-r--r--mail/pecl-mailparse/distinfo1
-rw-r--r--mail/pecl-mailparse/pkg-deinstall13
-rw-r--r--mail/pecl-mailparse/pkg-descr7
-rw-r--r--mail/pecl-mailparse/pkg-plist24
11 files changed, 271 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile
index 99de89b..7a248f9 100644
--- a/mail/Makefile
+++ b/mail/Makefile
@@ -184,6 +184,7 @@
SUBDIR += pantomime-ssl
SUBDIR += pathalias
SUBDIR += pear-Mail_Mime
+ SUBDIR += pear-mailparse
SUBDIR += perdition
SUBDIR += pflogsumm
SUBDIR += pgen
diff --git a/mail/pear-mailparse/Makefile b/mail/pear-mailparse/Makefile
new file mode 100644
index 0000000..3237a88
--- /dev/null
+++ b/mail/pear-mailparse/Makefile
@@ -0,0 +1,90 @@
+# Ports collection makefile for: pear-mailparse
+# Date created: 09 January 2003
+# Whom: Thierry Thomas (<thierry@pompo.net>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= mailparse
+PORTVERSION= 0.9.1
+CATEGORIES= mail www
+MASTER_SITES= http://pear.php.net/get/
+PKGNAMEPREFIX= pear-
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= PEAR
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= PEAR classes to create and decode MIME messages
+
+BUILD_DEPENDS= automake:${PORTSDIR}/devel/automake \
+ autoconf:${PORTSDIR}/devel/autoconf213 \
+ ${LOCALBASE}/bin/phpize:${PORTSDIR}/www/mod_php4 \
+ ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
+RUN_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
+
+.include <bsd.port.pre.mk>
+
+# Don't call autoconf directly, ./buildconf does this
+GNU_CONFIGURE= yes
+USE_AUTOCONF= no
+USE_LIBTOOL= no
+USE_REINPLACE= yes
+
+REINPLACE_ARGS= -i.before_mailparse
+
+.if exists(${LOCALBASE}/bin/php-config)
+PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix
+EXT_DIR!= ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \
+ "s:${PHP_BASE}/::"
+.else
+PHP_BASE!= ${LOCALBASE}
+.endif
+PEAR= ${LOCALBASE}/bin/pear
+LPHP_LIB= lib/php
+PHP_DIR?= ${LOCALBASE}/etc
+PHP_INI= ${PHP_DIR}/php.ini
+PEARDIR= ${PHP_BASE}/${LPHP_LIB}
+PLIST_SUB= EXTDIR=${EXT_DIR} PEARDIR=${LPHP_LIB}
+
+DOCSDIR= ${PEARDIR}/docs/${PORTNAME}
+DOCS= CREDITS README try.php
+TESTDIR= ${PEARDIR}/tests/${PORTNAME}
+
+post-patch:
+ (cd ${WRKSRC} && ${LOCALBASE}/bin/phpize)
+
+pre-configure:
+ @if ! ${LOCALBASE}/bin/php -i | ${GREP} -q -e "--enable-mbstring"; then \
+ ${ECHO_MSG} "" ; \
+ ${ECHO_MSG} "Please configure PHP with mbstring support." ; \
+ ${ECHO_MSG} "" ; \
+ ${FALSE} ; \
+ fi
+
+post-install:
+ @${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/mailparse.so
+# Configure extension_dir
+ @if [ ! -f ${PHP_INI} ]; then \
+ ${ECHO_MSG} "===> Creating ${PHP_INI} for PHP" ; \
+ ${CP} -p ${PHP_INI}-dist ${PHP_INI} ; \
+ fi
+ @if ${GREP} -q -e '^extension_dir = ./' ${PHP_INI} ; then \
+ ${ECHO_MSG} "===> Configuring ${PHP_INI}" ; \
+ ${REINPLACE_CMD} -e 's!^extension_dir = ./!extension_dir = ${PHP_BASE}/${EXT_DIR}!' \
+ ${PHP_INI} ; \
+ fi
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+ @${MKDIR} ${TESTDIR}
+ @${CP} -Rp ${WRKSRC}/tests ${TESTDIR}
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR}
+ @${ECHO_MSG} "===> Examples installed in ${TESTDIR}."
+.endif
+# Register a new package
+ @${PEAR} install -r -f ${WRKDIR}/package.xml
+
+.include <bsd.port.post.mk>
diff --git a/mail/pear-mailparse/distinfo b/mail/pear-mailparse/distinfo
new file mode 100644
index 0000000..0cc7b93
--- /dev/null
+++ b/mail/pear-mailparse/distinfo
@@ -0,0 +1 @@
+MD5 (PEAR/mailparse-0.9.1.tgz) = ae18c2fed49946bce049414b4cee3747
diff --git a/mail/pear-mailparse/pkg-deinstall b/mail/pear-mailparse/pkg-deinstall
new file mode 100644
index 0000000..c17e9d1
--- /dev/null
+++ b/mail/pear-mailparse/pkg-deinstall
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# Remove package declaration from PEAR's registry.
+
+if [ x$2 != xDEINSTALL ]; then
+ exit
+fi
+PKG_NAME=${1%%-[0-9._]*}
+PACKAGE=$(echo $PKG_NAME | sed 's/pear-//')
+
+${PKG_PREFIX}/bin/pear uninstall -r ${PACKAGE} || true
diff --git a/mail/pear-mailparse/pkg-descr b/mail/pear-mailparse/pkg-descr
new file mode 100644
index 0000000..93a57a8
--- /dev/null
+++ b/mail/pear-mailparse/pkg-descr
@@ -0,0 +1,7 @@
+Mailparse is an extension for parsing and working with email messages.
+It can deal with rfc822 and rfc2045 (MIME) compliant messages.
+Mailparse is stream based, which means that it does not keep in-memory
+copies of the files it processes - so it is very resource efficient
+when dealing with large messages.
+
+WWW: http://www.php.net/manual/en/ref.mailparse.php
diff --git a/mail/pear-mailparse/pkg-plist b/mail/pear-mailparse/pkg-plist
new file mode 100644
index 0000000..a22d5cb
--- /dev/null
+++ b/mail/pear-mailparse/pkg-plist
@@ -0,0 +1,24 @@
+%%EXTDIR%%/mailparse.so
+%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/CREDITS
+%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/README
+%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/try.php
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/mime.exp
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/mime.txt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/phpcvs1.exp
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/phpcvs1.txt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/qp.exp
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/qp.txt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/uue.exp
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/uue.txt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/001.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/002.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/003.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/004.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/005.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/006.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/007.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/008.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/parse_test_messages.phpt
+%%PORTDOCS%%@dirrm %%PEARDIR%%/docs/mailparse
+%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/tests/testdata
+%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/tests/
diff --git a/mail/pecl-mailparse/Makefile b/mail/pecl-mailparse/Makefile
new file mode 100644
index 0000000..3237a88
--- /dev/null
+++ b/mail/pecl-mailparse/Makefile
@@ -0,0 +1,90 @@
+# Ports collection makefile for: pear-mailparse
+# Date created: 09 January 2003
+# Whom: Thierry Thomas (<thierry@pompo.net>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= mailparse
+PORTVERSION= 0.9.1
+CATEGORIES= mail www
+MASTER_SITES= http://pear.php.net/get/
+PKGNAMEPREFIX= pear-
+EXTRACT_SUFX= .tgz
+DIST_SUBDIR= PEAR
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= PEAR classes to create and decode MIME messages
+
+BUILD_DEPENDS= automake:${PORTSDIR}/devel/automake \
+ autoconf:${PORTSDIR}/devel/autoconf213 \
+ ${LOCALBASE}/bin/phpize:${PORTSDIR}/www/mod_php4 \
+ ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
+RUN_DEPENDS= ${PEARDIR}/PEAR.php.dist:${PORTSDIR}/devel/pear-PEAR
+
+.include <bsd.port.pre.mk>
+
+# Don't call autoconf directly, ./buildconf does this
+GNU_CONFIGURE= yes
+USE_AUTOCONF= no
+USE_LIBTOOL= no
+USE_REINPLACE= yes
+
+REINPLACE_ARGS= -i.before_mailparse
+
+.if exists(${LOCALBASE}/bin/php-config)
+PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix
+EXT_DIR!= ${LOCALBASE}/bin/php-config --extension-dir | ${SED} -e \
+ "s:${PHP_BASE}/::"
+.else
+PHP_BASE!= ${LOCALBASE}
+.endif
+PEAR= ${LOCALBASE}/bin/pear
+LPHP_LIB= lib/php
+PHP_DIR?= ${LOCALBASE}/etc
+PHP_INI= ${PHP_DIR}/php.ini
+PEARDIR= ${PHP_BASE}/${LPHP_LIB}
+PLIST_SUB= EXTDIR=${EXT_DIR} PEARDIR=${LPHP_LIB}
+
+DOCSDIR= ${PEARDIR}/docs/${PORTNAME}
+DOCS= CREDITS README try.php
+TESTDIR= ${PEARDIR}/tests/${PORTNAME}
+
+post-patch:
+ (cd ${WRKSRC} && ${LOCALBASE}/bin/phpize)
+
+pre-configure:
+ @if ! ${LOCALBASE}/bin/php -i | ${GREP} -q -e "--enable-mbstring"; then \
+ ${ECHO_MSG} "" ; \
+ ${ECHO_MSG} "Please configure PHP with mbstring support." ; \
+ ${ECHO_MSG} "" ; \
+ ${FALSE} ; \
+ fi
+
+post-install:
+ @${STRIP_CMD} ${PHP_BASE}/${EXT_DIR}/mailparse.so
+# Configure extension_dir
+ @if [ ! -f ${PHP_INI} ]; then \
+ ${ECHO_MSG} "===> Creating ${PHP_INI} for PHP" ; \
+ ${CP} -p ${PHP_INI}-dist ${PHP_INI} ; \
+ fi
+ @if ${GREP} -q -e '^extension_dir = ./' ${PHP_INI} ; then \
+ ${ECHO_MSG} "===> Configuring ${PHP_INI}" ; \
+ ${REINPLACE_CMD} -e 's!^extension_dir = ./!extension_dir = ${PHP_BASE}/${EXT_DIR}!' \
+ ${PHP_INI} ; \
+ fi
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+ @${MKDIR} ${TESTDIR}
+ @${CP} -Rp ${WRKSRC}/tests ${TESTDIR}
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR}
+ @${ECHO_MSG} "===> Examples installed in ${TESTDIR}."
+.endif
+# Register a new package
+ @${PEAR} install -r -f ${WRKDIR}/package.xml
+
+.include <bsd.port.post.mk>
diff --git a/mail/pecl-mailparse/distinfo b/mail/pecl-mailparse/distinfo
new file mode 100644
index 0000000..0cc7b93
--- /dev/null
+++ b/mail/pecl-mailparse/distinfo
@@ -0,0 +1 @@
+MD5 (PEAR/mailparse-0.9.1.tgz) = ae18c2fed49946bce049414b4cee3747
diff --git a/mail/pecl-mailparse/pkg-deinstall b/mail/pecl-mailparse/pkg-deinstall
new file mode 100644
index 0000000..c17e9d1
--- /dev/null
+++ b/mail/pecl-mailparse/pkg-deinstall
@@ -0,0 +1,13 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# Remove package declaration from PEAR's registry.
+
+if [ x$2 != xDEINSTALL ]; then
+ exit
+fi
+PKG_NAME=${1%%-[0-9._]*}
+PACKAGE=$(echo $PKG_NAME | sed 's/pear-//')
+
+${PKG_PREFIX}/bin/pear uninstall -r ${PACKAGE} || true
diff --git a/mail/pecl-mailparse/pkg-descr b/mail/pecl-mailparse/pkg-descr
new file mode 100644
index 0000000..93a57a8
--- /dev/null
+++ b/mail/pecl-mailparse/pkg-descr
@@ -0,0 +1,7 @@
+Mailparse is an extension for parsing and working with email messages.
+It can deal with rfc822 and rfc2045 (MIME) compliant messages.
+Mailparse is stream based, which means that it does not keep in-memory
+copies of the files it processes - so it is very resource efficient
+when dealing with large messages.
+
+WWW: http://www.php.net/manual/en/ref.mailparse.php
diff --git a/mail/pecl-mailparse/pkg-plist b/mail/pecl-mailparse/pkg-plist
new file mode 100644
index 0000000..a22d5cb
--- /dev/null
+++ b/mail/pecl-mailparse/pkg-plist
@@ -0,0 +1,24 @@
+%%EXTDIR%%/mailparse.so
+%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/CREDITS
+%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/README
+%%PORTDOCS%%%%PEARDIR%%/docs/mailparse/try.php
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/mime.exp
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/mime.txt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/phpcvs1.exp
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/phpcvs1.txt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/qp.exp
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/qp.txt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/uue.exp
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/testdata/uue.txt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/001.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/002.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/003.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/004.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/005.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/006.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/007.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/008.phpt
+%%PORTDOCS%%%%PEARDIR%%/tests/mailparse/tests/parse_test_messages.phpt
+%%PORTDOCS%%@dirrm %%PEARDIR%%/docs/mailparse
+%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/tests/testdata
+%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/mailparse/tests/
OpenPOWER on IntegriCloud