blob: 299ad4861fff392c1230cfa1f458e4849d3044a0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
# New ports collection makefile for: roundcube
# Date created: Oct 21 2005
# Whom: Florent Thoumie <flz@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= roundcube
PORTVERSION= 0.1.${SNAPSHOT}
CATEGORIES= mail
MASTER_SITES= http://www.farrokhi.net/roundcube/:unixified \
${MASTER_SITE_LOCAL:S/$/:freebsd/g}
MASTER_SITE_SUBDIR= ale/:freebsd
DISTFILES= ${PORTNAME}-${PORTVERSION:S/.${SNAPSHOT}//}-${SNAPSHOT}${EXTRACT_SUFX}:unixified
MAINTAINER= farrokhi@FreeBSD.org
COMMENT= Fully skinnable XHTML/CSS webmail written in PHP
SNAPSHOT= 20061207
WRKSRC= ${WRKDIR}/${PORTNAME}mail
NO_BUILD= yes
USE_BZIP2= yes
WWWOWN?= www
WWWGRP?= www
RCUBEDIR?= www/${PORTNAME}
RCUBEROOT= ${PREFIX}/${RCUBEDIR}
RCUBECOMP= SQL config index.php logs program skins temp
PORTDOCS= CHANGELOG INSTALL LICENSE README UPGRADING
PLIST_SUB= RCUBEDIR=${RCUBEDIR}
SCRIPTS_ENV= SHAREOWN=${SHAREOWN} SHAREGRP=${SHAREGRP} \
WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} \
RCUBEROOT=${RCUBEROOT}
WANT_PHP_WEB= yes
USE_PHP= pcre mbstring session
SUB_FILES= pkg-install
SUB_LIST= RCUBEROOT=${RCUBEROOT}
PKGDEINSTALL= ${PKGINSTALL}
.if defined(WITH_REPLACE_MAIL_URL) && !empty(WITH_REPLACE_MAIL_URL)
MAIL= ${WITH_REPLACE_MAIL_URL}
REINPLACE_ARGS= -i ""
.else
MAIL= mail
.endif
PLIST_SUB+= MAIL=${MAIL}
LOCALBASE?= /usr/local
.if exists(${LOCALBASE}/etc/php.conf)
.include "${LOCALBASE}/etc/php.conf"
.endif
OPTIONS= MYSQL "Use MySQL backend" on \
PGSQL "Use PostgreSQL backend" off
.if defined(PHP_VER) && ${PHP_VER} == 5
OPTIONS+= SQLITE "Use SQLite backend" off
.endif
.include <bsd.port.pre.mk>
.if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE)
IGNORE= needs a database backend
.endif
.if !defined(WITHOUT_MYSQL)
USE_PHP+= mysql
.endif
.if defined(WITH_PGSQL)
USE_PHP+= pgsql
.endif
.if defined(WITH_SQLITE)
USE_PHP+= sqlite
.endif
# Avoid INDEX breakage when WITHOUT_MYSQL is defined.
USE_PHP?= yes
.include "${PORTSDIR}/Mk/bsd.php.mk"
.if defined(WITH_REPLACE_MAIL_URL)
post-patch:
@${REINPLACE_CMD} "s/'mail'/'${MAIL}'/g" ${WRKSRC}/index.php \
${WRKSRC}/program/include/main.inc \
${WRKSRC}/program/js/app.js
@${REINPLACE_CMD} "s/_task=mail/_task=${MAIL}/g" \
${WRKSRC}/program/steps/mail/rss.inc
@${REINPLACE_CMD} "s/command=\"mail\"/command=\"${MAIL}\"/g" \
${WRKSRC}/skins/default/includes/header.html \
${WRKSRC}/skins/default/includes/taskbar.html
@${REINPLACE_CMD} "s/mail.gif/${MAIL}.gif/g" \
${WRKSRC}/skins/default/common.css
@${REINPLACE_CMD} "s/mail.css/${MAIL}.css/g" \
${WRKSRC}/skins/default/templates/*.html
@${MV} ${WRKSRC}/skins/default/images/buttons/mail.gif \
${WRKSRC}/skins/default/images/buttons/${MAIL}.gif
@${MV} ${WRKSRC}/skins/default/images/buttons/mail.png \
${WRKSRC}/skins/default/images/buttons/${MAIL}.png
@${MV} ${WRKSRC}/skins/default/mail.css \
${WRKSRC}/skins/default/${MAIL}.css
@${MV} ${WRKSRC}/skins/default/templates/mail.html \
${WRKSRC}/skins/default/templates/${MAIL}.html
.endif
do-install:
${MKDIR} ${RCUBEROOT}
.for i in ${RCUBECOMP}
${CP} -Rp ${WRKSRC}/${i} ${RCUBEROOT}/
.endfor
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/UPGRADING ${DOCSDIR}/
.if !defined(NOPORTDOCS)
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
.endfor
.endif
post-install:
@${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|