ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/squirrelmail/Makefile
Revision: 592
Committed: Mon Dec 4 05:13:55 2006 UTC (17 years, 4 months ago) by laffer1
File size: 3641 byte(s)
Log Message:
Add squirrelmail

File Contents

# Content
1 # New ports collection makefile for: squirrelmail
2 # Date created: 27 December 2001
3 # Whom: Simon Dick <simond@irrelevant.org>
4 #
5 # $FreeBSD: ports/mail/squirrelmail/Makefile,v 1.45 2006/08/11 16:28:19 clsung Exp $
6 # $MidnightBSD$
7 #
8
9 PORTNAME= squirrelmail
10 PORTVERSION= 1.4.8
11 CATEGORIES= mail www
12 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
13 MASTER_SITE_SUBDIR= ${PORTNAME}
14 DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
15 all_locales-1.4.7-20060702${EXTRACT_SUFX}
16 DIST_SUBDIR= ${PORTNAME}
17
18 MAINTAINER= ports@MidnightBSD.org
19 COMMENT= A webmail system which accesses mail over IMAP
20
21 USE_PHP= session mhash gettext mbstring pcre openssl xml
22 WANT_PHP_WEB= yes
23
24 USE_BZIP2= yes
25
26 .ifdef WITH_DATABASE
27 RUN_DEPENDS+= ${PREFIX}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
28 .endif
29
30 .ifdef WITH_LDAP
31 USE_PHP+= ldap
32 .endif
33
34 .ifndef WITHOUT_WWWDIR
35 SQUIRRELDIR?= ${PREFIX}/www/${PORTNAME}
36 .else
37 SQUIRRELDIR?= ${PREFIX}/${PORTNAME}
38 .endif
39
40 PLIST_SUB= PORTVERSION=${PORTVERSION} \
41 SQUIRRELDIR="${SQUIRRELDIR:S,^${PREFIX}/,,}"
42
43 SUB_FILES= pkg-message pkg-install pkg-deinstall
44 SUB_LIST= SQUIRRELDIR=${SQUIRRELDIR}
45
46 PORTDOCS= *
47
48 pre-everything::
49 @${ECHO_CMD} "SquirrelMail is installed into ${SQUIRRELDIR}"
50 @${ECHO_CMD} "To use the old location ${PREFIX}/${PORTNAME} define"
51 @${ECHO_CMD} "WITHOUT_WWWDIR when patching or installing"
52 @${ECHO_CMD}
53 @${ECHO_CMD} "Use WITH_LDAP to ensure PHP LDAP support is installed"
54 @${ECHO_CMD} "Use WITH_DATABASE to ensure PEAR framework for database support is installed"
55 @${ECHO_CMD} " (note that this does not install the database specific PEAR support, e.g. MySQL)"
56 @${ECHO_CMD}
57
58 post-patch:
59 .ifndef PATCH_DEBUG
60 @${RM} -f ${WRKSRC}/config/config_default.php.orig ${WRKSRC}/functions/global.php.orig
61 .endif
62 @${REINPLACE_CMD} -e 's|ispell|${LOCALBASE}/bin/ispell|g' \
63 ${WRKSRC}/plugins/squirrelspell/sqspell_config.php
64 @${RM} ${WRKSRC}/plugins/squirrelspell/sqspell_config.php.bak
65
66 # Rearrange the documentation
67 do-build:
68 .for file in AUTHORS ChangeLog COPYING INSTALL README UPGRADE
69 @${MV} ${WRKSRC}/${file} ${WRKSRC}/doc/
70 .endfor
71 @${MV} ${WRKSRC}/ReleaseNotes ${WRKSRC}/doc/ReleaseNotes-${PORTVERSION}.txt
72 @${MV} ${WRKSRC}/themes/README.themes ${WRKSRC}/doc/
73 @cd ${WRKSRC} ; for f in `find plugins -name "README*" -or \
74 -name INSTALL -or -name CHANGES -or -name HISTORY`; \
75 do \
76 ${MKDIR} doc/`dirname $$f` ; \
77 ${MV} $$f doc/`dirname $$f` ; \
78 done; \
79 ${MV} doc/plugins/squirrelspell/doc/README doc/plugins/squirrelspell ; \
80 ${RM} -rf doc/plugins/squirrelspell/doc ; \
81 ${MV} plugins/squirrelspell/doc/* doc/plugins/squirrelspell ; \
82 ${RM} -f doc/plugins/squirrelspell/index.php ; \
83 ${RM} -rf plugins/squirrelspell/doc
84 @${ECHO} "left_refresh=300" >> ${WRKSRC}/data/default_pref
85 @${CP} -r ${WRKSRC}/../locale ${WRKSRC}
86 @${CP} -r ${WRKSRC}/../images ${WRKSRC}
87 @${CP} -r ${WRKSRC}/../help ${WRKSRC}
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}
99 .for DIR in class config data functions help images include locale plugins po src themes
100 @${CP} -rpv ${WRKSRC}/${DIR} ${SQUIRRELDIR}
101 .endfor
102 ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/data
103 .if !defined(NOPORTDOCS)
104 ${MKDIR} ${DOCSDIR}
105 @${CP} -Rv ${WRKSRC}/doc/* ${DOCSDIR}
106 .endif
107
108 post-install:
109 @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
110 @${CAT} ${PKGMESSAGE}
111
112 .include <bsd.port.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.1