1 |
< |
# $MidnightBSD: mports/mail/squirrelmail/Makefile,v 1.10 2009/03/11 18:25:50 laffer1 Exp $ |
1 |
> |
# $MidnightBSD: mports/mail/squirrelmail/Makefile,v 1.12 2009/09/24 02:50:02 laffer1 Exp $ |
2 |
|
|
3 |
|
PORTNAME= squirrelmail |
4 |
< |
PORTVERSION= 1.4.18 |
4 |
> |
PORTVERSION= 1.4.21 |
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.13-20071220${EXTRACT_SUFX} |
6 |
> |
MASTER_SITES= SF/${PORTNAME}/stable/${PORTVERSION:S/.r/-RC/}:squirrelmail \ |
7 |
> |
SF/${PORTNAME}/locales/1.4.18-20090526:locales |
8 |
> |
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/-RC/} |
9 |
> |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:squirrelmail \ |
10 |
> |
all_locales-1.4.18-20090526${EXTRACT_SUFX}:locales |
11 |
|
DIST_SUBDIR= ${PORTNAME} |
12 |
|
|
13 |
|
MAINTAINER= ports@MidnightBSD.org |
54 |
|
|
55 |
|
post-patch: |
56 |
|
.ifndef PATCH_DEBUG |
57 |
< |
@${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 |
> |
@${RM} -f \ |
58 |
> |
${WRKSRC}/class/deliver/Deliver.class.php.orig \ |
59 |
> |
${WRKSRC}/config/config_default.php.orig \ |
60 |
> |
${WRKSRC}/functions/global.php.orig \ |
61 |
> |
${WRKSRC}/functions/i18n.php.orig \ |
62 |
> |
${WRKSRC}/src/addrbook_search_html.php.orig \ |
63 |
> |
${WRKSRC}/src/compose.php.orig |
64 |
|
.endif |
65 |
|
@${REINPLACE_CMD} -e 's|ispell|${LOCALBASE}/bin/ispell|g' \ |
66 |
|
${WRKSRC}/plugins/squirrelspell/sqspell_config.php |
71 |
|
|
72 |
|
# Rearrange the documentation |
73 |
|
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 |
74 |
|
@${MV} ${WRKSRC}/themes/README.themes ${WRKSRC}/doc/ |
75 |
|
@cd ${WRKSRC} ; for f in `find plugins -name "README*" -or \ |
76 |
|
-name INSTALL -or -name CHANGES -or -name HISTORY`; \ |
87 |
|
@${CP} -r ${WRKSRC}/../locale ${WRKSRC} |
88 |
|
@${CP} -r ${WRKSRC}/../images ${WRKSRC} |
89 |
|
@${CP} -r ${WRKSRC}/../help ${WRKSRC} |
90 |
+ |
@${MV} ${WRKSRC}/config/config_local.php ${WRKSRC}/config/config_local.php.sample |
91 |
|
|
92 |
+ |
pre-install: |
93 |
+ |
@${ECHO} "Your umask should be lax while installing this. Like, 022 or something." |
94 |
+ |
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL |
95 |
+ |
|
96 |
|
do-install: |
97 |
|
${MKDIR} ${PREFIX}/etc/periodic/daily |
98 |
|
${INSTALL_SCRIPT} ${FILESDIR}/111.clean-squirrelmail ${PREFIX}/etc/periodic/daily |
99 |
|
${MKDIR} ${SQUIRRELDIR} |
100 |
< |
@${CP} -pv ${WRKSRC}/index.php ${SQUIRRELDIR} |
101 |
< |
@${CP} -pv ${WRKSRC}/configure ${SQUIRRELDIR} |
100 |
> |
${CP} -pv ${WRKSRC}/index.php ${SQUIRRELDIR} |
101 |
> |
${CP} -pv ${WRKSRC}/configure ${SQUIRRELDIR} |
102 |
|
.for DIR in class config data functions help images include locale plugins po src themes |
103 |
< |
@${CP} -rpv ${WRKSRC}/${DIR} ${SQUIRRELDIR} |
103 |
> |
${CP} -rpv ${WRKSRC}/${DIR} ${SQUIRRELDIR} |
104 |
|
.endfor |
105 |
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/data |
106 |
|
.if !defined(NOPORTDOCS) |
107 |
|
${MKDIR} ${DOCSDIR} |
108 |
< |
@${CP} -Rv ${WRKSRC}/doc/* ${DOCSDIR} |
108 |
> |
${CP} -Rv ${WRKSRC}/doc/* ${DOCSDIR} |
109 |
|
.endif |
102 |
– |
|
110 |
|
|
111 |
|
.include <bsd.port.mk> |