2005-10-21 20:16:17 +02:00
|
|
|
# New ports collection makefile for: roundcube
|
|
|
|
# Date created: Oct 21 2005
|
|
|
|
# Whom: Florent Thoumie <flz@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= roundcube
|
2006-02-06 13:57:43 +01:00
|
|
|
PORTVERSION= 0.1.${SNAPSHOT}
|
2005-10-22 11:43:47 +02:00
|
|
|
CATEGORIES= mail
|
2006-09-26 01:56:04 +02:00
|
|
|
MASTER_SITES= http://www.farrokhi.net/roundcube/:unixified \
|
2006-05-22 17:06:13 +02:00
|
|
|
${MASTER_SITE_LOCAL:S/$/:freebsd/g}
|
|
|
|
MASTER_SITE_SUBDIR= flz/${PORTNAME}/:freebsd
|
2006-09-26 01:56:04 +02:00
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION:S/.${SNAPSHOT}//}-${SNAPSHOT}${EXTRACT_SUFX}:unixified
|
2005-10-21 20:16:17 +02:00
|
|
|
|
2006-11-08 10:28:33 +01:00
|
|
|
MAINTAINER= farrokhi@FreeBSD.org
|
2005-10-21 20:16:17 +02:00
|
|
|
COMMENT= Fully skinnable XHTML/CSS webmail written in PHP
|
|
|
|
|
2006-12-04 00:10:27 +01:00
|
|
|
SNAPSHOT= 20061202
|
2005-10-21 20:16:17 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}mail
|
|
|
|
NO_BUILD= yes
|
2006-03-28 14:32:57 +02:00
|
|
|
USE_BZIP2= yes
|
2005-10-21 20:16:17 +02:00
|
|
|
|
|
|
|
WWWOWN?= www
|
|
|
|
WWWGRP?= www
|
|
|
|
RCUBEDIR?= www/${PORTNAME}
|
|
|
|
|
|
|
|
RCUBEROOT= ${PREFIX}/${RCUBEDIR}
|
|
|
|
RCUBECOMP= SQL config index.php logs program skins temp
|
2006-11-08 14:42:04 +01:00
|
|
|
PORTDOCS= CHANGELOG INSTALL LICENSE README UPGRADING
|
2005-10-21 20:16:17 +02:00
|
|
|
|
|
|
|
PLIST_SUB= RCUBEDIR=${RCUBEDIR}
|
|
|
|
SCRIPTS_ENV= SHAREOWN=${SHAREOWN} SHAREGRP=${SHAREGRP} \
|
|
|
|
WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} \
|
|
|
|
RCUBEROOT=${RCUBEROOT}
|
|
|
|
|
2005-12-02 13:53:33 +01:00
|
|
|
WANT_PHP_WEB= yes
|
2006-03-28 14:32:57 +02:00
|
|
|
USE_PHP= pcre mbstring session
|
2006-02-06 13:57:43 +01:00
|
|
|
|
|
|
|
SUB_FILES= pkg-install
|
|
|
|
SUB_LIST= RCUBEROOT=${RCUBEROOT}
|
|
|
|
PKGDEINSTALL= ${PKGINSTALL}
|
|
|
|
|
|
|
|
LOCALBASE?= /usr/local
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/etc/php.conf)
|
|
|
|
.include "${LOCALBASE}/etc/php.conf"
|
|
|
|
.endif
|
2005-12-02 13:53:33 +01:00
|
|
|
|
|
|
|
OPTIONS= MYSQL "Use MySQL backend" on \
|
2005-12-07 23:36:31 +01:00
|
|
|
PGSQL "Use PostgreSQL backend" off
|
|
|
|
|
|
|
|
.if defined(PHP_VER) && ${PHP_VER} == 5
|
2006-02-09 12:29:11 +01:00
|
|
|
OPTIONS+= SQLITE "Use SQLite backend" off
|
2005-12-07 23:36:31 +01:00
|
|
|
.endif
|
2005-12-02 13:53:33 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2005-10-21 20:16:17 +02:00
|
|
|
|
2006-01-22 14:26:41 +01:00
|
|
|
.if defined(WITHOUT_MYSQL) && !defined(WITH_PGSQL) && !defined(WITH_SQLITE)
|
|
|
|
IGNORE= needs a database backend
|
|
|
|
.endif
|
|
|
|
|
2005-10-21 20:16:17 +02:00
|
|
|
.if !defined(WITHOUT_MYSQL)
|
|
|
|
USE_PHP+= mysql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PGSQL)
|
|
|
|
USE_PHP+= pgsql
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SQLITE)
|
|
|
|
USE_PHP+= sqlite
|
|
|
|
.endif
|
|
|
|
|
2006-01-22 14:26:41 +01:00
|
|
|
# Avoid INDEX breakage when WITHOUT_MYSQL is defined.
|
|
|
|
USE_PHP?= yes
|
|
|
|
|
2005-12-02 13:53:33 +01:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.php.mk"
|
|
|
|
|
2005-10-21 20:16:17 +02:00
|
|
|
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}
|
|
|
|
|
2005-12-02 13:53:33 +01:00
|
|
|
.include <bsd.port.post.mk>
|