Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jan 2006 18:56:04 +0330
From:      "Babak Farrokhi" <babak@farrokhi.net>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/91793: new port mail/roundcube-devel
Message-ID:  <1137252364.73105@adsl-nms.rasana.net>
Resent-Message-ID: <200601141530.k0EFU446012879@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         91793
>Category:       ports
>Synopsis:       new port mail/roundcube-devel
>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 Jan 14 15:30:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Babak Farrokhi
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:


System: FreeBSD 5.4-STABLE #0: Sat Jul 23 00:28:06 IRDT 2005
    root@banana.rasana.net:/usr/obj/usr/src/sys/HPSERVER



>Description:


1- Please repocopy mail/roundcube -> mail/roundcube-devel
2- attached patch is "diff -ruN roundcube roundcube-devel"

new features in this snapshot:

- Added Slovak translation
- Fixed bug when inserting signatures with !?&
- Chopping message headers before inserting into the message cache table (to avoid bugs in Postgres)
- Allow one-char domains in e-mail addresses
- Make product name in page title configurable
- Make username available as skin object
- Added session_write_close() in rcube_db class destructor to avoid problems in PHP 5.0.5
- Use move_uploaded_file() instead of copy() for a more secure handling of uploaded attachments
- Additional config parameter to show/hide deleted messages
- Added periodic request for checking new mails (Request #1307821)
- Added EXPUNGE command
- Optimized loading time for mail interface
- Changed to full UTF-8 support
- Additional timezones (Patch #1389912)
- Added LDAP public search (experimental)



>How-To-Repeat:





>Fix:


--- roundcube-devel.patch begins here ---
diff -ruN roundcube/Makefile roundcube-devel/Makefile
--- roundcube/Makefile	Mon Dec 19 14:21:21 2005
+++ roundcube-devel/Makefile	Sat Jan 14 18:19:35 2006
@@ -11,12 +11,13 @@
 CATEGORIES=	mail
 MASTER_SITES=	http://www.unixified.net/roundcube/
 MASTER_SITE_SUBDIR=	${PORTNAME}
+PKGNAMESUFFIX=	-devel
 DISTNAME=	${PORTNAME}-${PORTVERSION}-${SNAPSHOT}
 
-MAINTAINER=	flz@FreeBSD.org
+MAINTAINER=	babak@farrokhi.net
 COMMENT=	Fully skinnable XHTML/CSS webmail written in PHP
 
-SNAPSHOT=	20051219
+SNAPSHOT=	20060114
 
 WRKSRC=		${WRKDIR}/${PORTNAME}mail
 NO_BUILD=	yes
@@ -26,8 +27,6 @@
 RCUBEDIR?=	www/${PORTNAME}
 
 RCUBEROOT=	${PREFIX}/${RCUBEDIR}
-RCUBECOMP=	SQL config index.php logs program skins temp
-PORTDOCS=	CHANGELOG INSTALL LICENSE README
 
 PLIST_SUB=	RCUBEDIR=${RCUBEDIR}
 SCRIPTS_ENV=	SHAREOWN=${SHAREOWN} SHAREGRP=${SHAREGRP} \
@@ -35,6 +34,14 @@
 		RCUBEROOT=${RCUBEROOT}
 
 WANT_PHP_WEB=	yes
+USE_PHP=	pcre
+CONFLICTS=      roundcube-[0-9]*
+
+LOCALBASE?=    /usr/local
+
+.if exists(${LOCALBASE}/etc/php.conf)
+.include "${LOCALBASE}/etc/php.conf"
+.endif
 
 OPTIONS=	MYSQL "Use MySQL backend" on \
 		PGSQL "Use PostgreSQL backend" off
@@ -57,23 +64,14 @@
 USE_PHP+=	sqlite
 .endif
 
-.include "${PORTSDIR}/Mk/bsd.php.mk"
-
 do-install:
 	${MKDIR} ${RCUBEROOT}
-.for i in ${RCUBECOMP}
-	${CP} -Rp ${WRKSRC}/${i} ${RCUBEROOT}/
-.endfor
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/UPGRADING ${DOCSDIR}/
-.if !defined(NOPORTDOCS)
-.for i in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
-.endfor
-.endif
+	${CP} -Rp ${WRKSRC}/* ${RCUBEROOT}/
+	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${RCUBEROOT}/
+	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${RCUBEROOT}/logs
+	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${RCUBEROOT}/temp
 
 post-install:
-	@${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
 	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.post.mk>
diff -ruN roundcube/distinfo roundcube-devel/distinfo
--- roundcube/distinfo	Mon Dec 19 14:21:21 2005
+++ roundcube-devel/distinfo	Sat Jan 14 15:30:13 2006
@@ -1,3 +1,3 @@
-MD5 (roundcube-0.1-20051219.tar.gz) = 6475734a0019d446e0f9ae9124ace604
-SHA256 (roundcube-0.1-20051219.tar.gz) = c2a0fe788281e5dcd33d3cc5b1525f8f8f74cebdaea886bc65a3745d12bb77ac
-SIZE (roundcube-0.1-20051219.tar.gz) = 538880
+MD5 (roundcube-0.1-20060114.tar.gz) = b038fc264b20a016ece990ba005a691a
+SHA256 (roundcube-0.1-20060114.tar.gz) = 71e87be7e5e7aff7b8a01a83e4ca3a6e190211c6e986d694970ae3cc6a11a795
+SIZE (roundcube-0.1-20060114.tar.gz) = 551861
diff -ruN roundcube/pkg-install roundcube-devel/pkg-install
--- roundcube/pkg-install	Tue Nov 29 18:30:07 2005
+++ roundcube-devel/pkg-install	Thu Jan  1 03:30:00 1970
@@ -1,18 +0,0 @@
-#! /bin/sh
-
-case $2 in
-
-POST-INSTALL)
-	chown -R ${SHAREOWN}:${SHAREGRP} ${RCUBEROOT}/
-	chown -R ${WWWOWN}:${WWWGRP} ${RCUBEROOT}/logs
-	chown -R ${WWWOWN}:${WWWGRP} ${RCUBEROOT}/temp
-	for i in ${RCUBEROOT}/config/db.inc.php ${RCUBEROOT}/config/main.inc.php; do
-		[ -f ${i} ] || cp ${i}.dist ${i}
-	done
-	;;
-*)
-	exit 1
-	;;
-esac
-
-exit 0
diff -ruN roundcube/pkg-plist roundcube-devel/pkg-plist
--- roundcube/pkg-plist	Mon Dec 19 14:21:21 2005
+++ roundcube-devel/pkg-plist	Sat Jan 14 18:21:45 2006
@@ -1,12 +1,12 @@
-%%DOCSDIR%%/CHANGELOG
-%%DOCSDIR%%/INSTALL
-%%DOCSDIR%%/LICENSE
-%%DOCSDIR%%/README
-%%DOCSDIR%%/UPGRADING
+%%RCUBEDIR%%/CHANGELOG
+%%RCUBEDIR%%/INSTALL
+%%RCUBEDIR%%/LICENSE
+%%RCUBEDIR%%/README
 %%RCUBEDIR%%/SQL/mysql.initial.sql
 %%RCUBEDIR%%/SQL/mysql.update.sql
 %%RCUBEDIR%%/SQL/postgres.initial.sql
 %%RCUBEDIR%%/SQL/sqlite.initial.sql
+%%RCUBEDIR%%/UPGRADING
 %%RCUBEDIR%%/config/.htaccess
 %%RCUBEDIR%%/config/db.inc.php.dist
 %%RCUBEDIR%%/config/main.inc.php.dist
@@ -18,6 +18,7 @@
 %%RCUBEDIR%%/program/include/main.inc
 %%RCUBEDIR%%/program/include/rcube_db.inc
 %%RCUBEDIR%%/program/include/rcube_imap.inc
+%%RCUBEDIR%%/program/include/rcube_ldap.inc
 %%RCUBEDIR%%/program/include/rcube_mdb2.inc
 %%RCUBEDIR%%/program/include/rcube_shared.inc
 %%RCUBEDIR%%/program/include/rcube_smtp.inc
@@ -120,16 +121,16 @@
 %%RCUBEDIR%%/program/localization/cz/messages.inc
 %%RCUBEDIR%%/program/localization/da/labels.inc
 %%RCUBEDIR%%/program/localization/da/messages.inc
-%%RCUBEDIR%%/program/localization/de/labels.inc
-%%RCUBEDIR%%/program/localization/de/messages.inc
+%%RCUBEDIR%%/program/localization/de_DE/labels.inc
+%%RCUBEDIR%%/program/localization/de_DE/messages.inc
 %%RCUBEDIR%%/program/localization/ee/labels.inc
 %%RCUBEDIR%%/program/localization/ee/messages.inc
 %%RCUBEDIR%%/program/localization/el/labels.inc
 %%RCUBEDIR%%/program/localization/el/messages.inc
-%%RCUBEDIR%%/program/localization/en/labels.inc
-%%RCUBEDIR%%/program/localization/en/messages.inc
 %%RCUBEDIR%%/program/localization/en_GB/labels.inc
 %%RCUBEDIR%%/program/localization/en_GB/messages.inc
+%%RCUBEDIR%%/program/localization/en_US/labels.inc
+%%RCUBEDIR%%/program/localization/en_US/messages.inc
 %%RCUBEDIR%%/program/localization/es/labels.inc
 %%RCUBEDIR%%/program/localization/es/messages.inc
 %%RCUBEDIR%%/program/localization/fi/labels.inc
@@ -151,16 +152,18 @@
 %%RCUBEDIR%%/program/localization/nn_NO/messages.inc
 %%RCUBEDIR%%/program/localization/pl/labels.inc
 %%RCUBEDIR%%/program/localization/pl/messages.inc
-%%RCUBEDIR%%/program/localization/pt/labels.inc
-%%RCUBEDIR%%/program/localization/pt/messages.inc
 %%RCUBEDIR%%/program/localization/pt_BR/labels.inc
 %%RCUBEDIR%%/program/localization/pt_BR/messages.inc
+%%RCUBEDIR%%/program/localization/pt_PT/labels.inc
+%%RCUBEDIR%%/program/localization/pt_PT/messages.inc
 %%RCUBEDIR%%/program/localization/ro/labels.inc
 %%RCUBEDIR%%/program/localization/ro/messages.inc
 %%RCUBEDIR%%/program/localization/ru/labels.inc
 %%RCUBEDIR%%/program/localization/ru/messages.inc
 %%RCUBEDIR%%/program/localization/se/labels.inc
 %%RCUBEDIR%%/program/localization/se/messages.inc
+%%RCUBEDIR%%/program/localization/sk/labels.inc
+%%RCUBEDIR%%/program/localization/sk/messages.inc
 %%RCUBEDIR%%/program/localization/tr/labels.inc
 %%RCUBEDIR%%/program/localization/tr/messages.inc
 %%RCUBEDIR%%/program/localization/tw/labels.inc
@@ -168,14 +171,18 @@
 %%RCUBEDIR%%/program/steps/addressbook/delete.inc
 %%RCUBEDIR%%/program/steps/addressbook/edit.inc
 %%RCUBEDIR%%/program/steps/addressbook/func.inc
+%%RCUBEDIR%%/program/steps/addressbook/ldapsearchform.inc
 %%RCUBEDIR%%/program/steps/addressbook/list.inc
 %%RCUBEDIR%%/program/steps/addressbook/save.inc
 %%RCUBEDIR%%/program/steps/addressbook/show.inc
 %%RCUBEDIR%%/program/steps/error.inc
 %%RCUBEDIR%%/program/steps/mail/addcontact.inc
+%%RCUBEDIR%%/program/steps/mail/check_recent.inc
 %%RCUBEDIR%%/program/steps/mail/compose.inc
+%%RCUBEDIR%%/program/steps/mail/folders.inc
 %%RCUBEDIR%%/program/steps/mail/func.inc
 %%RCUBEDIR%%/program/steps/mail/get.inc
+%%RCUBEDIR%%/program/steps/mail/getunread.inc
 %%RCUBEDIR%%/program/steps/mail/list.inc
 %%RCUBEDIR%%/program/steps/mail/mark.inc
 %%RCUBEDIR%%/program/steps/mail/move_del.inc
@@ -219,6 +226,8 @@
 %%RCUBEDIR%%/skins/default/images/buttons/forward_pas.png
 %%RCUBEDIR%%/skins/default/images/buttons/inbox_act.png
 %%RCUBEDIR%%/skins/default/images/buttons/inbox_pas.png
+%%RCUBEDIR%%/skins/default/images/buttons/ldap_act.png
+%%RCUBEDIR%%/skins/default/images/buttons/ldap_pas.png
 %%RCUBEDIR%%/skins/default/images/buttons/logout.gif
 %%RCUBEDIR%%/skins/default/images/buttons/logout.png
 %%RCUBEDIR%%/skins/default/images/buttons/mail.gif
@@ -276,10 +285,12 @@
 %%RCUBEDIR%%/skins/default/images/tab_pas.gif
 %%RCUBEDIR%%/skins/default/images/taskbar.gif
 %%RCUBEDIR%%/skins/default/includes/header.html
+%%RCUBEDIR%%/skins/default/includes/ldapscripts.html
 %%RCUBEDIR%%/skins/default/includes/links.html
 %%RCUBEDIR%%/skins/default/includes/settingscripts.html
 %%RCUBEDIR%%/skins/default/includes/settingstabs.html
 %%RCUBEDIR%%/skins/default/includes/taskbar.html
+%%RCUBEDIR%%/skins/default/ldapsearchform.css
 %%RCUBEDIR%%/skins/default/mail.css
 %%RCUBEDIR%%/skins/default/pngbehavior.htc
 %%RCUBEDIR%%/skins/default/print.css
@@ -292,6 +303,7 @@
 %%RCUBEDIR%%/skins/default/templates/editidentity.html
 %%RCUBEDIR%%/skins/default/templates/error.html
 %%RCUBEDIR%%/skins/default/templates/identities.html
+%%RCUBEDIR%%/skins/default/templates/ldappublicsearch.html
 %%RCUBEDIR%%/skins/default/templates/login.html
 %%RCUBEDIR%%/skins/default/templates/mail.html
 %%RCUBEDIR%%/skins/default/templates/managefolders.html
@@ -316,11 +328,12 @@
 @dirrm %%RCUBEDIR%%/program/steps
 @dirrm %%RCUBEDIR%%/program/localization/tw
 @dirrm %%RCUBEDIR%%/program/localization/tr
+@dirrm %%RCUBEDIR%%/program/localization/sk
 @dirrm %%RCUBEDIR%%/program/localization/se
 @dirrm %%RCUBEDIR%%/program/localization/ru
 @dirrm %%RCUBEDIR%%/program/localization/ro
+@dirrm %%RCUBEDIR%%/program/localization/pt_PT
 @dirrm %%RCUBEDIR%%/program/localization/pt_BR
-@dirrm %%RCUBEDIR%%/program/localization/pt
 @dirrm %%RCUBEDIR%%/program/localization/pl
 @dirrm %%RCUBEDIR%%/program/localization/nn_NO
 @dirrm %%RCUBEDIR%%/program/localization/nl
@@ -331,11 +344,11 @@
 @dirrm %%RCUBEDIR%%/program/localization/fr
 @dirrm %%RCUBEDIR%%/program/localization/fi
 @dirrm %%RCUBEDIR%%/program/localization/es
+@dirrm %%RCUBEDIR%%/program/localization/en_US
 @dirrm %%RCUBEDIR%%/program/localization/en_GB
-@dirrm %%RCUBEDIR%%/program/localization/en
 @dirrm %%RCUBEDIR%%/program/localization/el
 @dirrm %%RCUBEDIR%%/program/localization/ee
-@dirrm %%RCUBEDIR%%/program/localization/de
+@dirrm %%RCUBEDIR%%/program/localization/de_DE
 @dirrm %%RCUBEDIR%%/program/localization/da
 @dirrm %%RCUBEDIR%%/program/localization/cz
 @dirrm %%RCUBEDIR%%/program/localization/cn
@@ -362,4 +375,3 @@
 @unexec rmdir %D/%%RCUBEDIR%%/logs 2>&1 >/dev/null || true
 @unexec rmdir %D/%%RCUBEDIR%%/config 2>&1 >/dev/null || true
 @unexec rmdir %D/%%RCUBEDIR%% 2>&1 >/dev/null || true
-@dirrm %%DOCSDIR%%
--- roundcube-devel.patch ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



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