ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/squirrelmail/Makefile
Revision: 11360
Committed: Sun Jun 5 05:00:04 2011 UTC (12 years, 10 months ago) by laffer1
File size: 3820 byte(s)
Log Message:
hide some output and get rid of mash depends which is for ancient php

File Contents

# Content
1 # $MidnightBSD: mports/mail/squirrelmail/Makefile,v 1.15 2011/04/30 17:58:41 laffer1 Exp $
2
3 PORTNAME= squirrelmail
4 PORTVERSION= 1.4.21
5 PORTREVISION= 1
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}-${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}/src/addrbook_search_html.php.orig \
64 ${WRKSRC}/src/compose.php.orig
65 .endif
66 @${REINPLACE_CMD} -e 's|ispell|${LOCALBASE}/bin/ispell|g' \
67 ${WRKSRC}/plugins/squirrelspell/sqspell_config.php
68 @${REINPLACE_CMD} -e 's|/usr/bin/fortune|/usr/games/fortune|g' \
69 ${WRKSRC}/plugins/fortune/fortune_functions.php
70 @${RM} ${WRKSRC}/plugins/squirrelspell/sqspell_config.php.bak \
71 ${WRKSRC}/plugins/fortune/fortune_functions.php.bak
72
73 # Rearrange the documentation
74 do-build:
75 @${MV} ${WRKSRC}/themes/README.themes ${WRKSRC}/doc/
76 @cd ${WRKSRC} ; for f in `find plugins -name "README*" -or \
77 -name INSTALL -or -name CHANGES -or -name HISTORY`; \
78 do \
79 ${MKDIR} doc/`dirname $$f` ; \
80 ${MV} $$f doc/`dirname $$f` ; \
81 done; \
82 ${MV} doc/plugins/squirrelspell/doc/README doc/plugins/squirrelspell ; \
83 ${RM} -rf doc/plugins/squirrelspell/doc ; \
84 ${MV} plugins/squirrelspell/doc/* doc/plugins/squirrelspell ; \
85 ${RM} -f doc/plugins/squirrelspell/index.php ; \
86 ${RM} -rf plugins/squirrelspell/doc
87 @${ECHO} "left_refresh=300" >> ${WRKSRC}/data/default_pref
88 @${CP} -r ${WRKSRC}/../locale ${WRKSRC}
89 @${CP} -r ${WRKSRC}/../images ${WRKSRC}
90 @${CP} -r ${WRKSRC}/../help ${WRKSRC}
91 @${MV} ${WRKSRC}/config/config_local.php ${WRKSRC}/config/config_local.php.sample
92
93 pre-install:
94 @${ECHO} "Your umask should be lax while installing this. Like, 022 or something."
95 @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
96
97 do-install:
98 ${MKDIR} ${PREFIX}/etc/periodic/daily
99 ${INSTALL_SCRIPT} ${FILESDIR}/111.clean-squirrelmail ${PREFIX}/etc/periodic/daily
100 ${MKDIR} ${SQUIRRELDIR}
101 @${CP} -pv ${WRKSRC}/index.php ${SQUIRRELDIR}
102 @${CP} -pv ${WRKSRC}/configure ${SQUIRRELDIR}
103 .for DIR in class config data functions help images include locale plugins po src themes
104 @${CP} -rpv ${WRKSRC}/${DIR} ${SQUIRRELDIR}
105 .endfor
106 ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/data
107 .if !defined(NOPORTDOCS)
108 ${MKDIR} ${DOCSDIR}
109 @${CP} -Rv ${WRKSRC}/doc/* ${DOCSDIR}
110 .endif
111
112 .include <bsd.port.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.16