ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/squirrelmail/Makefile
Revision: 8436
Committed: Thu Sep 24 02:51:20 2009 UTC (14 years, 6 months ago) by laffer1
File size: 3809 byte(s)
Log Message:
update to 1.4.20.r2

File Contents

# Content
1 # $MidnightBSD: mports/mail/squirrelmail/Makefile,v 1.11 2009/05/16 15:31:38 laffer1 Exp $
2
3 PORTNAME= squirrelmail
4 PORTVERSION= 1.4.20.r2
5 CATEGORIES= mail www
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
14 COMMENT= A webmail system which accesses mail over IMAP
15 LICENSE= gpl2
16
17 USE_PHP= session mhash gettext mbstring pcre openssl xml
18 WANT_PHP_WEB= yes
19
20 USE_BZIP2= yes
21 USE_GETTEXT= yes
22
23 .ifdef WITH_DATABASE
24 RUN_DEPENDS+= ${PREFIX}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
25 .endif
26
27 .ifdef WITH_LDAP
28 USE_PHP+= ldap
29 .endif
30
31 .ifndef WITHOUT_WWWDIR
32 SQUIRRELDIR?= ${PREFIX}/www/${PORTNAME}
33 .else
34 SQUIRRELDIR?= ${PREFIX}/${PORTNAME}
35 .endif
36
37 PLIST_SUB= PORTVERSION=${PORTVERSION} \
38 SQUIRRELDIR="${SQUIRRELDIR:S,^${PREFIX}/,,}"
39
40 SUB_FILES= pkg-message pkg-install pkg-deinstall
41 SUB_LIST= SQUIRRELDIR=${SQUIRRELDIR}
42
43 PORTDOCS= *
44
45 pre-everything::
46 @${ECHO_CMD} "SquirrelMail is installed into ${SQUIRRELDIR}"
47 @${ECHO_CMD} "To use the old location ${PREFIX}/${PORTNAME} define"
48 @${ECHO_CMD} "WITHOUT_WWWDIR when patching or installing"
49 @${ECHO_CMD}
50 @${ECHO_CMD} "Use WITH_LDAP to ensure PHP LDAP support is installed"
51 @${ECHO_CMD} "Use WITH_DATABASE to ensure PEAR framework for database support is installed"
52 @${ECHO_CMD} " (note that this does not install the database specific PEAR support, e.g. MySQL)"
53 @${ECHO_CMD}
54
55 post-patch:
56 .ifndef PATCH_DEBUG
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
67 @${REINPLACE_CMD} -e 's|/usr/bin/fortune|/usr/games/fortune|g' \
68 ${WRKSRC}/plugins/fortune/fortune_functions.php
69 @${RM} ${WRKSRC}/plugins/squirrelspell/sqspell_config.php.bak \
70 ${WRKSRC}/plugins/fortune/fortune_functions.php.bak
71
72 # Rearrange the documentation
73 do-build:
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`; \
77 do \
78 ${MKDIR} doc/`dirname $$f` ; \
79 ${MV} $$f doc/`dirname $$f` ; \
80 done; \
81 ${MV} doc/plugins/squirrelspell/doc/README doc/plugins/squirrelspell ; \
82 ${RM} -rf doc/plugins/squirrelspell/doc ; \
83 ${MV} plugins/squirrelspell/doc/* doc/plugins/squirrelspell ; \
84 ${RM} -f doc/plugins/squirrelspell/index.php ; \
85 ${RM} -rf plugins/squirrelspell/doc
86 @${ECHO} "left_refresh=300" >> ${WRKSRC}/data/default_pref
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}
102 .for DIR in class config data functions help images include locale plugins po src themes
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}
109 .endif
110
111 .include <bsd.port.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.12