diff options
author | bouyer <bouyer> | 2013-01-27 16:35:06 +0000 |
---|---|---|
committer | bouyer <bouyer> | 2013-01-27 16:35:06 +0000 |
commit | afb4d8413e9825a3685948e2cec50e45fbe89291 (patch) | |
tree | 9baa1ce48c5e3f3146b05de7d9fb42a58814a1f7 /mail/mimp | |
parent | f0b00bdd0bde22aed5e85c328c10019b93b50074 (diff) | |
download | pkgsrc-afb4d8413e9825a3685948e2cec50e45fbe89291.tar.gz |
Import mimp-1.1.4 to pkgsrc
MIMP is a project to create a version of IMP suitable for small 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.
Diffstat (limited to 'mail/mimp')
-rw-r--r-- | mail/mimp/DESCR | 4 | ||||
-rw-r--r-- | mail/mimp/MESSAGE | 21 | ||||
-rw-r--r-- | mail/mimp/Makefile | 93 | ||||
-rw-r--r-- | mail/mimp/PLIST | 83 | ||||
-rw-r--r-- | mail/mimp/distinfo | 5 | ||||
-rw-r--r-- | mail/mimp/files/mimp.conf.dist | 43 |
6 files changed, 249 insertions, 0 deletions
diff --git a/mail/mimp/DESCR b/mail/mimp/DESCR new file mode 100644 index 00000000000..6d1ac4cf3e0 --- /dev/null +++ b/mail/mimp/DESCR @@ -0,0 +1,4 @@ +MIMP is a project to create a version of IMP suitable for small 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. diff --git a/mail/mimp/MESSAGE b/mail/mimp/MESSAGE new file mode 100644 index 00000000000..e5b0bc2e06a --- /dev/null +++ b/mail/mimp/MESSAGE @@ -0,0 +1,21 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2013/01/27 16:35:06 bouyer Exp $ + +Please refer to the file: + + ${PREFIX}/share/doc/mimp/INSTALL + +on how to setup your MIMP installation. You need to at least edit + + ${PREFIX}/share/horde/config/registry.php + +to enable MIMP in the horde framework. You will also need to configure MIMP +by using the Horde administrative interface. + +Finally you will also need to make MIMP accessible through your HTTP server. If +you are running Apache and ap-php, then you can add the following lines +to httpd.conf: + + Include ${PKG_SYSCONFDIR}/mimp.conf + +=========================================================================== diff --git a/mail/mimp/Makefile b/mail/mimp/Makefile new file mode 100644 index 00000000000..461e3d77eb7 --- /dev/null +++ b/mail/mimp/Makefile @@ -0,0 +1,93 @@ +# $NetBSD: Makefile,v 1.1.1.1 2013/01/27 16:35:06 bouyer Exp $ + +DISTNAME= mimp-h3-${MIMPVER} +PKGNAME= mimp-${MIMPVER} +CATEGORIES= mail www +MASTER_SITES= http://ftp.horde.org/pub/mimp/ \ + ftp://ftp.horde.org/pub/mimp/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.horde.org/apps/mimp/ +COMMENT= Internet Messaging Program for mobile devices +LICENSE= gnu-gpl-v2 + +DEPENDS+= imp>=4.2:../../mail/imp + +USE_TOOLS+= pax + +PKG_DESTDIR_SUPPORT= destdir + +DOCDIR= ${PREFIX}/share/doc/mimp +EGDIR= ${PREFIX}/share/examples/mimp +HORDEDIR= ${PREFIX}/share/horde +MIMPDIR= ${HORDEDIR}/mimp +MIMPVER= 1.1.4 +PAXDIRS= lib locale po templates themes + +WRKSRC= ${WRKDIR}/${DISTNAME} +PKG_USERS_VARS+= APACHE_USER +BUILD_DEFS+= APACHE_USER + +MESSAGE_SUBST+= MIMPDIR=${MIMPDIR} +MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} + +PKG_SYSCONFSUBDIR?= httpd + +CONF_FILES= ${EGDIR}/mimp.conf ${PKG_SYSCONFDIR}/mimp.conf +CONF_FILES_PERMS+= ${MIMPDIR}/config/conf.xml.dist \ + ${MIMPDIR}/config/conf.xml \ + ${APACHE_USER} ${ROOT_GROUP} 0440 +CONF_FILES_PERMS+= ${MIMPDIR}/config/menu.php.dist \ + ${MIMPDIR}/config/menu.php \ + ${APACHE_USER} ${ROOT_GROUP} 0440 +CONF_FILES_PERMS+= ${MIMPDIR}/config/mime_drivers.php.dist \ + ${MIMPDIR}/config/mime_drivers.php \ + ${APACHE_USER} ${ROOT_GROUP} 0440 +CONF_FILES_PERMS+= ${MIMPDIR}/config/prefs.php.dist \ + ${MIMPDIR}/config/prefs.php \ + ${APACHE_USER} ${ROOT_GROUP} 0440 + +SUBST_CLASSES+= files +SUBST_STAGE.files= post-build +SUBST_FILES.files= mimp.conf.dist +SUBST_SED.files= -e "s|@MIMPDIR@|${MIMPDIR}|g" +SUBST_MESSAGE.files= Fixing configuration files. + +REPLACE_INTERPRETER+= php +REPLACE.php.old= .*/bin/php +REPLACE.php.new= ${PREFIX}/bin/php +REPLACE_FILES.php= scripts/bounce_spam.php \ + scripts/upgrades/convert_vfolders.php + +do-build: + ${CP} ${FILESDIR}/mimp.conf.dist ${WRKSRC}/mimp.conf.dist + ${CP} ${WRKSRC}/config/conf.xml ${WRKSRC}/config/conf.xml.dist + ${FIND} ${WRKSRC} -name .htaccess -print | ${XARGS} ${RM} -f + +do-install: + ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${MIMPDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${MIMPDIR}/config + ${INSTALL_DATA} ${WRKSRC}/mimp.conf.dist ${DESTDIR}${EGDIR}/mimp.conf + ${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/* ${DESTDIR}${DOCDIR} +.for d in ${PAXDIRS} + ${INSTALL_DATA_DIR} ${DESTDIR}${MIMPDIR}/${d} +.endfor +.for d in ${PAXDIRS} + cd ${WRKSRC}/${d} && pax -rwpam . ${DESTDIR}${MIMPDIR}/${d} +.endfor + ${INSTALL_DATA} ${WRKSRC}/config/*.dist ${DESTDIR}${MIMPDIR}/config + ${INSTALL_DATA} ${WRKSRC}/*.php ${DESTDIR}${MIMPDIR} + ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${MIMPDIR} + ${FIND} ${DESTDIR}${MIMPDIR} -type d -print | \ + ${XARGS} ${CHMOD} ${PKGDIRMODE} + ${FIND} ${DESTDIR}${MIMPDIR} -type f -print | \ + ${XARGS} ${CHMOD} ${SHAREMODE} + ${CHOWN} ${APACHE_USER}:${ROOT_GROUP} ${DESTDIR}${MIMPDIR}/config + ${CHMOD} 0750 ${DESTDIR}${MIMPDIR}/config + +.include "../../lang/php/phpversion.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/mimp/PLIST b/mail/mimp/PLIST new file mode 100644 index 00000000000..5c61ca62a75 --- /dev/null +++ b/mail/mimp/PLIST @@ -0,0 +1,83 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2013/01/27 16:35:06 bouyer Exp $ +share/doc/mimp/CHANGES +share/doc/mimp/COPYING +share/doc/mimp/CREDITS +share/doc/mimp/INSTALL +share/doc/mimp/README +share/doc/mimp/RELEASE_NOTES +share/doc/mimp/UPGRADING +share/examples/mimp/mimp.conf +share/horde/mimp/compose.php +share/horde/mimp/config/conf.xml.dist +share/horde/mimp/config/menu.php.dist +share/horde/mimp/config/mime_drivers.php.dist +share/horde/mimp/config/prefs.php.dist +share/horde/mimp/folders.php +share/horde/mimp/index.php +share/horde/mimp/lib/MIMP.php +share/horde/mimp/lib/MIME/Contents.php +share/horde/mimp/lib/MIME/Viewer/alternative.php +share/horde/mimp/lib/MIME/Viewer/html.php +share/horde/mimp/lib/MIME/Viewer/multipart.php +share/horde/mimp/lib/MIME/Viewer/plain.php +share/horde/mimp/lib/MIME/Viewer/related.php +share/horde/mimp/lib/MIME/Viewer/status.php +share/horde/mimp/lib/api.php +share/horde/mimp/lib/base.php +share/horde/mimp/lib/version.php +share/horde/mimp/locale/ca_ES/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/cs_CZ/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/da_DK/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/de_DE/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/es_ES/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/eu_ES/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/fi_FI/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/fr_FR/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/hr_HR/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/hu_HU/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/it_IT/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/ja_JP/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/lt_LT/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/nl_NL/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/pl_PL/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/pt_BR/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/pt_PT/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/ro_RO/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/ru_RU/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/sk_SK/LC_MESSAGES/mimp.mo +share/horde/mimp/locale/zh_CN/LC_MESSAGES/mimp.mo +share/horde/mimp/mailbox.php +share/horde/mimp/message.php +share/horde/mimp/po/README +share/horde/mimp/po/ca_ES.po +share/horde/mimp/po/cs_CZ.po +share/horde/mimp/po/da_DK.po +share/horde/mimp/po/de_DE.po +share/horde/mimp/po/es_ES.po +share/horde/mimp/po/eu_ES.po +share/horde/mimp/po/fi_FI.po +share/horde/mimp/po/fr_FR.po +share/horde/mimp/po/hr_HR.po +share/horde/mimp/po/hu_HU.po +share/horde/mimp/po/mimp.pot +share/horde/mimp/po/it_IT.po +share/horde/mimp/po/ja_JP.po +share/horde/mimp/po/lt_LT.po +share/horde/mimp/po/nl_NL.po +share/horde/mimp/po/pl_PL.po +share/horde/mimp/po/pt_BR.po +share/horde/mimp/po/pt_PT.po +share/horde/mimp/po/ro_RO.po +share/horde/mimp/po/ru_RU.po +share/horde/mimp/po/sk_SK.po +share/horde/mimp/po/zh_CN.po +share/horde/mimp/templates/common-header.inc +share/horde/mimp/templates/compose/compose.inc +share/horde/mimp/templates/compose/redirect.inc +share/horde/mimp/templates/folders/folders.inc +share/horde/mimp/templates/index/notconfigured.inc +share/horde/mimp/templates/mailbox/mailbox.inc +share/horde/mimp/themes/graphics/favicon.ico +share/horde/mimp/themes/graphics/horde-power2.png +share/horde/mimp/themes/graphics/horde-power2.wbmp +share/horde/mimp/themes/graphics/mimp.png diff --git a/mail/mimp/distinfo b/mail/mimp/distinfo new file mode 100644 index 00000000000..de95adb34bf --- /dev/null +++ b/mail/mimp/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2013/01/27 16:35:06 bouyer Exp $ + +SHA1 (mimp-h3-1.1.4.tar.gz) = a1cd9242e4b692e948a777cbb20636de5cb9ff76 +RMD160 (mimp-h3-1.1.4.tar.gz) = 226499d7b407254036c30d3b00d9783dbc68cce9 +Size (mimp-h3-1.1.4.tar.gz) = 1249671 bytes diff --git a/mail/mimp/files/mimp.conf.dist b/mail/mimp/files/mimp.conf.dist new file mode 100644 index 00000000000..04acdf39b57 --- /dev/null +++ b/mail/mimp/files/mimp.conf.dist @@ -0,0 +1,43 @@ +# $NetBSD: mimp.conf.dist,v 1.1.1.1 2013/01/27 16:35:06 bouyer Exp $ +# +# MIMP configuration file fragment for Apache + +<IfModule mod_alias.c> + Alias /mimp/ "@MIMPDIR@/" +</IfModule> + +<Directory "@MIMPDIR@"> + DirectoryIndex index.php + <IfModule mod_php4.c> + php_flag file_uploads On + php_flag upload_max_filesize 5M + </IfModule> +</Directory> + +# For security, don't serve pages from the MIMP configuration and library +# directories. +# +<Directory "@MIMPDIR@/config"> + Order deny,allow + Deny from all +</Directory> +<Directory "@MIMPDIR@/lib"> + Order deny,allow + Deny from all +</Directory> +<Directory "@MIMPDIR@/locale"> + Order deny,allow + Deny from all +</Directory> +<Directory "@MIMPDIR@/po"> + Order deny,allow + Deny from all +</Directory> +<Directory "@MIMPDIR@/scripts"> + Order deny,allow + Deny from all +</Directory> +<Directory "@MIMPDIR@/templates"> + Order deny,allow + Deny from all +</Directory> |