pkgsrc/mail/squirrelmail/Makefile
taca 199dc279d1 Update squirrelmail package to 1.4.22.
Version 1.4.22 - 12 July 2011
-----------------------------
  - Backported default timezone fix from version 1.5.2; helps mitigate
    timezone errors in environments where a default has not been set
    by the administrator.
  - Fixed system lock-ups caused by a combination of certain rare,
    malformed message headers and buggy versions of PHP mbstring
    (#3053349).
  - Now allow multiple plugins to handle (add links for) a single
    attachment MIME type.
  - Now allow administrators to disable all plugins or enable just
    a select few plugins (overriding the active plugins in the normal
    configuration) by setting $temporary_plugins as an empty array
    (all disabled) or an array with one or more plugin directory names
    in config_local.php.
  - Backport fix for call_user_func_array not supporting NULL as empty
    array in PHP 5.3.3
  - Fixed sqauth_read_password() for plugins on the login_verified hook.
  - Added SMTP SASL PLAIN authentication option to configuration tool
    (core support for such is not new).
  - Gmail doens't support standard search commands; removed sort buttons.
  - Forced addition of a file suffix to attachments that lack a filename
    (helps forwarded messages avoid spam filters) (thanks to Petr
    Kletecka) (#3139004).
  - Fixed missing security token in listcommands plugin.
  - Added smtp_auth hook (thanks to Emmanuel Dreyfus).
  - Made speed enhancements to threaded message display (thanks to Siim
    Poder) (#3288123).
  - Allow administrators to configure subfolders of user INBOXes to be
    treated as special folders by adding $subfolders_of_inbox_are_special
    to config_local.php.
  - Fixed incorrect display of INBOX subfolders under some configurations.
    IMPORTANT: You may need to update your configuration so that
    $default_sub_of_inbox is TRUE if it was FALSE (e.g., Courier IMAP users)
    and after updating to this version, your special folders are no longer
    listed at the top of your folder list.  Also, if this change prevents
    users from logging in with an error such as "ERROR: Could not complete
    request.  Query: CREATE "Trash" Reason Given: Invalid mailbox name.",
    you will need to correct the user preference values for the problem
    folders.  You can do so with commands such as the following for file-
    based preferences (adjust the data directory location as needed):
        find /var/lib/squirrelmail/data/ -name *.pref -exec sed --in-place 's/trash_folder=Trash/trash_folder=INBOX.Trash/g' {} \;
        find /var/lib/squirrelmail/data/ -name *.pref -exec sed --in-place 's/trash_folder=Drafts/trash_folder=INBOX.Drafts/g' {} \;
        find /var/lib/squirrelmail/data/ -name *.pref -exec sed --in-place 's/trash_folder=Sent/trash_folder=INBOX.Sent/g' {} \;
    Or, for database-based preferences:
        UPDATE userprefs SET prefval = 'INBOX.Trash' WHERE prefkey = 'trash_folder' AND prefval = 'Trash';
        UPDATE userprefs SET prefval = 'INBOX.Drafts' WHERE prefkey = 'draft_folder' AND prefval = 'Drafts';
        UPDATE userprefs SET prefval = 'INBOX.Sent' WHERE prefkey = 'sent_folder' AND prefval = 'Sent';
    MAKE SURE to back up your user preferences first!
  - Optimized message highlighting rules; faster message list display
    and faster highlight rules management (thanks to C. Bensend for
    extensive effort helping diagnose)
  - New Mail plugin no longer removes normal organization title when
    putting the number of new messages in the browser title
  - Added clickjacking protection (thanks to Asbjorn Thorsen and Geir
    Hansen for bringing this to our attention). [CVE-2010-4554]
  - Fixed XSS holes in generic options inputs, XSS hole in the SquirrelSpell
    plugin, XSS hole in the Index Order page, and added anti-CSRF protection
    to the empty trash feature and the Index Order page (thanks to Nicholas
    Carlini for finding all these issues). [CVE-2010-4555]
  - Fixed XSS problem with unsanitized style tags in messages. [CVE-2011-2023]
2011-07-13 12:22:43 +00:00

99 lines
3.2 KiB
Makefile

# $NetBSD: Makefile,v 1.118 2011/07/13 12:22:43 taca Exp $
DISTNAME= squirrelmail-webmail-1.4.22
PKGNAME= ${DISTNAME:S/-webmail//}
CATEGORIES= mail www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=squirrelmail/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://www.squirrelmail.org/
COMMENT= PHP webmail package
LICENSE= gnu-gpl-v2
CONFLICTS= sq-attachment-handlers-[0-9]*
CONFLICTS+= sq-squirrelspell-[0-9]*
CONFLICTS+= ja-squirrelspell-[0-9]*
CONFLICTS+= ja-squirrelmail-[0-9]*
DEPENDS+= ${PHP_PKG_PREFIX}-gettext>=4.3.3:../../devel/php-gettext
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= # empty
NO_BUILD= yes
USE_TOOLS+= pax perl:run
REPLACE_PERL+= config/conf.pl
PKG_GROUPS_VARS+= APACHE_GROUP
PKG_USERS_VARS+= APACHE_USER
BUILD_DEFS+= VARBASE
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR?= httpd
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
EGDIR= share/examples/squirrelmail
SMDIR= share/squirrelmail
DATADIR= ${VARBASE}/spool/squirrelmail
ATTACHMENTS_DIR= ${DATADIR}/attachments
USER_PREFS_DIR= ${DATADIR}/data
MESSAGE_SUBST+= SMDIR=${PREFIX}/${SMDIR}
FILES_SUBST+= SMDIR=${PREFIX}/${SMDIR}
CONF_FILES= ${SMDIR}/config/config_default.php \
${SMDIR}/config/config.php
CONF_FILES+= ${SMDIR}/data/default_pref \
${DATADIR}/data/default_pref
CONF_FILES+= ${EGDIR}/squirrelmail.conf \
${PKG_SYSCONFDIR}/squirrelmail.conf
CONF_FILES+= ${EGDIR}/data/.htaccess ${DATADIR}/data/.htaccess
CONF_FILES+= ${EGDIR}/data/index.php ${DATADIR}/data/index.php
CONF_FILES+= ${EGDIR}/data/.htaccess ${USER_PREFS_DIR}/.htaccess
CONF_FILES+= ${EGDIR}/data/index.php ${USER_PREFS_DIR}/index.php
REQD_DIRS+= ${SMDIR} ${SMDIR}/config
OWN_DIRS+= ${DATADIR}
OWN_DIRS_PERMS+= ${ATTACHMENTS_DIR} ${REAL_ROOT_USER} ${APACHE_GROUP} 730
OWN_DIRS_PERMS+= ${USER_PREFS_DIR} ${APACHE_USER} ${APACHE_GROUP} 755
SUBST_CLASSES+= paths
SUBST_FILES.paths= ${WRKDIR}/squirrelmail.conf.dist
SUBST_FILES.paths+= config/config_default.php
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.paths+= -e 's,@ATTACHMENTS_DIR@,${ATTACHMENTS_DIR},g'
SUBST_SED.paths+= -e 's,@USER_PREFS_DIR@,${USER_PREFS_DIR},g'
SUBST_SED.paths+= -e 's,@SMDIR@,${PREFIX}/${SMDIR},g'
SUBST_STAGE.paths= pre-configure
DATA_FILES= .htaccess index.php
INSTALLATION_DIRS= ${PKGMANDIR}/man8 ${EGDIR}/data ${SMDIR}
post-extract:
${CP} ${FILESDIR}/squirrelmail.conf.dist \
${WRKDIR}/squirrelmail.conf.dist
${CP} -p ${WRKSRC}/contrib/conf.pl.8 ${WRKDIR}/squirrelmail-conf.pl.8
pre-install:
${FIND} ${WRKSRC} \( -name '*.orig*' -o -name '.cvsignore' \) \
-exec rm -f {} \;
${FIND} ${WRKSRC} -type d -exec chmod ${PKGDIRMODE} {} \;
${FIND} ${WRKSRC} -type f -exec chmod ${SHAREMODE} {} \;
${CHMOD} 0555 ${WRKSRC}/config/conf.pl
${RM} -f ${WRKSRC}/contrib/conf.pl.8
do-install:
${INSTALL_DATA} ${WRKDIR}/squirrelmail.conf.dist \
${DESTDIR}${PREFIX}/${EGDIR}/squirrelmail.conf
.for f in ${DATA_FILES}
${INSTALL_DATA} ${WRKSRC}/data/${f} ${DESTDIR}${PREFIX}/${EGDIR}/data
.endfor
cd ${WRKSRC}; pax -rw -pp . ${DESTDIR}${PREFIX}/${SMDIR}
${INSTALL_DATA} ${WRKDIR}/squirrelmail-conf.pl.8 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"