diff options
-rw-r--r-- | mail/Makefile | 1 | ||||
-rw-r--r-- | mail/horde-mimp/Makefile | 184 | ||||
-rw-r--r-- | mail/horde-mimp/distinfo | 3 | ||||
-rw-r--r-- | mail/horde-mimp/files/httpd.conf.mimp | 31 | ||||
-rw-r--r-- | mail/horde-mimp/files/patch-config-prefs.php.dist | 11 | ||||
-rw-r--r-- | mail/horde-mimp/files/patch-config-servers.php.dist | 19 | ||||
-rw-r--r-- | mail/horde-mimp/files/pkg-deinstall.in | 23 | ||||
-rw-r--r-- | mail/horde-mimp/files/pkg-install.in | 23 | ||||
-rw-r--r-- | mail/horde-mimp/files/pkg-message.in | 20 | ||||
-rw-r--r-- | mail/horde-mimp/pkg-descr | 6 | ||||
-rw-r--r-- | mail/horde-mimp/pkg-plist | 115 | ||||
-rw-r--r-- | mail/mimp/Makefile | 184 | ||||
-rw-r--r-- | mail/mimp/distinfo | 3 | ||||
-rw-r--r-- | mail/mimp/files/httpd.conf.mimp | 31 | ||||
-rw-r--r-- | mail/mimp/files/patch-config-prefs.php.dist | 11 | ||||
-rw-r--r-- | mail/mimp/files/patch-config-servers.php.dist | 19 | ||||
-rw-r--r-- | mail/mimp/files/pkg-deinstall.in | 23 | ||||
-rw-r--r-- | mail/mimp/files/pkg-install.in | 23 | ||||
-rw-r--r-- | mail/mimp/files/pkg-message.in | 20 | ||||
-rw-r--r-- | mail/mimp/pkg-descr | 6 | ||||
-rw-r--r-- | mail/mimp/pkg-plist | 115 |
21 files changed, 871 insertions, 0 deletions
diff --git a/mail/Makefile b/mail/Makefile index 640f94fa27a7..01e7eb683d32 100644 --- a/mail/Makefile +++ b/mail/Makefile @@ -244,6 +244,7 @@ SUBDIR += milter-regex SUBDIR += milter-skem SUBDIR += mimedefang + SUBDIR += mimp SUBDIR += mini_sendmail SUBDIR += minimalist SUBDIR += missey diff --git a/mail/horde-mimp/Makefile b/mail/horde-mimp/Makefile new file mode 100644 index 000000000000..66cdbdf612c7 --- /dev/null +++ b/mail/horde-mimp/Makefile @@ -0,0 +1,184 @@ +# Ports collection makefile for: mimp3 +# Date created: Mon Feb 05, 2007 +# Whom: Beech Rintoul (<beech@alaskaparadise.com>) +# +# $FreeBSD$ +# + +PORTNAME= mimp +PORTVERSION= 1.0 +CATEGORIES= mail www +MASTER_SITES= HORDE +DISTNAME= ${PORTNAME}-h3-${PORTVERSION} + +MAINTAINER= beech@alaskaparadise.com +COMMENT= A mobile webmail system which uses the horde framework + +#----------------------------------------------------------------------- +# You may define these options: +# +# - WITHOUT_LDAP if you do not need OpenLDAP; +# +# - WITHOUT_SMIME disable S/MIME; +# +# - WITHOUT_SUPPORTED_DB if you run a database not in the ports tree; +# +# - NOCRYPT if crypto is restricted in your country; +# +# - WITHOUT_SSL if you have not installed c-client WITH_SSL; +# +# - WITH_VALID_CERT if you own a valid SSL certificate; +# +# - WITH_IMAPSERVER if you want to depend on an IMAP server; +# +# or you can select to work with one of these servers: +# +# - WITH_CYRUS-IMAPD MIMP will work with cyrus-imapd; +# +# - WITH_IMAP-UW MIMP will work with imap-uw; +# +# - WITH_DOVECOT MIMP will work with dovecot; +# +# - WITH_COURIER-IMAP MIMP will work with courier-imap. +# +# These choices are mutually exclusive, and imap-uw is the default. +# +#----------------------------------------------------------------------- + +RUN_DEPENDS+= ${PEARDIR}/Auth/SASL.php:${PORTSDIR}/security/pear-Auth_SASL + +USE_PHP= imap +. if !defined(WITHOUT_LDAP) +USE_PHP+= ldap +. endif + +RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde + +.if !defined(WITHOUT_SMIME) +USE_PHP+= openssl +.endif + +.if !defined(NOCRYPT) +RUN_DEPENDS+= ${LOCALBASE}/bin/gpgv:${PORTSDIR}/security/gnupg1 +.endif + +NO_BUILD= yes +USE_APACHE= 1.3+ # needed to test APACHE_VERSION +USE_GETTEXT= yes +REINPLACE_ARGS= -i.beforeMIMP + +DOCS= COPYING README docs/CHANGES docs/CREDITS docs/INSTALL \ + docs/RELEASE_NOTES +CONFFILE= filter.txt header.php menu.php mime_drivers.php motd.php \ + prefs.php servers.php trailer.txt conf.xml .htaccess +SUB_DIRS= config lib locale po templates themes + +LHORDEDIR?= www/horde +LMIMPDIR= ${LHORDEDIR}/mimp +PEARDIR?= ${LOCALBASE}/share/pear + +PLIST_SUB= MIMPDIR=${LMIMPDIR} HORDE_INC=${HORDE_INC:S|^${LOCALBASE}/||} +PKGMESSAGE= ${WRKDIR}/pkg-message +PKGDEINSTALL= ${WRKDIR}/pkg-deinstall +SUB_FILES= pkg-message pkg-install pkg-deinstall +SUB_LIST= MIMPDIR=${MIMPDIR} PORTSDIR=${PORTSDIR} CONFDIR=${CONFDIR} + +MIMPDIR= ${PREFIX}/${LMIMPDIR} +CONFDIR= ${MIMPDIR}/config + +HOSTNAME?= `/bin/hostname` +SERVOS?= ${OPSYS}-${OSREL} + +PORTREV_H?= ${LOCALBASE}/include/c-client/portrevision.h + +PATCH2RM= prefs.php.dist.orig servers.php.dist.orig + +.include <bsd.port.pre.mk> + +.if defined(WITH_IMAPSERVER) +. if defined(WITH_IMAP-UW) || exists(${LOCALBASE}/libexec/imapd) +RUN_DEPENDS+= ${LOCALBASE}/libexec/imapd:${PORTSDIR}/mail/imap-uw +. elif defined(WITH_CYRUS-IMAPD) || exists(${LOCALBASE}/lib/libacap.a) +RUN_DEPENDS+= ${LOCALBASE}/lib/libacap.a:${PORTSDIR}/mail/cyrus-imapd2 +. elif defined(WITH_COURIER-IMAP) || exists(${LOCALBASE}/bin/deliverquota) +RUN_DEPENDS+= ${LOCALBASE}/bin/deliverquota:${PORTSDIR}/mail/courier-imap +. elif defined(WITH_DOVECOT) || exists(${LOCALBASE}/libexec/dovecot/imap) +RUN_DEPENDS+= ${LOCALBASE}/libexec/dovecot/imap:${PORTSDIR}/mail/dovecot +. else +RUN_DEPENDS+= ${LOCALBASE}/libexec/imapd:${PORTSDIR}/mail/imap-uw +. endif +.endif + +.if ${APACHE_VERSION} >= 20 +HORDE_INC= ${LOCALBASE}/etc/apache${APACHE_VERSION:S/20/2/}/Includes/ +.else +HORDE_INC= ${LOCALBASE}/etc/horde/ +.endif + +pre-configure: + @${REINPLACE_CMD} -e "s:/usr/local:${LOCALBASE}:" ${WRKSRC}/config/conf.xml +.if !defined(NOCRYPT) + @${REINPLACE_CMD} -e "s:%%GPG%%:${LOCALBASE}/bin/gpg:" \ + ${WRKSRC}/config/conf.xml +.else + @${REINPLACE_CMD} -e "s:%%GPG%%::" ${WRKSRC}/config/conf.xml +.endif + @${REINPLACE_CMD} -e "s:MIMP_VERSION:MIMP_VERSION . ' / ${SERVOS}':" \ + ${WRKSRC}/lib/MIME/Headers.php + @${REINPLACE_CMD} -e "s:example.com:${HOSTNAME}:g" \ + ${WRKSRC}/config/servers.php.dist +.if defined(WITHOUT_SSL) + @${REINPLACE_CMD} -e "s:%%PROTOCOL%%:imap/notls:;s:%%IMAPPORT%%:143:" +\ + ${WRKSRC}/config/servers.php.dist +.else + @${REINPLACE_CMD} -e "s:%%IMAPPORT%%:993:" ${WRKSRC}/config/servers.php.dist +. if defined(WITH_VALID_CERT) + @${REINPLACE_CMD} -e "s:%%PROTOCOL%%:imap/ssl:" ${WRKSRC}/config/servers.php.dist +. else + @${REINPLACE_CMD} -e "s:%%PROTOCOL%%:imap/ssl/novalidate-cert:" \ + ${WRKSRC}/config/servers.php.dist +. endif +.endif + @${SED} -e "s:/home/httpd/html/horde/mimp:${MIMPDIR}:" \ + ${FILESDIR}/httpd.conf.mimp > ${WRKDIR}/httpd-mimp.conf + +pre-install: +.if !defined(BATCH) && !defined(WITHOUT_SSL) + @if ! ${GREP} -q -e 'CCLIENT_SSLENABLED "yes"' ${PORTREV_H}; then \ + ${ECHO_MSG} "" ; \ + ${ECHO_MSG} "Please configure c-client with SSL support." ; \ + ${ECHO_MSG} "" ; \ + ${FALSE} ; \ + fi +.endif +.for fc in ${PATCH2RM} + @${RM} ${WRKSRC}/config/${fc} +.endfor + +do-install: + @${MKDIR} ${MIMPDIR} +.for REP in ${SUB_DIRS} + @${CP} -Rp ${WRKSRC}/${REP} ${MIMPDIR}/ +.endfor + @${CP} -p ${WRKSRC}/*.php ${MIMPDIR}/ + @${INSTALL_DATA} ${WRKSRC}/config/conf.xml ${CONFDIR}/ + @${INSTALL_DATA} ${WRKDIR}/httpd-mimp.conf ${HORDE_INC}/ + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${MIMPDIR}/ + @${CHMOD} -R o-rwx ${CONFDIR}/ + +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for FILE in ${DOCS} + @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}/ +.endfor + @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." +.endif + +post-install: + @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} + +.include <bsd.port.post.mk> diff --git a/mail/horde-mimp/distinfo b/mail/horde-mimp/distinfo new file mode 100644 index 000000000000..72fc5a3205b5 --- /dev/null +++ b/mail/horde-mimp/distinfo @@ -0,0 +1,3 @@ +MD5 (mimp-h3-1.0.tar.gz) = 5fd92232cbc7008563c7200c72a7a6e7 +SHA256 (mimp-h3-1.0.tar.gz) = c71b3e9af46bbd1ad1caf54cf02ce99e01d5e762b982c6f0ac218e684fc94757 +SIZE (mimp-h3-1.0.tar.gz) = 491972 diff --git a/mail/horde-mimp/files/httpd.conf.mimp b/mail/horde-mimp/files/httpd.conf.mimp new file mode 100644 index 000000000000..0a6aadc8a2cc --- /dev/null +++ b/mail/horde-mimp/files/httpd.conf.mimp @@ -0,0 +1,31 @@ +# This is included in Apache's httpd.conf for MIMP +# +# For security, don't serve pages from the MIMP configuration and +# library directories. +# +<Directory "/home/httpd/html/horde/mimp/config"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mimp/lib"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mimp/locale"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mimp/po"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mimp/scripts"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mimp/templates"> + order deny,allow + deny from all +</Directory> +# End of MIMP configuration ================ + diff --git a/mail/horde-mimp/files/patch-config-prefs.php.dist b/mail/horde-mimp/files/patch-config-prefs.php.dist new file mode 100644 index 000000000000..68730ef6fde4 --- /dev/null +++ b/mail/horde-mimp/files/patch-config-prefs.php.dist @@ -0,0 +1,11 @@ +--- config/prefs.php.dist.orig Fri Oct 29 19:04:12 2004 ++++ config/prefs.php.dist Thu Nov 11 21:49:05 2004 +@@ -1071,7 +1071,7 @@ + // 'value' => "source_one\tsource_two" + // refer to turba/config/sources.php for possible source values + $_prefs['search_sources'] = array( +- 'value' => "", ++ 'value' => 'localsql', + 'locked' => false, + 'shared' => false, + 'type' => 'implicit'); diff --git a/mail/horde-mimp/files/patch-config-servers.php.dist b/mail/horde-mimp/files/patch-config-servers.php.dist new file mode 100644 index 000000000000..a3d81c362a7c --- /dev/null +++ b/mail/horde-mimp/files/patch-config-servers.php.dist @@ -0,0 +1,19 @@ +--- config/servers.php.dist.orig Wed Feb 22 08:16:36 2006 ++++ config/servers.php.dist Mon Feb 5 13:14:52 2007 +@@ -159,11 +159,12 @@ + + $servers['imap'] = array( + 'name' => 'IMAP Server', +- 'server' => 'imap.example.com', +- 'protocol' => 'imap/notls', +- 'port' => 143, ++ 'server' => 'localhost', ++ 'hordeauth' => false, ++ 'protocol' => '%%PROTOCOL%%', ++ 'port' => %%IMAPPORT%%, + 'maildomain' => 'example.com', +- 'smtphost' => 'smtp.example.com', ++ 'smtphost' => 'localhost', + 'smtpport' => 25, + 'realm' => '', + 'preferred' => '', diff --git a/mail/horde-mimp/files/pkg-deinstall.in b/mail/horde-mimp/files/pkg-deinstall.in new file mode 100644 index 000000000000..7f721dba2f9a --- /dev/null +++ b/mail/horde-mimp/files/pkg-deinstall.in @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $FreeBSD: +# + +if [ x$2 != xDEINSTALL ]; then + exit +fi + +if [ -z "${PACKAGE_BUILDING}" ]; then + for cf in `ls %%MIMPDIR%%/config/*php %%MIMPDIR%%/config/*txt`; do + diff -bBqw $cf $cf.dist >/dev/null 2>&1 + case $? in + 0) # original config file, delete it + rm -f $cf + ;; + 1) # config file has been updated, leave it alone + ;; + *) # not found? + ;; + esac + done +fi diff --git a/mail/horde-mimp/files/pkg-install.in b/mail/horde-mimp/files/pkg-install.in new file mode 100644 index 000000000000..6268cfb52df6 --- /dev/null +++ b/mail/horde-mimp/files/pkg-install.in @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $FreeBSD: +# + +PATH=/usr/sbin:/usr/bin:/bin ; export PATH + +case $2 in + PRE-INSTALL) + ;; + + POST-INSTALL) + if [ -z "${PACKAGE_BUILDING}" ]; then + # Copy over sample config files unless they already exist + + for cf in `ls %%MIMPDIR%%/config/*.dist | sed -e 's/\.dist//g'`; do + if [ ! -f $cf ]; then + cp -p $cf.dist $cf + fi + done + fi + ;; +esac diff --git a/mail/horde-mimp/files/pkg-message.in b/mail/horde-mimp/files/pkg-message.in new file mode 100644 index 000000000000..0710c978e6d5 --- /dev/null +++ b/mail/horde-mimp/files/pkg-message.in @@ -0,0 +1,20 @@ +************************************************************************ +MIMP has been installed in %%MIMPDIR%% with your blank +configuration files. + +Horde must be configured and the tables created; if not, see +`pkg_info -D -x horde'. + +Then, you might have to tune the configuration files located in +%%CONFDIR%%/, specially the file servers.php. + +Then, you must login to Horde as a Horde Administrator to finish the +configuration. Please read %%DOCSDIR%%/INSTALL. + +To protect your configuration files, you have to restart your webserver. + +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/horde-mimp/pkg-descr b/mail/horde-mimp/pkg-descr new file mode 100644 index 000000000000..eb98d5b91390 --- /dev/null +++ b/mail/horde-mimp/pkg-descr @@ -0,0 +1,6 @@ +MIMP is a version of HORDE IMP suitable for mobile devices such as WAP phones or +PDAs. Basic IMP functionality is implemented including mailbox viewing and +paging, viewing messages, deleting, replying, forwarding, and composing new +messages. + +WWW: http://www.horde.org/mimp/ diff --git a/mail/horde-mimp/pkg-plist b/mail/horde-mimp/pkg-plist new file mode 100644 index 000000000000..cc4e1eb5114d --- /dev/null +++ b/mail/horde-mimp/pkg-plist @@ -0,0 +1,115 @@ +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/CREDITS +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES +%%MIMPDIR%%/compose.php +%%MIMPDIR%%/config/.htaccess +%%MIMPDIR%%/config/conf.xml +%%MIMPDIR%%/config/filter.txt.dist +%%MIMPDIR%%/config/header.php.dist +%%MIMPDIR%%/config/menu.php.dist +%%MIMPDIR%%/config/mime_drivers.php.dist +%%MIMPDIR%%/config/motd.php.dist +%%MIMPDIR%%/config/prefs.php.dist +%%MIMPDIR%%/config/servers.php.dist +%%MIMPDIR%%/config/trailer.txt.dist +%%MIMPDIR%%/config/conf.xml.beforeMIMP +%%MIMPDIR%%/config/servers.php.dist.beforeMIMP +%%MIMPDIR%%/folders.php +%%MIMPDIR%%/index.php +%%MIMPDIR%%/lib/Auth/mimp.php +%%MIMPDIR%%/lib/base.php +%%MIMPDIR%%/lib/Compose.php +%%MIMPDIR%%/lib/Folder.php +%%MIMPDIR%%/lib/IMAP.php +%%MIMPDIR%%/lib/IMAP/Client.php +%%MIMPDIR%%/lib/IMAP/Sort.php +%%MIMPDIR%%/lib/IMAP/Tree.php +%%MIMPDIR%%/lib/Identity/mimp.php +%%MIMPDIR%%/lib/MIME/Contents.php +%%MIMPDIR%%/lib/MIME/Headers.php +%%MIMPDIR%%/lib/MIME/Viewer/alternative.php +%%MIMPDIR%%/lib/MIME/Viewer/html.php +%%MIMPDIR%%/lib/MIME/Viewer/multipart.php +%%MIMPDIR%%/lib/MIME/Viewer/plain.php +%%MIMPDIR%%/lib/MIME/Viewer/related.php +%%MIMPDIR%%/lib/MIME/Headers.php.beforeMIMP +%%MIMPDIR%%/lib/Mailbox.php +%%MIMPDIR%%/lib/Message.php +%%MIMPDIR%%/lib/MIMP.php +%%MIMPDIR%%/lib/Session.php +%%MIMPDIR%%/lib/api.php +%%MIMPDIR%%/lib/prefs.php +%%MIMPDIR%%/lib/version.php +%%MIMPDIR%%/locale/de_DE/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/es_ES/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/fi_FI/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/fr_FR/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/hu_HU/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/it_IT/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/lt_LT/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/ro_RO/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/login.php +%%MIMPDIR%%/mailbox.php +%%MIMPDIR%%/message.php +%%MIMPDIR%%/po/README +%%MIMPDIR%%/po/mimp.pot +%%MIMPDIR%%/po/de_DE.po +%%MIMPDIR%%/po/es_ES.po +%%MIMPDIR%%/po/fi_FI.po +%%MIMPDIR%%/po/fr_FR.po +%%MIMPDIR%%/po/hu_HU.po +%%MIMPDIR%%/po/it_IT.po +%%MIMPDIR%%/po/lt_LT.po +%%MIMPDIR%%/po/ro_RO.po +%%MIMPDIR%%/redirect.php +%%MIMPDIR%%/templates/common-header.inc +%%MIMPDIR%%/templates/compose/compose.inc +%%MIMPDIR%%/templates/compose/redirect.inc +%%MIMPDIR%%/templates/index/notconfigured.inc +%%MIMPDIR%%/templates/login/login.inc +%%MIMPDIR%%/templates/mailbox/mailbox.inc +%%MIMPDIR%%/templates/prefs/sentmailselect.inc +%%MIMPDIR%%/test.php +%%MIMPDIR%%/themes/graphics/favicon.ico +%%MIMPDIR%%/themes/graphics/mimp.png +%%MIMPDIR%%/themes/graphics/horde-power2.png +%%MIMPDIR%%/themes/graphics/horde-power2.wbmp +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%HORDE_INC%%httpd-mimp.conf +@dirrm %%MIMPDIR%%/themes/graphics +@dirrm %%MIMPDIR%%/themes +@dirrm %%MIMPDIR%%/templates/prefs +@dirrm %%MIMPDIR%%/templates/mailbox +@dirrm %%MIMPDIR%%/templates/login +@dirrm %%MIMPDIR%%/templates/index +@dirrm %%MIMPDIR%%/templates/compose +@dirrm %%MIMPDIR%%/templates +@dirrm %%MIMPDIR%%/po +@dirrm %%MIMPDIR%%/locale/ro_RO/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/ro_RO +@dirrm %%MIMPDIR%%/locale/lt_LT/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/lt_LT +@dirrm %%MIMPDIR%%/locale/it_IT/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/it_IT +@dirrm %%MIMPDIR%%/locale/hu_HU/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/hu_HU +@dirrm %%MIMPDIR%%/locale/fr_FR/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/fr_FR +@dirrm %%MIMPDIR%%/locale/fi_FI/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/fi_FI +@dirrm %%MIMPDIR%%/locale/es_ES/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/es_ES +@dirrm %%MIMPDIR%%/locale/de_DE/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/de_DE +@dirrm %%MIMPDIR%%/locale +@dirrm %%MIMPDIR%%/lib/MIME/Viewer +@dirrm %%MIMPDIR%%/lib/MIME +@dirrm %%MIMPDIR%%/lib/Identity +@dirrm %%MIMPDIR%%/lib/IMAP +@dirrm %%MIMPDIR%%/lib/Auth +@dirrm %%MIMPDIR%%/lib +@dirrmtry %%MIMPDIR%%/config +@dirrmtry %%MIMPDIR%% diff --git a/mail/mimp/Makefile b/mail/mimp/Makefile new file mode 100644 index 000000000000..66cdbdf612c7 --- /dev/null +++ b/mail/mimp/Makefile @@ -0,0 +1,184 @@ +# Ports collection makefile for: mimp3 +# Date created: Mon Feb 05, 2007 +# Whom: Beech Rintoul (<beech@alaskaparadise.com>) +# +# $FreeBSD$ +# + +PORTNAME= mimp +PORTVERSION= 1.0 +CATEGORIES= mail www +MASTER_SITES= HORDE +DISTNAME= ${PORTNAME}-h3-${PORTVERSION} + +MAINTAINER= beech@alaskaparadise.com +COMMENT= A mobile webmail system which uses the horde framework + +#----------------------------------------------------------------------- +# You may define these options: +# +# - WITHOUT_LDAP if you do not need OpenLDAP; +# +# - WITHOUT_SMIME disable S/MIME; +# +# - WITHOUT_SUPPORTED_DB if you run a database not in the ports tree; +# +# - NOCRYPT if crypto is restricted in your country; +# +# - WITHOUT_SSL if you have not installed c-client WITH_SSL; +# +# - WITH_VALID_CERT if you own a valid SSL certificate; +# +# - WITH_IMAPSERVER if you want to depend on an IMAP server; +# +# or you can select to work with one of these servers: +# +# - WITH_CYRUS-IMAPD MIMP will work with cyrus-imapd; +# +# - WITH_IMAP-UW MIMP will work with imap-uw; +# +# - WITH_DOVECOT MIMP will work with dovecot; +# +# - WITH_COURIER-IMAP MIMP will work with courier-imap. +# +# These choices are mutually exclusive, and imap-uw is the default. +# +#----------------------------------------------------------------------- + +RUN_DEPENDS+= ${PEARDIR}/Auth/SASL.php:${PORTSDIR}/security/pear-Auth_SASL + +USE_PHP= imap +. if !defined(WITHOUT_LDAP) +USE_PHP+= ldap +. endif + +RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde + +.if !defined(WITHOUT_SMIME) +USE_PHP+= openssl +.endif + +.if !defined(NOCRYPT) +RUN_DEPENDS+= ${LOCALBASE}/bin/gpgv:${PORTSDIR}/security/gnupg1 +.endif + +NO_BUILD= yes +USE_APACHE= 1.3+ # needed to test APACHE_VERSION +USE_GETTEXT= yes +REINPLACE_ARGS= -i.beforeMIMP + +DOCS= COPYING README docs/CHANGES docs/CREDITS docs/INSTALL \ + docs/RELEASE_NOTES +CONFFILE= filter.txt header.php menu.php mime_drivers.php motd.php \ + prefs.php servers.php trailer.txt conf.xml .htaccess +SUB_DIRS= config lib locale po templates themes + +LHORDEDIR?= www/horde +LMIMPDIR= ${LHORDEDIR}/mimp +PEARDIR?= ${LOCALBASE}/share/pear + +PLIST_SUB= MIMPDIR=${LMIMPDIR} HORDE_INC=${HORDE_INC:S|^${LOCALBASE}/||} +PKGMESSAGE= ${WRKDIR}/pkg-message +PKGDEINSTALL= ${WRKDIR}/pkg-deinstall +SUB_FILES= pkg-message pkg-install pkg-deinstall +SUB_LIST= MIMPDIR=${MIMPDIR} PORTSDIR=${PORTSDIR} CONFDIR=${CONFDIR} + +MIMPDIR= ${PREFIX}/${LMIMPDIR} +CONFDIR= ${MIMPDIR}/config + +HOSTNAME?= `/bin/hostname` +SERVOS?= ${OPSYS}-${OSREL} + +PORTREV_H?= ${LOCALBASE}/include/c-client/portrevision.h + +PATCH2RM= prefs.php.dist.orig servers.php.dist.orig + +.include <bsd.port.pre.mk> + +.if defined(WITH_IMAPSERVER) +. if defined(WITH_IMAP-UW) || exists(${LOCALBASE}/libexec/imapd) +RUN_DEPENDS+= ${LOCALBASE}/libexec/imapd:${PORTSDIR}/mail/imap-uw +. elif defined(WITH_CYRUS-IMAPD) || exists(${LOCALBASE}/lib/libacap.a) +RUN_DEPENDS+= ${LOCALBASE}/lib/libacap.a:${PORTSDIR}/mail/cyrus-imapd2 +. elif defined(WITH_COURIER-IMAP) || exists(${LOCALBASE}/bin/deliverquota) +RUN_DEPENDS+= ${LOCALBASE}/bin/deliverquota:${PORTSDIR}/mail/courier-imap +. elif defined(WITH_DOVECOT) || exists(${LOCALBASE}/libexec/dovecot/imap) +RUN_DEPENDS+= ${LOCALBASE}/libexec/dovecot/imap:${PORTSDIR}/mail/dovecot +. else +RUN_DEPENDS+= ${LOCALBASE}/libexec/imapd:${PORTSDIR}/mail/imap-uw +. endif +.endif + +.if ${APACHE_VERSION} >= 20 +HORDE_INC= ${LOCALBASE}/etc/apache${APACHE_VERSION:S/20/2/}/Includes/ +.else +HORDE_INC= ${LOCALBASE}/etc/horde/ +.endif + +pre-configure: + @${REINPLACE_CMD} -e "s:/usr/local:${LOCALBASE}:" ${WRKSRC}/config/conf.xml +.if !defined(NOCRYPT) + @${REINPLACE_CMD} -e "s:%%GPG%%:${LOCALBASE}/bin/gpg:" \ + ${WRKSRC}/config/conf.xml +.else + @${REINPLACE_CMD} -e "s:%%GPG%%::" ${WRKSRC}/config/conf.xml +.endif + @${REINPLACE_CMD} -e "s:MIMP_VERSION:MIMP_VERSION . ' / ${SERVOS}':" \ + ${WRKSRC}/lib/MIME/Headers.php + @${REINPLACE_CMD} -e "s:example.com:${HOSTNAME}:g" \ + ${WRKSRC}/config/servers.php.dist +.if defined(WITHOUT_SSL) + @${REINPLACE_CMD} -e "s:%%PROTOCOL%%:imap/notls:;s:%%IMAPPORT%%:143:" +\ + ${WRKSRC}/config/servers.php.dist +.else + @${REINPLACE_CMD} -e "s:%%IMAPPORT%%:993:" ${WRKSRC}/config/servers.php.dist +. if defined(WITH_VALID_CERT) + @${REINPLACE_CMD} -e "s:%%PROTOCOL%%:imap/ssl:" ${WRKSRC}/config/servers.php.dist +. else + @${REINPLACE_CMD} -e "s:%%PROTOCOL%%:imap/ssl/novalidate-cert:" \ + ${WRKSRC}/config/servers.php.dist +. endif +.endif + @${SED} -e "s:/home/httpd/html/horde/mimp:${MIMPDIR}:" \ + ${FILESDIR}/httpd.conf.mimp > ${WRKDIR}/httpd-mimp.conf + +pre-install: +.if !defined(BATCH) && !defined(WITHOUT_SSL) + @if ! ${GREP} -q -e 'CCLIENT_SSLENABLED "yes"' ${PORTREV_H}; then \ + ${ECHO_MSG} "" ; \ + ${ECHO_MSG} "Please configure c-client with SSL support." ; \ + ${ECHO_MSG} "" ; \ + ${FALSE} ; \ + fi +.endif +.for fc in ${PATCH2RM} + @${RM} ${WRKSRC}/config/${fc} +.endfor + +do-install: + @${MKDIR} ${MIMPDIR} +.for REP in ${SUB_DIRS} + @${CP} -Rp ${WRKSRC}/${REP} ${MIMPDIR}/ +.endfor + @${CP} -p ${WRKSRC}/*.php ${MIMPDIR}/ + @${INSTALL_DATA} ${WRKSRC}/config/conf.xml ${CONFDIR}/ + @${INSTALL_DATA} ${WRKDIR}/httpd-mimp.conf ${HORDE_INC}/ + @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${MIMPDIR}/ + @${CHMOD} -R o-rwx ${CONFDIR}/ + +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for FILE in ${DOCS} + @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}/ +.endfor + @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." +.endif + +post-install: + @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL + @${ECHO_MSG} + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} + +.include <bsd.port.post.mk> diff --git a/mail/mimp/distinfo b/mail/mimp/distinfo new file mode 100644 index 000000000000..72fc5a3205b5 --- /dev/null +++ b/mail/mimp/distinfo @@ -0,0 +1,3 @@ +MD5 (mimp-h3-1.0.tar.gz) = 5fd92232cbc7008563c7200c72a7a6e7 +SHA256 (mimp-h3-1.0.tar.gz) = c71b3e9af46bbd1ad1caf54cf02ce99e01d5e762b982c6f0ac218e684fc94757 +SIZE (mimp-h3-1.0.tar.gz) = 491972 diff --git a/mail/mimp/files/httpd.conf.mimp b/mail/mimp/files/httpd.conf.mimp new file mode 100644 index 000000000000..0a6aadc8a2cc --- /dev/null +++ b/mail/mimp/files/httpd.conf.mimp @@ -0,0 +1,31 @@ +# This is included in Apache's httpd.conf for MIMP +# +# For security, don't serve pages from the MIMP configuration and +# library directories. +# +<Directory "/home/httpd/html/horde/mimp/config"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mimp/lib"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mimp/locale"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mimp/po"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mimp/scripts"> + order deny,allow + deny from all +</Directory> +<Directory "/home/httpd/html/horde/mimp/templates"> + order deny,allow + deny from all +</Directory> +# End of MIMP configuration ================ + diff --git a/mail/mimp/files/patch-config-prefs.php.dist b/mail/mimp/files/patch-config-prefs.php.dist new file mode 100644 index 000000000000..68730ef6fde4 --- /dev/null +++ b/mail/mimp/files/patch-config-prefs.php.dist @@ -0,0 +1,11 @@ +--- config/prefs.php.dist.orig Fri Oct 29 19:04:12 2004 ++++ config/prefs.php.dist Thu Nov 11 21:49:05 2004 +@@ -1071,7 +1071,7 @@ + // 'value' => "source_one\tsource_two" + // refer to turba/config/sources.php for possible source values + $_prefs['search_sources'] = array( +- 'value' => "", ++ 'value' => 'localsql', + 'locked' => false, + 'shared' => false, + 'type' => 'implicit'); diff --git a/mail/mimp/files/patch-config-servers.php.dist b/mail/mimp/files/patch-config-servers.php.dist new file mode 100644 index 000000000000..a3d81c362a7c --- /dev/null +++ b/mail/mimp/files/patch-config-servers.php.dist @@ -0,0 +1,19 @@ +--- config/servers.php.dist.orig Wed Feb 22 08:16:36 2006 ++++ config/servers.php.dist Mon Feb 5 13:14:52 2007 +@@ -159,11 +159,12 @@ + + $servers['imap'] = array( + 'name' => 'IMAP Server', +- 'server' => 'imap.example.com', +- 'protocol' => 'imap/notls', +- 'port' => 143, ++ 'server' => 'localhost', ++ 'hordeauth' => false, ++ 'protocol' => '%%PROTOCOL%%', ++ 'port' => %%IMAPPORT%%, + 'maildomain' => 'example.com', +- 'smtphost' => 'smtp.example.com', ++ 'smtphost' => 'localhost', + 'smtpport' => 25, + 'realm' => '', + 'preferred' => '', diff --git a/mail/mimp/files/pkg-deinstall.in b/mail/mimp/files/pkg-deinstall.in new file mode 100644 index 000000000000..7f721dba2f9a --- /dev/null +++ b/mail/mimp/files/pkg-deinstall.in @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $FreeBSD: +# + +if [ x$2 != xDEINSTALL ]; then + exit +fi + +if [ -z "${PACKAGE_BUILDING}" ]; then + for cf in `ls %%MIMPDIR%%/config/*php %%MIMPDIR%%/config/*txt`; do + diff -bBqw $cf $cf.dist >/dev/null 2>&1 + case $? in + 0) # original config file, delete it + rm -f $cf + ;; + 1) # config file has been updated, leave it alone + ;; + *) # not found? + ;; + esac + done +fi diff --git a/mail/mimp/files/pkg-install.in b/mail/mimp/files/pkg-install.in new file mode 100644 index 000000000000..6268cfb52df6 --- /dev/null +++ b/mail/mimp/files/pkg-install.in @@ -0,0 +1,23 @@ +#!/bin/sh +# +# $FreeBSD: +# + +PATH=/usr/sbin:/usr/bin:/bin ; export PATH + +case $2 in + PRE-INSTALL) + ;; + + POST-INSTALL) + if [ -z "${PACKAGE_BUILDING}" ]; then + # Copy over sample config files unless they already exist + + for cf in `ls %%MIMPDIR%%/config/*.dist | sed -e 's/\.dist//g'`; do + if [ ! -f $cf ]; then + cp -p $cf.dist $cf + fi + done + fi + ;; +esac diff --git a/mail/mimp/files/pkg-message.in b/mail/mimp/files/pkg-message.in new file mode 100644 index 000000000000..0710c978e6d5 --- /dev/null +++ b/mail/mimp/files/pkg-message.in @@ -0,0 +1,20 @@ +************************************************************************ +MIMP has been installed in %%MIMPDIR%% with your blank +configuration files. + +Horde must be configured and the tables created; if not, see +`pkg_info -D -x horde'. + +Then, you might have to tune the configuration files located in +%%CONFDIR%%/, specially the file servers.php. + +Then, you must login to Horde as a Horde Administrator to finish the +configuration. Please read %%DOCSDIR%%/INSTALL. + +To protect your configuration files, you have to restart your webserver. + +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/mimp/pkg-descr b/mail/mimp/pkg-descr new file mode 100644 index 000000000000..eb98d5b91390 --- /dev/null +++ b/mail/mimp/pkg-descr @@ -0,0 +1,6 @@ +MIMP is a version of HORDE IMP suitable for mobile devices such as WAP phones or +PDAs. Basic IMP functionality is implemented including mailbox viewing and +paging, viewing messages, deleting, replying, forwarding, and composing new +messages. + +WWW: http://www.horde.org/mimp/ diff --git a/mail/mimp/pkg-plist b/mail/mimp/pkg-plist new file mode 100644 index 000000000000..cc4e1eb5114d --- /dev/null +++ b/mail/mimp/pkg-plist @@ -0,0 +1,115 @@ +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/CREDITS +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES +%%MIMPDIR%%/compose.php +%%MIMPDIR%%/config/.htaccess +%%MIMPDIR%%/config/conf.xml +%%MIMPDIR%%/config/filter.txt.dist +%%MIMPDIR%%/config/header.php.dist +%%MIMPDIR%%/config/menu.php.dist +%%MIMPDIR%%/config/mime_drivers.php.dist +%%MIMPDIR%%/config/motd.php.dist +%%MIMPDIR%%/config/prefs.php.dist +%%MIMPDIR%%/config/servers.php.dist +%%MIMPDIR%%/config/trailer.txt.dist +%%MIMPDIR%%/config/conf.xml.beforeMIMP +%%MIMPDIR%%/config/servers.php.dist.beforeMIMP +%%MIMPDIR%%/folders.php +%%MIMPDIR%%/index.php +%%MIMPDIR%%/lib/Auth/mimp.php +%%MIMPDIR%%/lib/base.php +%%MIMPDIR%%/lib/Compose.php +%%MIMPDIR%%/lib/Folder.php +%%MIMPDIR%%/lib/IMAP.php +%%MIMPDIR%%/lib/IMAP/Client.php +%%MIMPDIR%%/lib/IMAP/Sort.php +%%MIMPDIR%%/lib/IMAP/Tree.php +%%MIMPDIR%%/lib/Identity/mimp.php +%%MIMPDIR%%/lib/MIME/Contents.php +%%MIMPDIR%%/lib/MIME/Headers.php +%%MIMPDIR%%/lib/MIME/Viewer/alternative.php +%%MIMPDIR%%/lib/MIME/Viewer/html.php +%%MIMPDIR%%/lib/MIME/Viewer/multipart.php +%%MIMPDIR%%/lib/MIME/Viewer/plain.php +%%MIMPDIR%%/lib/MIME/Viewer/related.php +%%MIMPDIR%%/lib/MIME/Headers.php.beforeMIMP +%%MIMPDIR%%/lib/Mailbox.php +%%MIMPDIR%%/lib/Message.php +%%MIMPDIR%%/lib/MIMP.php +%%MIMPDIR%%/lib/Session.php +%%MIMPDIR%%/lib/api.php +%%MIMPDIR%%/lib/prefs.php +%%MIMPDIR%%/lib/version.php +%%MIMPDIR%%/locale/de_DE/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/es_ES/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/fi_FI/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/fr_FR/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/hu_HU/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/it_IT/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/lt_LT/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/locale/ro_RO/LC_MESSAGES/mimp.mo +%%MIMPDIR%%/login.php +%%MIMPDIR%%/mailbox.php +%%MIMPDIR%%/message.php +%%MIMPDIR%%/po/README +%%MIMPDIR%%/po/mimp.pot +%%MIMPDIR%%/po/de_DE.po +%%MIMPDIR%%/po/es_ES.po +%%MIMPDIR%%/po/fi_FI.po +%%MIMPDIR%%/po/fr_FR.po +%%MIMPDIR%%/po/hu_HU.po +%%MIMPDIR%%/po/it_IT.po +%%MIMPDIR%%/po/lt_LT.po +%%MIMPDIR%%/po/ro_RO.po +%%MIMPDIR%%/redirect.php +%%MIMPDIR%%/templates/common-header.inc +%%MIMPDIR%%/templates/compose/compose.inc +%%MIMPDIR%%/templates/compose/redirect.inc +%%MIMPDIR%%/templates/index/notconfigured.inc +%%MIMPDIR%%/templates/login/login.inc +%%MIMPDIR%%/templates/mailbox/mailbox.inc +%%MIMPDIR%%/templates/prefs/sentmailselect.inc +%%MIMPDIR%%/test.php +%%MIMPDIR%%/themes/graphics/favicon.ico +%%MIMPDIR%%/themes/graphics/mimp.png +%%MIMPDIR%%/themes/graphics/horde-power2.png +%%MIMPDIR%%/themes/graphics/horde-power2.wbmp +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%HORDE_INC%%httpd-mimp.conf +@dirrm %%MIMPDIR%%/themes/graphics +@dirrm %%MIMPDIR%%/themes +@dirrm %%MIMPDIR%%/templates/prefs +@dirrm %%MIMPDIR%%/templates/mailbox +@dirrm %%MIMPDIR%%/templates/login +@dirrm %%MIMPDIR%%/templates/index +@dirrm %%MIMPDIR%%/templates/compose +@dirrm %%MIMPDIR%%/templates +@dirrm %%MIMPDIR%%/po +@dirrm %%MIMPDIR%%/locale/ro_RO/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/ro_RO +@dirrm %%MIMPDIR%%/locale/lt_LT/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/lt_LT +@dirrm %%MIMPDIR%%/locale/it_IT/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/it_IT +@dirrm %%MIMPDIR%%/locale/hu_HU/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/hu_HU +@dirrm %%MIMPDIR%%/locale/fr_FR/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/fr_FR +@dirrm %%MIMPDIR%%/locale/fi_FI/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/fi_FI +@dirrm %%MIMPDIR%%/locale/es_ES/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/es_ES +@dirrm %%MIMPDIR%%/locale/de_DE/LC_MESSAGES +@dirrm %%MIMPDIR%%/locale/de_DE +@dirrm %%MIMPDIR%%/locale +@dirrm %%MIMPDIR%%/lib/MIME/Viewer +@dirrm %%MIMPDIR%%/lib/MIME +@dirrm %%MIMPDIR%%/lib/Identity +@dirrm %%MIMPDIR%%/lib/IMAP +@dirrm %%MIMPDIR%%/lib/Auth +@dirrm %%MIMPDIR%%/lib +@dirrmtry %%MIMPDIR%%/config +@dirrmtry %%MIMPDIR%% |