From owner-svn-ports-head@FreeBSD.ORG  Sat Nov 17 17:44:35 2012
Return-Path: <owner-svn-ports-head@FreeBSD.ORG>
Delivered-To: svn-ports-head@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
 by hub.freebsd.org (Postfix) with ESMTP id 69FE9FB6;
 Sat, 17 Nov 2012 17:44:35 +0000 (UTC)
 (envelope-from adamw@FreeBSD.org)
Received: from svn.freebsd.org (svn.freebsd.org
 [IPv6:2001:1900:2254:2068::e6a:0])
 by mx1.freebsd.org (Postfix) with ESMTP id 4EAD98FC14;
 Sat, 17 Nov 2012 17:44:35 +0000 (UTC)
Received: from svn.freebsd.org (localhost [127.0.0.1])
 by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qAHHiZON050797;
 Sat, 17 Nov 2012 17:44:35 GMT (envelope-from adamw@svn.freebsd.org)
Received: (from adamw@localhost)
 by svn.freebsd.org (8.14.5/8.14.5/Submit) id qAHHiZrj050792;
 Sat, 17 Nov 2012 17:44:35 GMT (envelope-from adamw@svn.freebsd.org)
Message-Id: <201211171744.qAHHiZrj050792@svn.freebsd.org>
From: Adam Weinberger <adamw@FreeBSD.org>
Date: Sat, 17 Nov 2012 17:44:35 +0000 (UTC)
To: ports-committers@freebsd.org, svn-ports-all@freebsd.org,
 svn-ports-head@freebsd.org
Subject: svn commit: r307522 - in head/mail: . squirrelmail-decode
X-SVN-Group: ports-head
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-BeenThere: svn-ports-head@freebsd.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: SVN commit messages for the ports tree for head
 <svn-ports-head.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/svn-ports-head>,
 <mailto:svn-ports-head-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-ports-head>
List-Post: <mailto:svn-ports-head@freebsd.org>
List-Help: <mailto:svn-ports-head-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/svn-ports-head>,
 <mailto:svn-ports-head-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 17 Nov 2012 17:44:35 -0000

Author: adamw
Date: Sat Nov 17 17:44:34 2012
New Revision: 307522
URL: http://svnweb.freebsd.org/changeset/ports/307522

