Date: Sat, 30 May 2009 08:14:18 GMT From: Joe Horn <joehorn@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/135071: [New Port] mail/phpmailer2 : Full Featured Email Transfer Class for PHP4 Message-ID: <200905300814.n4U8EI2E029300@www.freebsd.org> Resent-Message-ID: <200905300820.n4U8K1OO000550@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 135071 >Category: ports >Synopsis: [New Port] mail/phpmailer2 : Full Featured Email Transfer Class for PHP4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat May 30 08:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Joe Horn >Release: 7.2-RELEASE >Organization: Users >Environment: FreeBSD joehorn.idv.tw 7.2-RELEASE FreeBSD 7.2-RELEASE #3: Sat May 9 14:06:28 CST 2009 root@joehorn.idv.tw:/usr/obj/usr/src/sys/joehorn i386 >Description: The maintainer of /usr/ports/mail/phpmailer updated it from 2.0.2 to 5.0.2, and mark it ignored with PHP4. I just created this port for PHP4 users, althouth PHP4 has been marked as EoL. Please note in /usr/ports/UPDATING for PHP4 users. Let them know this and do `portupgrade -o mail/phpmailer2 phpmailer-2.0.2`. >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/mail/phpmailer2 # /usr/ports/mail/phpmailer2/files # /usr/ports/mail/phpmailer2/files/pkg-message # /usr/ports/mail/phpmailer2/Makefile # /usr/ports/mail/phpmailer2/distinfo # /usr/ports/mail/phpmailer2/pkg-descr # /usr/ports/mail/phpmailer2/pkg-plist # echo c - /usr/ports/mail/phpmailer2 mkdir -p /usr/ports/mail/phpmailer2 > /dev/null 2>&1 echo c - /usr/ports/mail/phpmailer2/files mkdir -p /usr/ports/mail/phpmailer2/files > /dev/null 2>&1 echo x - /usr/ports/mail/phpmailer2/files/pkg-message sed 's/^X//' >/usr/ports/mail/phpmailer2/files/pkg-message << '26f182848e99386eac70ce47519de6c6' XYou need to adjust php's include_path to contain `%%DATADIR%%'! XFor example, insert X include_path = ".:%%DATADIR%%" Xinto `%%LOCALBASE%%/etc/php.ini'. 26f182848e99386eac70ce47519de6c6 echo x - /usr/ports/mail/phpmailer2/Makefile sed 's/^X//' >/usr/ports/mail/phpmailer2/Makefile << '1f708f8848a81605a78e2dbe7cd80a36' X# New ports collection makefile for: phpmailer2 X# Date created: 30 May 2009 X# Whom: Joe Horn <joehorn@gmail.com> X# X# $FreeBSD$ X# X XPORTNAME= phpmailer2 XPORTVERSION= 2.0.4 XCATEGORIES= mail XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE} XMASTER_SITE_SUBDIR= phpmailer XDISTNAME= PHPMailer_v${DISTVERSION} X XMAINTAINER= joehorn@gmail.com XCOMMENT= Full Featured Email Transfer Class for PHP4 X XCONFLICTS= phpmailer-5* X XUSE_DOS2UNIX= yes XNO_BUILD= yes XUSE_PHP= pcre X XPKGMESSAGE= ${WRKDIR}/pkg-message XMSG_SRC= ${FILESDIR}/pkg-message X XMSG_SUB= DATADIR=${DATADIR} LOCALBASE=${LOCALBASE} X Xdo-install: X @${MKDIR} ${DATADIR} X.for f in class.phpmailer.php class.pop3.php class.smtp.php X @${INSTALL_DATA} ${WRKSRC}/$f ${DATADIR} X.endfor X @${MKDIR} ${DATADIR}/language X @${INSTALL_DATA} ${WRKSRC}/language/* ${DATADIR}/language X @${MKDIR} ${DATADIR}/test X @${INSTALL_DATA} ${WRKSRC}/test/* ${DATADIR}/test X.if !defined(NOPORTDOCS) X @${MKDIR} ${DOCSDIR} X.for f in README LICENSE X @${INSTALL_DATA} ${WRKSRC}/$f ${DOCSDIR} X.endfor X @${CP} -R ${WRKSRC}/docs/* ${DOCSDIR} X @${CP} -R ${WRKSRC}/phpdocs/* ${DOCSDIR} X.endif X.if !defined(NOPORTEXAMPLES) X @${MKDIR} ${EXAMPLESDIR} X @${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR} X.endif X Xpost-install: X @${SED} ${MSG_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${MSG_SRC} > \ X ${PKGMESSAGE} X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> 1f708f8848a81605a78e2dbe7cd80a36 echo x - /usr/ports/mail/phpmailer2/distinfo sed 's/^X//' >/usr/ports/mail/phpmailer2/distinfo << '93e9f9a20128e4b10a80d143363a75db' XMD5 (PHPMailer_v2.0.4.tar.gz) = c7a4ab57a06aac34f63e742323f07fc9 XSHA256 (PHPMailer_v2.0.4.tar.gz) = 012a82ca97172aa9fe15acf50464f033d341f011fd8c4e3ca90bca4a69c0c72b XSIZE (PHPMailer_v2.0.4.tar.gz) = 154882 93e9f9a20128e4b10a80d143363a75db echo x - /usr/ports/mail/phpmailer2/pkg-descr sed 's/^X//' >/usr/ports/mail/phpmailer2/pkg-descr << '62d17ec92e1888a2ae7736556509ac59' XPHP email transport class featuring multiple file attachments, SMTP Xservers, CCs, BCCs, HTML messages, and word wrap, and more. It can Xsend email via sendmail, PHP mail(), or with SMTP. Methods are based Xon the popular AspEmail active server component. X XWWW: http://sourceforge.net/projects/phpmailer 62d17ec92e1888a2ae7736556509ac59 echo x - /usr/ports/mail/phpmailer2/pkg-plist sed 's/^X//' >/usr/ports/mail/phpmailer2/pkg-plist << 'c222b655bcbabb2a9f5b853460db72d1' X%%PORTDOCS%%%%DOCSDIR%%/LICENSE X%%PORTDOCS%%%%DOCSDIR%%/PHPMailer/PHPMailer.html X%%PORTDOCS%%%%DOCSDIR%%/PHPMailer/POP3.html X%%PORTDOCS%%%%DOCSDIR%%/PHPMailer/SMTP.html X%%PORTDOCS%%%%DOCSDIR%%/PHPMailer/_v2.0.4_PHPMailer_v2.0.4_class_phpmailer_php.html X%%PORTDOCS%%%%DOCSDIR%%/PHPMailer/_v2.0.4_PHPMailer_v2.0.4_class_pop3_php.html X%%PORTDOCS%%%%DOCSDIR%%/PHPMailer/_v2.0.4_PHPMailer_v2.0.4_class_smtp_php.html X%%PORTDOCS%%%%DOCSDIR%%/__filesource/fsource_PHPMailer__class.phpmailer.php.html X%%PORTDOCS%%%%DOCSDIR%%/__filesource/fsource_PHPMailer__class.pop3.php.html X%%PORTDOCS%%%%DOCSDIR%%/__filesource/fsource_PHPMailer__class.smtp.php.html X%%PORTDOCS%%%%DOCSDIR%%/README X%%PORTDOCS%%%%DOCSDIR%%/blank.html X%%PORTDOCS%%%%DOCSDIR%%/classtrees_PHPMailer.html X%%PORTDOCS%%%%DOCSDIR%%/elementindex.html X%%PORTDOCS%%%%DOCSDIR%%/elementindex_PHPMailer.html X%%PORTDOCS%%%%DOCSDIR%%/extending.html X%%PORTDOCS%%%%DOCSDIR%%/faq.html X%%PORTDOCS%%%%DOCSDIR%%/index.html X%%PORTDOCS%%%%DOCSDIR%%/li_PHPMailer.html X%%PORTDOCS%%%%DOCSDIR%%/media/banner.css X%%PORTDOCS%%%%DOCSDIR%%/media/stylesheet.css X%%PORTDOCS%%%%DOCSDIR%%/packages.html X%%PORTDOCS%%%%DOCSDIR%%/phpmailer_sm.gif X%%PORTDOCS%%%%DOCSDIR%%/pop3_article.txt X%%PORTDOCS%%%%DOCSDIR%%/use_gmail.txt X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/contents.html X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/index.html X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pop3_before_smtp_test.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_gmail.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_mail.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_sendmail.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_smtp.php X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/bkgrnd.gif X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/phpmailer.gif X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/phpmailer.png X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/images/phpmailer_mini.gif X%%DATADIR%%/class.phpmailer.php X%%DATADIR%%/class.pop3.php X%%DATADIR%%/class.smtp.php X%%DATADIR%%/language/phpmailer.lang-ar.php X%%DATADIR%%/language/phpmailer.lang-br.php X%%DATADIR%%/language/phpmailer.lang-ca.php X%%DATADIR%%/language/phpmailer.lang-ch.php X%%DATADIR%%/language/phpmailer.lang-cz.php X%%DATADIR%%/language/phpmailer.lang-de.php X%%DATADIR%%/language/phpmailer.lang-dk.php X%%DATADIR%%/language/phpmailer.lang-en.php X%%DATADIR%%/language/phpmailer.lang-es.php X%%DATADIR%%/language/phpmailer.lang-et.php X%%DATADIR%%/language/phpmailer.lang-fi.php X%%DATADIR%%/language/phpmailer.lang-fo.php X%%DATADIR%%/language/phpmailer.lang-fr.php X%%DATADIR%%/language/phpmailer.lang-hu.php X%%DATADIR%%/language/phpmailer.lang-it.php X%%DATADIR%%/language/phpmailer.lang-ja.php X%%DATADIR%%/language/phpmailer.lang-nl.php X%%DATADIR%%/language/phpmailer.lang-no.php X%%DATADIR%%/language/phpmailer.lang-pl.php X%%DATADIR%%/language/phpmailer.lang-ro.php X%%DATADIR%%/language/phpmailer.lang-ru.php X%%DATADIR%%/language/phpmailer.lang-se.php X%%DATADIR%%/language/phpmailer.lang-tr.php X%%DATADIR%%/language/phpmailer.lang-zh.php X%%DATADIR%%/language/phpmailer.lang-zh_cn.php X%%DATADIR%%/test/phpmailer_test.php X%%DATADIR%%/test/phpunit.php X%%DATADIR%%/test/test.png X@dirrm %%DATADIR%%/test X@dirrm %%DATADIR%%/language X@dirrm %%DATADIR%% X%%PORTDOCS%%@dirrm %%DOCSDIR%%/media X%%PORTDOCS%%@dirrm %%DOCSDIR%%/PHPMailer X%%PORTDOCS%%@dirrm %%DOCSDIR%%/__filesource X%%PORTDOCS%%@dirrm %%DOCSDIR%% X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/images X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% c222b655bcbabb2a9f5b853460db72d1 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905300814.n4U8EI2E029300>