pkgsrc/mail/squirrelmail/Makefile
martti c6981c3ba6 Updated squirrelmail to 1.2.7
* fix for 'compose as new' link. bug #554886
* fix charset format in the admin plugin. bug #550725
* fix for errant '.' in default_folder_prefix. bug #551310
* fix for folder names with '?' and '*'. bug # 559257, #552180
* added the ability to search without the charset argument. #552288
* Made /noselect node display optional. bug #554988, patch #452178
* Improved support for macosx IMAP server thanks Brian Haun
* Added macosx friendly search, thanks Brian Haun bug #553038
* Fixed word wrap problems when sending mail. bug #552961, #556143
* Added possibility to use multiple compose windows without loss
  of attachements.
* Fixed forward message/rfc822 attachments from a search
* Fix SpamCop plugin.
* Fixed send MDN link.
* Fixed dealing with \r\n and \n in smtp.php.
* Fixed to, cc, bcc arrays in message->header
* Speed optimizements in generating message-lists.
* Fixed loss of attachment with html addressbook.
* Fixed saving drafts with attachments
2002-07-16 13:14:49 +00:00

72 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.24 2002/07/16 13:14:49 martti Exp $
DISTNAME= squirrelmail-1.2.7
CATEGORIES= mail www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=squirrelmail/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= martti@netbsd.org
HOMEPAGE= http://www.squirrelmail.org/
COMMENT= PHP4 webmail package
CONFLICTS= sq-attachment-handlers-[0-9]*
CONFLICTS+= sq-squirrelspell-[0-9]*
DEPENDS+= php>=4.0.6:../../www/php4
DEPENDS+= php-gettext>=4.0.6:../../devel/php4-gettext
DEPENDS+= php-session>=4.0.6:../../devel/php4-session
DEPENDS+= php-pcre>=4.0.6:../../devel/php4-pcre
REPLACE_PERL= config/conf.pl config/ri_once.pl
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFSUBDIR?= httpd
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
EGDIR= ${PREFIX}/share/examples/squirrelmail
SMDIR= ${PREFIX}/share/squirrelmail
DATADIR= /var/spool/squirrelmail
ATTACHMENTS_DIR= ${DATADIR}/attachments
USER_PREFS_DIR= ${DATADIR}/data
MESSAGE_SUBST+= SMDIR=${SMDIR}
FILES_SUBST+= SMDIR=${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
OWN_DIRS= ${DATADIR}
OWN_DIRS+= ${SMDIR} ${SMDIR}/config
OWN_DIRS_PERMS= ${ATTACHMENTS_DIR} ${ROOT_USER} nobody 730
OWN_DIRS_PERMS+= ${USER_PREFS_DIR} nobody nobody 755
post-patch:
cd ${WRKSRC}; \
for file in config/config_default.php; do \
${SED} -e "s|@ATTACHMENTS_DIR@|${ATTACHMENTS_DIR}|g" \
-e "s|@USER_PREFS_DIR@|${USER_PREFS_DIR}|g" \
$${file} > $${file}.fixed; \
${MV} -f $${file}.fixed $${file}; \
done; \
${FIND} . \( -name "*.orig" -o -name ".cvsignore" \) -print \
| ${XARGS} ${RM} -f
do-build: # nothing
pre-install:
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/squirrelmail.conf.dist \
> ${WRKDIR}/squirrelmail.conf.dist
do-install:
${INSTALL_DATA_DIR} ${EGDIR} ${SMDIR}
cd ${WRKDIR}; ${INSTALL_DATA} squirrelmail.conf.dist \
${EGDIR}/squirrelmail.conf
${CP} -R ${WRKSRC}/* ${SMDIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${SMDIR}
${CHMOD} -R a-w ${SMDIR}
.include "../../lang/perl5/buildlink.mk"
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"