ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/mail/squirrelmail/Makefile
Revision: 10890
Committed: Sat Apr 30 17:58:41 2011 UTC (12 years, 11 months ago) by laffer1
File size: 3806 byte(s)
Log Message:
mhash

File Contents

# User Rev Content
1 laffer1 10890 # $MidnightBSD: mports/mail/squirrelmail/Makefile,v 1.14 2011/01/08 04:42:42 laffer1 Exp $
2 laffer1 592
3     PORTNAME= squirrelmail
4 laffer1 10189 PORTVERSION= 1.4.21
5 laffer1 592 CATEGORIES= mail www
6 laffer1 8436 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 laffer1 592 DIST_SUBDIR= ${PORTNAME}
12    
13     MAINTAINER= ports@MidnightBSD.org
14     COMMENT= A webmail system which accesses mail over IMAP
15 laffer1 4794 LICENSE= gpl2
16 laffer1 592
17 laffer1 10890 USE_PHP= session mhash gettext mbstring pcre openssl xml
18 laffer1 592 WANT_PHP_WEB= yes
19    
20     USE_BZIP2= yes
21 laffer1 604 USE_GETTEXT= yes
22 laffer1 592
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 laffer1 8436 @${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 laffer1 592 .endif
65     @${REINPLACE_CMD} -e 's|ispell|${LOCALBASE}/bin/ispell|g' \
66     ${WRKSRC}/plugins/squirrelspell/sqspell_config.php
67 laffer1 6456 @${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 laffer1 592
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 laffer1 8436 @${MV} ${WRKSRC}/config/config_local.php ${WRKSRC}/config/config_local.php.sample
91 laffer1 592
92 laffer1 8436 pre-install:
93     @${ECHO} "Your umask should be lax while installing this. Like, 022 or something."
94     @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
95    
96 laffer1 592 do-install:
97     ${MKDIR} ${PREFIX}/etc/periodic/daily
98     ${INSTALL_SCRIPT} ${FILESDIR}/111.clean-squirrelmail ${PREFIX}/etc/periodic/daily
99     ${MKDIR} ${SQUIRRELDIR}
100 laffer1 8436 ${CP} -pv ${WRKSRC}/index.php ${SQUIRRELDIR}
101     ${CP} -pv ${WRKSRC}/configure ${SQUIRRELDIR}
102 laffer1 592 .for DIR in class config data functions help images include locale plugins po src themes
103 laffer1 8436 ${CP} -rpv ${WRKSRC}/${DIR} ${SQUIRRELDIR}
104 laffer1 592 .endfor
105     ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${SQUIRRELDIR}/data
106     .if !defined(NOPORTDOCS)
107     ${MKDIR} ${DOCSDIR}
108 laffer1 8436 ${CP} -Rv ${WRKSRC}/doc/* ${DOCSDIR}
109 laffer1 592 .endif
110    
111     .include <bsd.port.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.15