Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Nov 2012 17:44:35 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307522 - in head/mail: . squirrelmail-decode
Message-ID:  <201211171744.qAHHiZrj050792@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211171744.qAHHiZrj050792>