1 |
< |
# $MidnightBSD: mports/mail/squirrelmail/Makefile,v 1.10 2009/03/11 18:25:50 laffer1 Exp $ |
1 |
> |
# $MidnightBSD$ |
2 |
|
|
3 |
|
PORTNAME= squirrelmail |
4 |
< |
PORTVERSION= 1.4.18 |
4 |
> |
PORTVERSION= 1.4.22 |
5 |
> |
PORTREVISION= 2 |
6 |
|
CATEGORIES= mail www |
7 |
< |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
8 |
< |
MASTER_SITE_SUBDIR= ${PORTNAME} |
8 |
< |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ |
9 |
< |
all_locales-1.4.13-20071220${EXTRACT_SUFX} |
7 |
> |
MASTER_SITES= SF/${PORTNAME}/stable/${PORTVERSION} |
8 |
> |
DISTNAME= ${PORTNAME}-webmail-${PORTVERSION} |
9 |
|
DIST_SUBDIR= ${PORTNAME} |
10 |
|
|
11 |
|
MAINTAINER= ports@MidnightBSD.org |
12 |
< |
COMMENT= A webmail system which accesses mail over IMAP |
12 |
> |
COMMENT= Webmail system which accesses mail over IMAP |
13 |
> |
|
14 |
|
LICENSE= gpl2 |
15 |
|
|
16 |
< |
USE_PHP= session mhash gettext mbstring pcre openssl xml |
16 |
> |
USE_PHP= session gettext mbstring pcre openssl xml |
17 |
|
WANT_PHP_WEB= yes |
18 |
|
|
19 |
< |
USE_BZIP2= yes |
20 |
< |
USE_GETTEXT= yes |
19 |
> |
USES= gettext tar:bzip2 cpe |
20 |
|
|
21 |
|
.ifdef WITH_DATABASE |
22 |
|
RUN_DEPENDS+= ${PREFIX}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB |
52 |
|
|
53 |
|
post-patch: |
54 |
|
.ifndef PATCH_DEBUG |
55 |
< |
@${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 |
55 |
> |
@${RM} -f \ |
56 |
> |
${WRKSRC}/class/deliver/Deliver.class.php.orig \ |
57 |
> |
${WRKSRC}/config/config_default.php.orig \ |
58 |
> |
${WRKSRC}/functions/global.php.orig \ |
59 |
> |
${WRKSRC}/functions/i18n.php.orig \ |
60 |
> |
${WRKSRC}/functions/imap_search.php.orig \ |
61 |
> |
${WRKSRC}/src/addrbook_search_html.php.orig \ |
62 |
> |
${WRKSRC}/src/compose.php.orig |
63 |
|
.endif |
64 |
|
@${REINPLACE_CMD} -e 's|ispell|${LOCALBASE}/bin/ispell|g' \ |
65 |
|
${WRKSRC}/plugins/squirrelspell/sqspell_config.php |
70 |
|
|
71 |
|
# Rearrange the documentation |
72 |
|
do-build: |
67 |
– |
.for file in AUTHORS ChangeLog COPYING INSTALL README UPGRADE |
68 |
– |
@${MV} ${WRKSRC}/doc/${file} ${WRKSRC}/doc/ |
69 |
– |
.endfor |
70 |
– |
@${MV} ${WRKSRC}/doc/ReleaseNotes ${WRKSRC}/doc/ReleaseNotes-${PORTVERSION}.txt |
73 |
|
@${MV} ${WRKSRC}/themes/README.themes ${WRKSRC}/doc/ |
74 |
< |
@cd ${WRKSRC} ; for f in `find plugins -name "README*" -or \ |
74 |
> |
@cd ${WRKSRC} ; for f in `${FIND} plugins -name "README*" -or \ |
75 |
|
-name INSTALL -or -name CHANGES -or -name HISTORY`; \ |
76 |
|
do \ |
77 |
|
${MKDIR} doc/`dirname $$f` ; \ |
82 |
|
${MV} plugins/squirrelspell/doc/* doc/plugins/squirrelspell ; \ |
83 |
|
${RM} -f doc/plugins/squirrelspell/index.php ; \ |
84 |
|
${RM} -rf plugins/squirrelspell/doc |
85 |
+ |
@${FIND} ${WRKSRC} -name '*.orig' -delete |
86 |
|
@${ECHO} "left_refresh=300" >> ${WRKSRC}/data/default_pref |
87 |
< |
@${CP} -r ${WRKSRC}/../locale ${WRKSRC} |
85 |
< |
@${CP} -r ${WRKSRC}/../images ${WRKSRC} |
86 |
< |
@${CP} -r ${WRKSRC}/../help ${WRKSRC} |
87 |
> |
@${MV} ${WRKSRC}/config/config_local.php ${WRKSRC}/config/config_local.php.sample |
88 |
|
|
89 |
+ |
pre-install: |
90 |
+ |
@${ECHO} "Your umask should be lax while installing this. Like, 022 or something." |
91 |
+ |
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
92 |
+ |
|
93 |
|
do-install: |
94 |
|
${MKDIR} ${PREFIX}/etc/periodic/daily |
95 |
|
${INSTALL_SCRIPT} ${FILESDIR}/111.clean-squirrelmail ${PREFIX}/etc/periodic/daily |
96 |
|
${MKDIR} ${SQUIRRELDIR} |
97 |
< |
@${CP} -pv ${WRKSRC}/index.php ${SQUIRRELDIR} |
98 |
< |
@${CP} -pv ${WRKSRC}/configure ${SQUIRRELDIR} |
97 |
> |
${INSTALL_DATA} ${WRKSRC}/index.php ${SQUIRRELDIR} |
98 |
> |
${INSTALL_SCRIPT} ${WRKSRC}/configure ${SQUIRRELDIR} |
99 |
|
.for DIR in class config data functions help images include locale plugins po src themes |
100 |
< |
@${CP} -rpv ${WRKSRC}/${DIR} ${SQUIRRELDIR} |
100 |
> |
cd ${WRKSRC} && ${FIND} ${DIR} | ${CPIO} -pdmu --quiet ${SQUIRRELDIR} |
101 |
|
.endfor |
102 |
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/data |
103 |
|
.if !defined(NOPORTDOCS) |
104 |
|
${MKDIR} ${DOCSDIR} |
105 |
< |
@${CP} -Rv ${WRKSRC}/doc/* ${DOCSDIR} |
105 |
> |
cd ${WRKSRC}/doc && ${FIND} . | ${CPIO} -pdmu --quiet ${DOCSDIR} |
106 |
|
.endif |
102 |
– |
|
107 |
|
|
108 |
|
.include <bsd.port.mk> |