1 |
< |
# New ports collection makefile for: squirrelmail |
2 |
< |
# Date created: 27 December 2001 |
3 |
< |
# Whom: Simon Dick <simond@irrelevant.org> |
4 |
< |
# |
5 |
< |
# $FreeBSD: ports/mail/squirrelmail/Makefile,v 1.45 2006/08/11 16:28:19 clsung Exp $ |
6 |
< |
# $MidnightBSD$ |
7 |
< |
# |
1 |
> |
# $MidnightBSD: mports/mail/squirrelmail/Makefile,v 1.9 2008/10/04 16:56:28 laffer1 Exp $ |
2 |
|
|
3 |
|
PORTNAME= squirrelmail |
4 |
< |
PORTVERSION= 1.4.8 |
4 |
> |
PORTVERSION= 1.4.17 |
5 |
|
CATEGORIES= mail www |
6 |
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
7 |
|
MASTER_SITE_SUBDIR= ${PORTNAME} |
8 |
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ |
9 |
< |
all_locales-1.4.7-20060702${EXTRACT_SUFX} |
9 |
> |
all_locales-1.4.13-20071220${EXTRACT_SUFX} |
10 |
|
DIST_SUBDIR= ${PORTNAME} |
11 |
|
|
12 |
|
MAINTAINER= ports@MidnightBSD.org |
13 |
|
COMMENT= A webmail system which accesses mail over IMAP |
14 |
+ |
LICENSE= gpl2 |
15 |
|
|
16 |
|
USE_PHP= session mhash gettext mbstring pcre openssl xml |
17 |
|
WANT_PHP_WEB= yes |
18 |
|
|
19 |
|
USE_BZIP2= yes |
20 |
+ |
USE_GETTEXT= yes |
21 |
|
|
22 |
|
.ifdef WITH_DATABASE |
23 |
|
RUN_DEPENDS+= ${PREFIX}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB |
53 |
|
|
54 |
|
post-patch: |
55 |
|
.ifndef PATCH_DEBUG |
56 |
< |
@${RM} -f ${WRKSRC}/config/config_default.php.orig ${WRKSRC}/functions/global.php.orig |
56 |
> |
@${RM} -f ${WRKSRC}/config/config_default.php.orig ${WRKSRC}/functions/global.php.orig ${WRKSRC}/src/compose.php.orig ${WRKSRC}/src/addrbook_search_html.php.orig |
57 |
|
.endif |
58 |
|
@${REINPLACE_CMD} -e 's|ispell|${LOCALBASE}/bin/ispell|g' \ |
59 |
|
${WRKSRC}/plugins/squirrelspell/sqspell_config.php |
60 |
< |
@${RM} ${WRKSRC}/plugins/squirrelspell/sqspell_config.php.bak |
60 |
> |
@${REINPLACE_CMD} -e 's|/usr/bin/fortune|/usr/games/fortune|g' \ |
61 |
> |
${WRKSRC}/plugins/fortune/fortune_functions.php |
62 |
> |
@${RM} ${WRKSRC}/plugins/squirrelspell/sqspell_config.php.bak \ |
63 |
> |
${WRKSRC}/plugins/fortune/fortune_functions.php.bak |
64 |
|
|
65 |
|
# Rearrange the documentation |
66 |
|
do-build: |
85 |
|
@${CP} -r ${WRKSRC}/../images ${WRKSRC} |
86 |
|
@${CP} -r ${WRKSRC}/../help ${WRKSRC} |
87 |
|
|
89 |
– |
pre-install: |
90 |
– |
@${ECHO} "Your umask should be lax while installing this. Like, 022 or something." |
91 |
– |
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
92 |
– |
|
88 |
|
do-install: |
89 |
|
${MKDIR} ${PREFIX}/etc/periodic/daily |
90 |
|
${INSTALL_SCRIPT} ${FILESDIR}/111.clean-squirrelmail ${PREFIX}/etc/periodic/daily |
100 |
|
@${CP} -Rv ${WRKSRC}/doc/* ${DOCSDIR} |
101 |
|
.endif |
102 |
|
|
108 |
– |
post-install: |
109 |
– |
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
110 |
– |
@${CAT} ${PKGMESSAGE} |
103 |
|
|
104 |
|
.include <bsd.port.mk> |