aboutsummaryrefslogtreecommitdiff
path: root/mail/imp3
diff options
context:
space:
mode:
Diffstat (limited to 'mail/imp3')
-rw-r--r--mail/imp3/Makefile27
-rw-r--r--mail/imp3/distinfo2
-rw-r--r--mail/imp3/files/patch-ab10
-rw-r--r--mail/imp3/files/patch-ac11
-rw-r--r--mail/imp3/pkg-descr10
-rw-r--r--mail/imp3/pkg-message8
-rw-r--r--mail/imp3/pkg-plist40
7 files changed, 80 insertions, 28 deletions
diff --git a/mail/imp3/Makefile b/mail/imp3/Makefile
index 67c72f2f61b2..a772447c5fb7 100644
--- a/mail/imp3/Makefile
+++ b/mail/imp3/Makefile
@@ -7,10 +7,10 @@
PORTNAME= imp
PORTVERSION= 3.0
+PORTREVISION= 1
CATEGORIES= mail www
MASTER_SITES= ftp://ftp.horde.org/pub/imp/tarballs/
PKGNAMESUFFIX= -devel
-DISTNAME= ${PORTNAME}-${PORTVERSION}-RC3
MAINTAINER= thierry@thomas.as
@@ -37,6 +37,8 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
#
# - WITHOUT_SSL : if you have not installed c-client WITH_SSL;
#
+# - WITH_VALID_CERT : if you own a valid SSL certificate;
+#
# - WITHOUT_TURBA : if you do not want adressbooks;
#
# - WITHOUT_IMAPSERVER : if your IMAP server runs on another machine;
@@ -113,9 +115,7 @@ RUN_DEPENDS+= ${LOCALBASE}/bin/aspell:${PORTSDIR}/textproc/aspell
.endif
NO_BUILD= yes
-DOCS= COPYING README docs/CHANGES docs/CREDITS \
- docs/INSTALL docs/SECURITY docs/FEATURES \
- docs/PACKAGES
+DOCS= COPYING README docs/CHANGES docs/CREDITS docs/INSTALL
CONFFILE= conf.php filter.txt header.txt html.php menu.php \
mime_drivers.php motd.php prefs.php servers.php \
trailer.txt
@@ -164,6 +164,7 @@ pre-install:
${ECHO_MSG} "" ; \
${FALSE} ; \
fi
+.if !defined(BATCH)
.if !defined(WITHOUT_SSL)
@if ! ${GREP} -q -e 'CCLIENT_SSLENABLED "yes"' ${PORTREV_H}; then \
${ECHO_MSG} "" ; \
@@ -172,6 +173,7 @@ pre-install:
${FALSE} ; \
fi
.endif
+.endif
.if !defined(WITHOUT_LDAP)
.if defined(WITH_LDAP1)
@if ! ${LDCONFIG} -r | ${GREP} -q -e "ldap.1"; then \
@@ -238,7 +240,20 @@ do-install:
.endfor
@${PERL} -pi -e "s:example.com:${HOSTNAME}:g" ${CONFDIR}/servers.php
@${PERL} -pi -e "s:%%LOCALBASE%%:${LOCALBASE}:g" ${CONFDIR}/mime_drivers.php
- @${PERL} -pi -e "s:IMP_VERSION:IMP_VERSION . ' / ${SERVOS}':" ${IMPDIR}/compose.php
+ @${PERL} -pi -e "s:IMP_VERSION:IMP_VERSION . ' / ${SERVOS}':" \
+ ${IMPDIR}/compose.php
+.if defined(WITHOUT_SSL)
+ @${PERL} -pi -e "s:%%PROTOCOL%%:imap:;s:%%IMAPPORT%%:143:" \
+ ${CONFDIR}/servers.php
+.else
+ @${PERL} -pi -e "s:%%IMAPPORT%%:993:" ${CONFDIR}/servers.php
+.if defined(WITH_VALID_CERT)
+ @${PERL} -pi -e "s:%%PROTOCOL%%:imap/ssl:" ${CONFDIR}/servers.php
+.else
+ @${PERL} -pi -e "s:%%PROTOCOL%%:imap/ssl/novalidate-cert:" \
+ ${CONFDIR}/servers.php
+.endif
+.endif
.if !defined(WITHOUT_ASPELL)
@${PERL} -pi -e "s:\/\* BEGBSDASPELL::;s:ENDBSDASPELL \*\/::" \
${CONFDIR}/mime_drivers.php
@@ -274,6 +289,8 @@ do-install:
# Provide a link to IMP from Turba
.if !defined(WITHOUT_TURBA)
@${PERL} -pi -e "s://UNCOMMENTWHENINSTIMP::" ${TURBADIR}/config/conf.php
+ @${PERL} -pi -e "s:apps'] = array\(\):apps'] = array('turba'):" \
+ ${CONFDIR}/conf.php
.endif
.if !defined(NOPORTDOCS)
@${PERL} -pi -e "s:/home/httpd/html/horde/imp:${IMPDIR}:g" ${WRKSRC}/docs/SECURITY
diff --git a/mail/imp3/distinfo b/mail/imp3/distinfo
index 793e07b66041..7745bb27ad36 100644
--- a/mail/imp3/distinfo
+++ b/mail/imp3/distinfo
@@ -1 +1 @@
-MD5 (imp-3.0-RC3.tar.gz) = f02ecd032f3a3c17f96ab575bf5b6f61
+MD5 (imp-3.0.tar.gz) = d941d7b11231c771fb801ae8010e7271
diff --git a/mail/imp3/files/patch-ab b/mail/imp3/files/patch-ab
index ee535e400968..7c274c3fb977 100644
--- a/mail/imp3/files/patch-ab
+++ b/mail/imp3/files/patch-ab
@@ -1,5 +1,5 @@
--- config/servers.php.dist.orig Fri Jun 22 20:08:14 2001
-+++ config/servers.php.dist Fri Nov 16 23:46:19 2001
++++ config/servers.php.dist Tue Dec 18 23:08:00 2001
@@ -31,7 +31,7 @@
* is on.
*
@@ -14,11 +14,13 @@
$servers['imap'] = array(
'name' => 'IMAP Server',
- 'server' => 'imap.example.com',
+- 'protocol' => 'imap',
+- 'port' => 143,
+- 'folders' => 'mail/',
+// 'server' => 'imap.example.com',
+ 'server' => 'localhost',
- 'protocol' => 'imap',
- 'port' => 143,
-- 'folders' => 'mail/',
++ 'protocol' => '%%PROTOCOL%%',
++ 'port' => %%IMAPPORT%%,
+ 'folders' => 'Mail/',
'namespace' => '',
'maildomain' => 'example.com',
diff --git a/mail/imp3/files/patch-ac b/mail/imp3/files/patch-ac
new file mode 100644
index 000000000000..a7a34acdf937
--- /dev/null
+++ b/mail/imp3/files/patch-ac
@@ -0,0 +1,11 @@
+--- config/prefs.php.dist.orig Sun Dec 23 18:24:39 2001
++++ config/prefs.php.dist Thu Jan 3 20:57:38 2002
+@@ -444,7 +444,7 @@
+
+ // addressbook(s) to use when expanding addresses
+ $_prefs['search_sources'] = array(
+- 'value' => '',
++ 'value' => 'localsql',
+ 'locked' => false,
+ 'shared' => false,
+ 'type' => 'implicit'
diff --git a/mail/imp3/pkg-descr b/mail/imp3/pkg-descr
index 52e93a82e191..7aa00a473a1b 100644
--- a/mail/imp3/pkg-descr
+++ b/mail/imp3/pkg-descr
@@ -1,13 +1,9 @@
-IMP 3 is currently in heavy development. Features that have been added
+IMP 3 is the new stable version of IMP. Features that have been added
include searching; a new, flexible preferences system; a hierarchical
folder tree; and more.
It requires PHP4. You should use it if you want to take advantage of
-PHP4s built-in session handling and improved speed; if you want access
-to features such as the interactive spell checker and folder searching;
-or if you want to contribute a major piece to the code.
-
-This code branch continues the trend of 2.2 by being slimmer, cleaner,
-and better designed code than the previous version.
+PHP4s built-in session handling and improved speed or if you want access
+to features such as the interactive spell checker and folder searching.
WWW: http://www.horde.org/imp/
diff --git a/mail/imp3/pkg-message b/mail/imp3/pkg-message
index a13b440f15f9..4ca4e8caccdf 100644
--- a/mail/imp3/pkg-message
+++ b/mail/imp3/pkg-message
@@ -15,8 +15,8 @@ IMP requires an IMAP server. If you want to install one on this
machine, you may install the ports mail/cyrus-imapd, or
mail/imap-uw, or mail/courier-imap.
-Please refer to the file %%DOCSDIR%%/SECURITY
-on how to secure the IMP installation.
-It is at least recommended that you change the default database
-password used by horde and imp.
+To secure your installation, it is at least recommended that you change
+the default database password used by horde and imp.
+Then, you might change the 'session.save_path' setting in php.ini to a
+directory only readable and writeable by your webserver.
************************************************************************
diff --git a/mail/imp3/pkg-plist b/mail/imp3/pkg-plist
index 7382ae313ddb..2a5334368c84 100644
--- a/mail/imp3/pkg-plist
+++ b/mail/imp3/pkg-plist
@@ -1,12 +1,10 @@
%%PORTDOCS%%share/doc/imp/CHANGES
%%PORTDOCS%%share/doc/imp/COPYING
%%PORTDOCS%%share/doc/imp/CREDITS
-%%PORTDOCS%%share/doc/imp/FEATURES
%%PORTDOCS%%share/doc/imp/INSTALL
-%%PORTDOCS%%share/doc/imp/PACKAGES
%%PORTDOCS%%share/doc/imp/README
-%%PORTDOCS%%share/doc/imp/SECURITY
%%IMPDIR%%/compose.php
+%%IMPDIR%%/config/.htaccess
%%IMPDIR%%/config/conf.php
%%IMPDIR%%/config/conf.php.dist
%%IMPDIR%%/config/filter.txt
@@ -15,7 +13,6 @@
%%IMPDIR%%/config/header.txt.dist
%%IMPDIR%%/config/html.php
%%IMPDIR%%/config/html.php.dist
-%%IMPDIR%%/config/imp.dt
%%IMPDIR%%/config/menu.php
%%IMPDIR%%/config/menu.php.dist
%%IMPDIR%%/config/mime_drivers.php
@@ -25,6 +22,7 @@
%%IMPDIR%%/config/motd.php.dist
%%IMPDIR%%/config/prefs.php
%%IMPDIR%%/config/prefs.php.dist
+%%IMPDIR%%/config/prefs.php.dist.orig
%%IMPDIR%%/config/servers.php
%%IMPDIR%%/config/servers.php.dist
%%IMPDIR%%/config/servers.php.dist.orig
@@ -86,6 +84,7 @@
%%IMPDIR%%/identities.php
%%IMPDIR%%/index.php
%%IMPDIR%%/intro.php
+%%IMPDIR%%/lib/.htaccess
%%IMPDIR%%/lib/Folder.php
%%IMPDIR%%/lib/IMP.php
%%IMPDIR%%/lib/Identity/IMP.php
@@ -100,30 +99,47 @@
%%IMPDIR%%/lib/api.php
%%IMPDIR%%/lib/base.php
%%IMPDIR%%/lib/version.php
+%%IMPDIR%%/locale/.htaccess
%%IMPDIR%%/locale/cs_CZ/LC_MESSAGES/imp.mo
+%%IMPDIR%%/locale/cs_CZ/help.xml
%%IMPDIR%%/locale/de_DE/LC_MESSAGES/imp.mo
%%IMPDIR%%/locale/de_DE/help.xml
%%IMPDIR%%/locale/el_GR/LC_MESSAGES/imp.mo
-%%IMPDIR%%/locale/en_EN/help.xml
+%%IMPDIR%%/locale/el_GR/help.xml
+%%IMPDIR%%/locale/en_US/help.xml
%%IMPDIR%%/locale/es_ES/LC_MESSAGES/imp.mo
+%%IMPDIR%%/locale/es_ES/help.xml
+%%IMPDIR%%/locale/fi_FI/LC_MESSAGES/imp.mo
+%%IMPDIR%%/locale/fi_FI/help.xml
%%IMPDIR%%/locale/fr_FR/LC_MESSAGES/imp.mo
%%IMPDIR%%/locale/fr_FR/help.xml
%%IMPDIR%%/locale/it_IT/LC_MESSAGES/imp.mo
%%IMPDIR%%/locale/it_IT/help.xml
%%IMPDIR%%/locale/ko_KR/LC_MESSAGES/imp.mo
+%%IMPDIR%%/locale/ko_KR/help.xml
%%IMPDIR%%/locale/nl_NL/LC_MESSAGES/imp.mo
%%IMPDIR%%/locale/nl_NL/help.xml
%%IMPDIR%%/locale/no_BOK/LC_MESSAGES/imp.mo
+%%IMPDIR%%/locale/no_BOK/help.xml
%%IMPDIR%%/locale/pl_PL/LC_MESSAGES/imp.mo
+%%IMPDIR%%/locale/pl_PL/help.xml
%%IMPDIR%%/locale/pt_BR/LC_MESSAGES/imp.mo
+%%IMPDIR%%/locale/pt_BR/help.xml
%%IMPDIR%%/locale/ru_win/LC_MESSAGES/imp.mo
+%%IMPDIR%%/locale/ru_win/help.xml
+%%IMPDIR%%/locale/sv_SE/LC_MESSAGES/imp.mo
+%%IMPDIR%%/locale/sv_SE/help.xml
%%IMPDIR%%/locale/uk/LC_MESSAGES/imp.mo
+%%IMPDIR%%/locale/uk/help.xml
%%IMPDIR%%/locale/zh_CN/LC_MESSAGES/imp.mo
+%%IMPDIR%%/locale/zh_CN/help.xml
%%IMPDIR%%/locale/zh_TW/LC_MESSAGES/imp.mo
+%%IMPDIR%%/locale/zh_TW/help.xml
%%IMPDIR%%/login.php
%%IMPDIR%%/mailbox.php
%%IMPDIR%%/menu.php
%%IMPDIR%%/message.php
+%%IMPDIR%%/po/.htaccess
%%IMPDIR%%/po/Makefile
%%IMPDIR%%/po/README
%%IMPDIR%%/po/cs_CZ.po
@@ -131,6 +147,7 @@
%%IMPDIR%%/po/el_GR.po
%%IMPDIR%%/po/es_ES.po
%%IMPDIR%%/po/extract.pl
+%%IMPDIR%%/po/fi_FI.po
%%IMPDIR%%/po/fr_FR.po
%%IMPDIR%%/po/it_IT.po
%%IMPDIR%%/po/ko_KR.po
@@ -140,17 +157,23 @@
%%IMPDIR%%/po/pt_BR.po
%%IMPDIR%%/po/ru_win.po
%%IMPDIR%%/po/shtool
+%%IMPDIR%%/po/sv_SE.po
%%IMPDIR%%/po/uk.po
%%IMPDIR%%/po/xgettext.sh
%%IMPDIR%%/po/zh_CN.po
%%IMPDIR%%/po/zh_TW.po
%%IMPDIR%%/prefs.php
%%IMPDIR%%/redirect.php
+%%IMPDIR%%/scripts/.htaccess
%%IMPDIR%%/scripts/Imp.reg
+%%IMPDIR%%/scripts/custom_login.php
%%IMPDIR%%/scripts/imp-cleanup.cron
+%%IMPDIR%%/scripts/imp2horde.pl
+%%IMPDIR%%/scripts/imp2turba.pl
%%IMPDIR%%/search.php
%%IMPDIR%%/spelling.php
%%IMPDIR%%/status.php
+%%IMPDIR%%/templates/.htaccess
%%IMPDIR%%/templates/common-footer.inc
%%IMPDIR%%/templates/common-header.inc
%%IMPDIR%%/templates/compose/bounce.inc
@@ -194,7 +217,6 @@
%%IMPDIR%%/templates/message/navbar.inc
%%IMPDIR%%/templates/message/navbar_aux_bottom.inc
%%IMPDIR%%/templates/message/navbar_aux_top.inc
-%%IMPDIR%%/templates/prefs/filters.inc
%%IMPDIR%%/templates/prefs/folderselect.inc
%%IMPDIR%%/templates/prefs/identityselect.inc
%%IMPDIR%%/templates/prefs/sourceselect.inc
@@ -220,9 +242,11 @@ etc/horde/httpd.conf.imp
@dirrm %%IMPDIR%%/locale/de_DE
@dirrm %%IMPDIR%%/locale/el_GR/LC_MESSAGES
@dirrm %%IMPDIR%%/locale/el_GR
-@dirrm %%IMPDIR%%/locale/en_EN
+@dirrm %%IMPDIR%%/locale/en_US
@dirrm %%IMPDIR%%/locale/es_ES/LC_MESSAGES
@dirrm %%IMPDIR%%/locale/es_ES
+@dirrm %%IMPDIR%%/locale/fi_FI/LC_MESSAGES
+@dirrm %%IMPDIR%%/locale/fi_FI
@dirrm %%IMPDIR%%/locale/fr_FR/LC_MESSAGES
@dirrm %%IMPDIR%%/locale/fr_FR
@dirrm %%IMPDIR%%/locale/it_IT/LC_MESSAGES
@@ -239,6 +263,8 @@ etc/horde/httpd.conf.imp
@dirrm %%IMPDIR%%/locale/pt_BR
@dirrm %%IMPDIR%%/locale/ru_win/LC_MESSAGES
@dirrm %%IMPDIR%%/locale/ru_win
+@dirrm %%IMPDIR%%/locale/sv_SE/LC_MESSAGES
+@dirrm %%IMPDIR%%/locale/sv_SE
@dirrm %%IMPDIR%%/locale/uk/LC_MESSAGES
@dirrm %%IMPDIR%%/locale/uk
@dirrm %%IMPDIR%%/locale/zh_CN/LC_MESSAGES