2013-03-16 08:21:18 +01:00
|
|
|
# $NetBSD: Makefile,v 1.59 2013/03/16 07:21:20 obache Exp $
|
2001-02-12 16:27:41 +01:00
|
|
|
|
2006-06-16 11:24:36 +02:00
|
|
|
DISTNAME= imp-h3-${IMPVER}
|
|
|
|
PKGNAME= imp-${IMPVER}
|
2013-03-16 08:21:18 +01:00
|
|
|
PKGREVISION= 1
|
2001-02-12 16:27:41 +01:00
|
|
|
CATEGORIES= mail www
|
2006-06-16 11:24:36 +02:00
|
|
|
MASTER_SITES= http://ftp.horde.org/pub/imp/ \
|
|
|
|
ftp://ftp.horde.org/pub/imp/
|
2001-02-12 16:27:41 +01:00
|
|
|
|
2009-07-17 20:00:13 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-02-12 16:27:41 +01:00
|
|
|
HOMEPAGE= http://www.horde.org/imp/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= Internet Messaging Program
|
2012-02-23 12:04:09 +01:00
|
|
|
LICENSE= gnu-gpl-v2
|
2001-02-12 16:27:41 +01:00
|
|
|
|
IMP version H3 (4.2) is a major upgrade in the 4.x release series, including
these enhancements:
* Message and mailbox caching on the server side, resulting in much
increased performance and much less web server and IMAP server load.
* Rewrite of much of IMP's core libraries, resulting in more efficient
memory usage, more efficient IMAP queries, smaller session sizes, and
increased performance.
* WCAG 1.0 Priority 2/Section 508 accessibility guidelines compliance.
* Javascript auto-complete contact list searching.
* Can now have multiple browser windows open without destroying the
open session.
* Logging of sent messages.
* Add protection against CSRF attacks.
* Improve WYSIWYG editors to support more browsers and offer more choices.
* Server configuration to limit maximum number of recipients per message
and maximum number of sent messages over a certain period of time.
* Improved templating of output code to ease local customization.
* Additional maintenance tasks to clean old messages from mailboxes.
* Sorting is now saved per mailbox rather than across all mailboxes.
* On IE and Firefox, warn users before closing popup compose window.
* Add support for symmetric PGP encryption.
* Preference added to dictate default cursor location in compose textarea.
* Preference added to only verify PGP & S/MIME signed messages on
user request.
* Forward messages as RFC 822 parts by default; provide more options for
forwarding messages; and be smarter about what part to use as body
text depending on current editor (text vs. html).
* Javascript code now uses the prototype js library, resulting in more
robust code and more available functionality - for example, non-modal
newmail popups.
* Add server configuration to limit the maximum size of MIME message
data that can be displayed inline.
* Use tidy extension (if available) to clean up display of HTML messages
and clean up HTML composed messages.
* Add RSS/Atom feed for mailboxes.
* More/improved display options for the folder lists and better handling
of non-private namespaces.
* Improvements/cleanups to the imap quota drivers.
* Add additional hooks after certain actions (i.e. post-login,
post-compose).
* Add support for sending e-mails with Internationalized Domain Names
(IDN).
* Fetch public PGP keys from keyserver if not available in address book.
* Add configuration for folders that may not be modified.
* and much, much, much more.
2008-05-26 14:55:02 +02:00
|
|
|
CONFLICTS+= imp-3.*{,nb*}
|
2005-01-16 22:46:05 +01:00
|
|
|
|
IMP version H3 (4.2) is a major upgrade in the 4.x release series, including
these enhancements:
* Message and mailbox caching on the server side, resulting in much
increased performance and much less web server and IMAP server load.
* Rewrite of much of IMP's core libraries, resulting in more efficient
memory usage, more efficient IMAP queries, smaller session sizes, and
increased performance.
* WCAG 1.0 Priority 2/Section 508 accessibility guidelines compliance.
* Javascript auto-complete contact list searching.
* Can now have multiple browser windows open without destroying the
open session.
* Logging of sent messages.
* Add protection against CSRF attacks.
* Improve WYSIWYG editors to support more browsers and offer more choices.
* Server configuration to limit maximum number of recipients per message
and maximum number of sent messages over a certain period of time.
* Improved templating of output code to ease local customization.
* Additional maintenance tasks to clean old messages from mailboxes.
* Sorting is now saved per mailbox rather than across all mailboxes.
* On IE and Firefox, warn users before closing popup compose window.
* Add support for symmetric PGP encryption.
* Preference added to dictate default cursor location in compose textarea.
* Preference added to only verify PGP & S/MIME signed messages on
user request.
* Forward messages as RFC 822 parts by default; provide more options for
forwarding messages; and be smarter about what part to use as body
text depending on current editor (text vs. html).
* Javascript code now uses the prototype js library, resulting in more
robust code and more available functionality - for example, non-modal
newmail popups.
* Add server configuration to limit the maximum size of MIME message
data that can be displayed inline.
* Use tidy extension (if available) to clean up display of HTML messages
and clean up HTML composed messages.
* Add RSS/Atom feed for mailboxes.
* More/improved display options for the folder lists and better handling
of non-private namespaces.
* Improvements/cleanups to the imap quota drivers.
* Add additional hooks after certain actions (i.e. post-login,
post-compose).
* Add support for sending e-mails with Internationalized Domain Names
(IDN).
* Fetch public PGP keys from keyserver if not available in address book.
* Add configuration for folders that may not be modified.
* and much, much, much more.
2008-05-26 14:55:02 +02:00
|
|
|
DEPENDS+= horde>=3.2:../../www/horde
|
2006-06-16 11:24:36 +02:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-imap>4.3.3:../../mail/php-imap
|
2006-06-02 20:27:54 +02:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail-[0-9]*:../../mail/pear-Mail
|
2010-11-14 22:17:46 +01:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-Mail_mimeDecode-[0-9]*:../../mail/pear-Mail_mimeDecode
|
2001-02-12 16:27:41 +01:00
|
|
|
|
2008-05-26 04:13:14 +02:00
|
|
|
USE_TOOLS+= pax
|
|
|
|
|
2008-03-04 18:57:17 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= destdir
|
|
|
|
|
2006-06-16 11:24:36 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2001-02-12 16:27:41 +01:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/imp
|
2001-04-30 08:11:09 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/imp
|
2001-02-12 16:27:41 +01:00
|
|
|
HORDEDIR= ${PREFIX}/share/horde
|
|
|
|
IMPDIR= ${HORDEDIR}/imp
|
2012-02-23 12:04:09 +01:00
|
|
|
IMPVER= 4.3.11
|
2008-07-31 21:48:20 +02:00
|
|
|
PAXDIRS= lib locale po scripts templates themes js
|
2007-07-04 22:54:31 +02:00
|
|
|
|
2009-04-14 00:25:25 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
2007-07-04 22:54:31 +02:00
|
|
|
PKG_USERS_VARS+= APACHE_USER
|
2007-11-15 23:18:42 +01:00
|
|
|
BUILD_DEFS+= APACHE_USER
|
2001-02-12 16:27:41 +01:00
|
|
|
|
2010-11-10 13:48:31 +01:00
|
|
|
MESSAGE_SUBST+= IMPDIR=${IMPDIR}
|
|
|
|
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
|
2001-02-12 16:27:41 +01:00
|
|
|
|
2001-11-25 19:59:45 +01:00
|
|
|
PKG_SYSCONFSUBDIR?= httpd
|
2001-04-30 08:11:09 +02:00
|
|
|
|
2006-06-16 11:24:36 +02:00
|
|
|
CONF_FILES= ${EGDIR}/imp.conf ${PKG_SYSCONFDIR}/imp.conf
|
|
|
|
CONF_FILES+= ${IMPDIR}/config/servers.php.dist \
|
|
|
|
${IMPDIR}/config/servers.php
|
|
|
|
CONF_FILES_PERMS+= ${IMPDIR}/config/conf.xml.dist \
|
|
|
|
${IMPDIR}/config/conf.xml \
|
|
|
|
${APACHE_USER} ${ROOT_GROUP} 0440
|
|
|
|
CONF_FILES_PERMS+= ${IMPDIR}/config/filter.txt.dist \
|
|
|
|
${IMPDIR}/config/filter.txt \
|
|
|
|
${APACHE_USER} ${ROOT_GROUP} 0440
|
2007-12-02 00:15:11 +01:00
|
|
|
CONF_FILES_PERMS+= ${IMPDIR}/config/header.php.dist \
|
|
|
|
${IMPDIR}/config/header.php \
|
2006-06-16 11:24:36 +02:00
|
|
|
${APACHE_USER} ${ROOT_GROUP} 0440
|
|
|
|
CONF_FILES_PERMS+= ${IMPDIR}/config/menu.php.dist \
|
|
|
|
${IMPDIR}/config/menu.php \
|
|
|
|
${APACHE_USER} ${ROOT_GROUP} 0440
|
|
|
|
CONF_FILES_PERMS+= ${IMPDIR}/config/mime_drivers.php.dist \
|
|
|
|
${IMPDIR}/config/mime_drivers.php \
|
|
|
|
${APACHE_USER} ${ROOT_GROUP} 0440
|
|
|
|
CONF_FILES_PERMS+= ${IMPDIR}/config/motd.php.dist \
|
|
|
|
${IMPDIR}/config/motd.php \
|
|
|
|
${APACHE_USER} ${ROOT_GROUP} 0440
|
|
|
|
CONF_FILES_PERMS+= ${IMPDIR}/config/prefs.php.dist \
|
|
|
|
${IMPDIR}/config/prefs.php \
|
|
|
|
${APACHE_USER} ${ROOT_GROUP} 0440
|
|
|
|
CONF_FILES_PERMS+= ${IMPDIR}/config/trailer.txt.dist \
|
|
|
|
${IMPDIR}/config/trailer.txt \
|
|
|
|
${APACHE_USER} ${ROOT_GROUP} 0440
|
|
|
|
|
|
|
|
SUBST_CLASSES+= files
|
|
|
|
SUBST_STAGE.files= post-build
|
|
|
|
SUBST_FILES.files= imp.conf.dist
|
|
|
|
SUBST_SED.files= -e "s|@IMPDIR@|${IMPDIR}|g"
|
|
|
|
SUBST_MESSAGE.files= Fixing configuration files.
|
|
|
|
|
IMP version H3 (4.2) is a major upgrade in the 4.x release series, including
these enhancements:
* Message and mailbox caching on the server side, resulting in much
increased performance and much less web server and IMAP server load.
* Rewrite of much of IMP's core libraries, resulting in more efficient
memory usage, more efficient IMAP queries, smaller session sizes, and
increased performance.
* WCAG 1.0 Priority 2/Section 508 accessibility guidelines compliance.
* Javascript auto-complete contact list searching.
* Can now have multiple browser windows open without destroying the
open session.
* Logging of sent messages.
* Add protection against CSRF attacks.
* Improve WYSIWYG editors to support more browsers and offer more choices.
* Server configuration to limit maximum number of recipients per message
and maximum number of sent messages over a certain period of time.
* Improved templating of output code to ease local customization.
* Additional maintenance tasks to clean old messages from mailboxes.
* Sorting is now saved per mailbox rather than across all mailboxes.
* On IE and Firefox, warn users before closing popup compose window.
* Add support for symmetric PGP encryption.
* Preference added to dictate default cursor location in compose textarea.
* Preference added to only verify PGP & S/MIME signed messages on
user request.
* Forward messages as RFC 822 parts by default; provide more options for
forwarding messages; and be smarter about what part to use as body
text depending on current editor (text vs. html).
* Javascript code now uses the prototype js library, resulting in more
robust code and more available functionality - for example, non-modal
newmail popups.
* Add server configuration to limit the maximum size of MIME message
data that can be displayed inline.
* Use tidy extension (if available) to clean up display of HTML messages
and clean up HTML composed messages.
* Add RSS/Atom feed for mailboxes.
* More/improved display options for the folder lists and better handling
of non-private namespaces.
* Improvements/cleanups to the imap quota drivers.
* Add additional hooks after certain actions (i.e. post-login,
post-compose).
* Add support for sending e-mails with Internationalized Domain Names
(IDN).
* Fetch public PGP keys from keyserver if not available in address book.
* Add configuration for folders that may not be modified.
* and much, much, much more.
2008-05-26 14:55:02 +02:00
|
|
|
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
|
|
|
|
|
2006-06-16 11:24:36 +02:00
|
|
|
.include "options.mk"
|
2001-07-13 09:09:17 +02:00
|
|
|
|
2001-02-12 16:27:41 +01:00
|
|
|
do-build:
|
2006-06-16 11:24:36 +02:00
|
|
|
${CP} ${FILESDIR}/imp.conf.dist ${WRKSRC}/imp.conf.dist
|
|
|
|
${CP} ${WRKSRC}/config/conf.xml ${WRKSRC}/config/conf.xml.dist
|
2002-02-01 23:44:27 +01:00
|
|
|
${FIND} ${WRKSRC} -name .htaccess -print | ${XARGS} ${RM} -f
|
2001-02-12 16:27:41 +01:00
|
|
|
|
|
|
|
do-install:
|
2008-03-04 18:57:17 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${IMPDIR}
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${IMPDIR}/config
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/imp.conf.dist ${DESTDIR}${EGDIR}/imp.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/COPYING ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/* ${DESTDIR}${DOCDIR}
|
2010-11-10 13:48:31 +01:00
|
|
|
.for d in ${PAXDIRS}
|
2008-03-04 18:57:17 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${IMPDIR}/${d}
|
2010-11-10 13:48:31 +01:00
|
|
|
.endfor
|
|
|
|
.for d in ${PAXDIRS}
|
2008-05-26 04:13:14 +02:00
|
|
|
cd ${WRKSRC}/${d} && pax -rwpam . ${DESTDIR}${IMPDIR}/${d}
|
2010-11-10 13:48:31 +01:00
|
|
|
.endfor
|
2008-03-04 18:57:17 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/config/*.dist ${DESTDIR}${IMPDIR}/config
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.php ${DESTDIR}${IMPDIR}
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${IMPDIR}
|
|
|
|
${FIND} ${DESTDIR}${IMPDIR} -type d -print | \
|
|
|
|
${XARGS} ${CHMOD} ${PKGDIRMODE}
|
|
|
|
${FIND} ${DESTDIR}${IMPDIR} -type f -print | \
|
|
|
|
${XARGS} ${CHMOD} ${SHAREMODE}
|
|
|
|
${CHOWN} ${APACHE_USER}:${ROOT_GROUP} ${DESTDIR}${IMPDIR}/config
|
|
|
|
${CHMOD} 0750 ${DESTDIR}${IMPDIR}/config
|
2001-02-12 16:27:41 +01:00
|
|
|
|
2006-06-02 20:27:54 +02:00
|
|
|
.include "../../lang/php/phpversion.mk"
|
2001-02-12 16:27:41 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|