ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/squirrelmail/Makefile
Revision: 11895
Committed: Sat Sep 10 21:12:27 2011 UTC (12 years, 7 months ago) by laffer1
File size: 3873 byte(s)
Log Message:
1.4.22

File Contents

# Content
1 # $MidnightBSD: mports/mail/squirrelmail/Makefile,v 1.16 2011/06/05 05:00:04 laffer1 Exp $
2
3 PORTNAME= squirrelmail
4 PORTVERSION= 1.4.22
5 PORTREVISION= 0
6 CATEGORIES= mail www
7 MASTER_SITES= SF/${PORTNAME}/stable/${PORTVERSION:S/.r/-RC/}:squirrelmail \
8 SF/${PORTNAME}/locales/1.4.18-20090526:locales
9 DISTNAME= ${PORTNAME}-webmail-${PORTVERSION:S/.r/-RC/}
10 DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:squirrelmail \
11 all_locales-1.4.18-20090526${EXTRACT_SUFX}:locales
12 DIST_SUBDIR= ${PORTNAME}
13
14 MAINTAINER= ports@MidnightBSD.org
15 COMMENT= A webmail system which accesses mail over IMAP
16 LICENSE= gpl2
17
18 USE_PHP= session gettext mbstring pcre openssl xml
19 WANT_PHP_WEB= yes
20
21 USE_BZIP2= yes
22 USE_GETTEXT= yes
23
24 .ifdef WITH_DATABASE
25 RUN_DEPENDS+= ${PREFIX}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
26 .endif
27
28 .ifdef WITH_LDAP
29 USE_PHP+= ldap
30 .endif
31
32 .ifndef WITHOUT_WWWDIR
33 SQUIRRELDIR?= ${PREFIX}/www/${PORTNAME}
34 .else
35 SQUIRRELDIR?= ${PREFIX}/${PORTNAME}
36 .endif
37
38 PLIST_SUB= PORTVERSION=${PORTVERSION} \
39 SQUIRRELDIR="${SQUIRRELDIR:S,^${PREFIX}/,,}"
40
41 SUB_FILES= pkg-message pkg-install pkg-deinstall
42 SUB_LIST= SQUIRRELDIR=${SQUIRRELDIR}
43
44 PORTDOCS= *
45
46 pre-everything::
47 @${ECHO_CMD} "SquirrelMail is installed into ${SQUIRRELDIR}"
48 @${ECHO_CMD} "To use the old location ${PREFIX}/${PORTNAME} define"
49 @${ECHO_CMD} "WITHOUT_WWWDIR when patching or installing"
50 @${ECHO_CMD}
51 @${ECHO_CMD} "Use WITH_LDAP to ensure PHP LDAP support is installed"
52 @${ECHO_CMD} "Use WITH_DATABASE to ensure PEAR framework for database support is installed"
53 @${ECHO_CMD} " (note that this does not install the database specific PEAR support, e.g. MySQL)"
54 @${ECHO_CMD}
55
56 post-patch:
57 .ifndef PATCH_DEBUG
58 @${RM} -f \
59 ${WRKSRC}/class/deliver/Deliver.class.php.orig \
60 ${WRKSRC}/config/config_default.php.orig \
61 ${WRKSRC}/functions/global.php.orig \
62 ${WRKSRC}/functions/i18n.php.orig \
63 ${WRKSRC}/functions/imap_search.php.orig \
64 ${WRKSRC}/src/addrbook_search_html.php.orig \
65 ${WRKSRC}/src/compose.php.orig
66 .endif
67 @${REINPLACE_CMD} -e 's|ispell|${LOCALBASE}/bin/ispell|g' \
68 ${WRKSRC}/plugins/squirrelspell/sqspell_config.php
69 @${REINPLACE_CMD} -e 's|/usr/bin/fortune|/usr/games/fortune|g' \
70 ${WRKSRC}/plugins/fortune/fortune_functions.php
71 @${RM} ${WRKSRC}/plugins/squirrelspell/sqspell_config.php.bak \
72 ${WRKSRC}/plugins/fortune/fortune_functions.php.bak
73
74 # Rearrange the documentation
75 do-build:
76 @${MV} ${WRKSRC}/themes/README.themes ${WRKSRC}/doc/
77 @cd ${WRKSRC} ; for f in `find plugins -name "README*" -or \
78 -name INSTALL -or -name CHANGES -or -name HISTORY`; \
79 do \
80 ${MKDIR} doc/`dirname $$f` ; \
81 ${MV} $$f doc/`dirname $$f` ; \
82 done; \
83 ${MV} doc/plugins/squirrelspell/doc/README doc/plugins/squirrelspell ; \
84 ${RM} -rf doc/plugins/squirrelspell/doc ; \
85 ${MV} plugins/squirrelspell/doc/* doc/plugins/squirrelspell ; \
86 ${RM} -f doc/plugins/squirrelspell/index.php ; \
87 ${RM} -rf plugins/squirrelspell/doc
88 @${ECHO} "left_refresh=300" >> ${WRKSRC}/data/default_pref
89 @${CP} -r ${WRKSRC}/../locale ${WRKSRC}
90 @${CP} -r ${WRKSRC}/../images ${WRKSRC}
91 @${CP} -r ${WRKSRC}/../help ${WRKSRC}
92 @${MV} ${WRKSRC}/config/config_local.php ${WRKSRC}/config/config_local.php.sample
93
94 pre-install:
95 @${ECHO} "Your umask should be lax while installing this. Like, 022 or something."
96 @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
97
98 do-install:
99 ${MKDIR} ${PREFIX}/etc/periodic/daily
100 ${INSTALL_SCRIPT} ${FILESDIR}/111.clean-squirrelmail ${PREFIX}/etc/periodic/daily
101 ${MKDIR} ${SQUIRRELDIR}
102 @${CP} -pv ${WRKSRC}/index.php ${SQUIRRELDIR}
103 @${CP} -pv ${WRKSRC}/configure ${SQUIRRELDIR}
104 .for DIR in class config data functions help images include locale plugins po src themes
105 @${CP} -rpv ${WRKSRC}/${DIR} ${SQUIRRELDIR}
106 .endfor
107 ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/data
108 .if !defined(NOPORTDOCS)
109 ${MKDIR} ${DOCSDIR}
110 @${CP} -Rv ${WRKSRC}/doc/* ${DOCSDIR}
111 .endif
112
113 .include <bsd.port.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.17