Log:
  Add the extra charset decoders from SquirrelMail.
  
  This package contains extra decoding functions.
  
  SquirrelMail decoding functions are used to display and convert messages
  encoded in different character sets. Extra decoding library provides support
  of some complex Eastern character sets and some rarely used Apple character
  sets. Current release supports Big5, Windows-874 (cp874, Thai), Windows-949
  (UHC, Korean), EUC-CN, EUC-JP, EUC-KR, EUC-TW, GB18030, GB2312, ISO-2022-CN,
  ISO-2022-JP, ISO-2022-JP-2, ISO-2022-KR, Shift_JIS and various x-mac-*
  character sets.
  
  Extra decoding library can be used in SquirrelMail 1.4.4 or newer. It depends
  on sq_is8bit() function. In order to optimize decoding of Eastern character
  sets, PHP installation needs recode (http://www.php.net/recode) or iconv
  (http://www.php.net/iconv) support. Some decoding functions can use mbstring
  functions present in php 4.3.0. Mbstring decoding needs sq_mb_list_encodings()
  function from SquirrelMail 1.5.1 or 1.4.6.
  
  Some decoding code that be activated only when $aggressive_decoding variable
  is set to true. This variable should be enabled only on smaller systems, that
  don't call aggressive decoding functions very often. Turning on
  $aggressive_decoding  variable by default in packaged SquirrelMail versions is
  not recommended.
  
  WWW: http://www.squirrelmail.org/
  
  Feature safe:	yes

Added:
  head/mail/squirrelmail-decode/
  head/mail/squirrelmail-decode/Makefile   (contents, props changed)
  head/mail/squirrelmail-decode/distinfo   (contents, props changed)
  head/mail/squirrelmail-decode/pkg-descr   (contents, props changed)
  head/mail/squirrelmail-decode/pkg-plist   (contents, props changed)
Modified:
  head/mail/Makefile

Modified: head/mail/Makefile
==============================================================================
--- head/mail/Makefile	Sat Nov 17 17:43:51 2012	(r307521)
+++ head/mail/Makefile	Sat Nov 17 17:44:34 2012	(r307522)
@@ -672,6 +672,7 @@
     SUBDIR += squirrelmail-change_sqlpass-plugin
     SUBDIR += squirrelmail-check_quota-plugin
     SUBDIR += squirrelmail-compatibility-plugin
+    SUBDIR += squirrelmail-decode
     SUBDIR += squirrelmail-email_footer-plugin
     SUBDIR += squirrelmail-login_auth-plugin
     SUBDIR += squirrelmail-login_notes-plugin

Added: head/mail/squirrelmail-decode/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/squirrelmail-decode/Makefile	Sat Nov 17 17:44:34 2012	(r307522)
@@ -0,0 +1,36 @@
+# Created by:	Adam Weinberger <adamw@FreeBSD.org>
+# $FreeBSD$
+#
+
+PORTNAME=		squirrelmail-decode
+PORTVERSION=	1.2
+CATEGORIES=		mail www
+MASTER_SITES=	SF/squirrelmail/decode/${PORTVERSION}
+DIST_SUBDIR=	squirrelmail
+
+MAINTAINER=		adamw@FreeBSD.org
+COMMENT=		Decoders to display extra character sets in SquirrelMail
+
+RUN_DEPENDS=	${SQUIRRELDIR}/index.php:${PORTSDIR}/mail/squirrelmail
+
+USE_BZIP2=		yes
+NO_BUILD=		yes
+
+DOCSDIR=		${PREFIX}/share/doc/squirrelmail/decode
+PORTDOCS=		*
+
+# if you were using WITHOUT_WWWDIR, use SQUIRRELDIR=${PREFIX}/${PORTNAME}
+SQUIRRELDIR?=	${PREFIX}/www/squirrelmail
+PLIST_SUB=		SQUIRRELDIR="${SQUIRRELDIR:S,^${PREFIX}/,,}"
+
+do-install:
+	${MKDIR} ${SQUIRRELDIR}/functions/decode
+.for DIR in eastasia x-mac
+	cd ${WRKSRC}/${DIR} && ${FIND} . | ${CPIO} -pdmu --quiet ${SQUIRRELDIR}/functions/decode
+.endfor
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/*.decode ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>

Added: head/mail/squirrelmail-decode/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/squirrelmail-decode/distinfo	Sat Nov 17 17:44:34 2012	(r307522)
@@ -0,0 +1,2 @@
+SHA256 (squirrelmail/squirrelmail-decode-1.2.tar.bz2) = 72750301b83ee23fffe32ae40a3dec33ad4f39abf81c5abdd38f235aab3fcb26
+SIZE (squirrelmail/squirrelmail-decode-1.2.tar.bz2) = 333942

Added: head/mail/squirrelmail-decode/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/squirrelmail-decode/pkg-descr	Sat Nov 17 17:44:34 2012	(r307522)
@@ -0,0 +1,25 @@
+[from README.decode]:
+This package contains extra decoding functions.
+
+SquirrelMail decoding functions are used to display and convert messages 
+encoded in different character sets. Extra decoding library provides support 
+of some complex Eastern character sets and some rarely used Apple character 
+sets. Current release supports Big5, Windows-874 (cp874, Thai), Windows-949 
+(UHC, Korean), EUC-CN, EUC-JP, EUC-KR, EUC-TW, GB18030, GB2312, ISO-2022-CN, 
+ISO-2022-JP, ISO-2022-JP-2, ISO-2022-KR, Shift_JIS and various x-mac-* 
+character sets.
+
+Extra decoding library can be used in SquirrelMail 1.4.4 or newer. It depends 
+on sq_is8bit() function. In order to optimize decoding of Eastern character 
+sets, PHP installation needs recode (http://www.php.net/recode) or iconv 
+(http://www.php.net/iconv) support. Some decoding functions can use mbstring 
+functions present in php 4.3.0. Mbstring decoding needs sq_mb_list_encodings() 
+function from SquirrelMail 1.5.1 or 1.4.6.
+
+Some decoding code that be activated only when $aggressive_decoding variable 
+is set to true. This variable should be enabled only on smaller systems, that 
+don't call aggressive decoding functions very often. Turning on 
+$aggressive_decoding  variable by default in packaged SquirrelMail versions is 
+not recommended.
+
+WWW: http://www.squirrelmail.org/

Added: head/mail/squirrelmail-decode/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/squirrelmail-decode/pkg-plist	Sat Nov 17 17:44:34 2012	(r307522)
@@ -0,0 +1,33 @@
+%%SQUIRRELDIR%%/functions/decode/big5.php
+%%SQUIRRELDIR%%/functions/decode/cp874.php
+%%SQUIRRELDIR%%/functions/decode/cp949.php
+%%SQUIRRELDIR%%/functions/decode/euc_cn.php
+%%SQUIRRELDIR%%/functions/decode/euc_jp.php
+%%SQUIRRELDIR%%/functions/decode/euc_kr.php
+%%SQUIRRELDIR%%/functions/decode/euc_tw.php
+%%SQUIRRELDIR%%/functions/decode/gb18030.php
+%%SQUIRRELDIR%%/functions/decode/gb2312.php
+%%SQUIRRELDIR%%/functions/decode/iso_2022_cn.php
+%%SQUIRRELDIR%%/functions/decode/iso_2022_jp.php
+%%SQUIRRELDIR%%/functions/decode/iso_2022_jp_2.php
+%%SQUIRRELDIR%%/functions/decode/iso_2022_kr.php
+%%SQUIRRELDIR%%/functions/decode/iso_2022_support.php
+%%SQUIRRELDIR%%/functions/decode/shift_jis.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_arabic.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_ce.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_chinsimp.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_chintrad.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_croatian.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_cyrillic.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_devanagari.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_farsi.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_greek.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_gujarati.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_gurmukhi.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_hebrew.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_icelandic.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_roman.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_romanian.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_thai.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_turkish.php
+%%SQUIRRELDIR%%/functions/decode/x_mac_ukrainian.php