aboutsummaryrefslogtreecommitdiff
path: root/www/hastymail2
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2011-06-22 16:01:24 +0000
committerChris Rees <crees@FreeBSD.org>2011-06-22 16:01:24 +0000
commita79b9603b43dbc9b64121627305084598332c8af (patch)
tree315035ec6bb503bfedb82de48cd00b9b89aedcab /www/hastymail2
parent234e7f4065def543bf601a757d87b663aabb9320 (diff)
downloadports-a79b9603b43dbc9b64121627305084598332c8af.tar.gz
ports-a79b9603b43dbc9b64121627305084598332c8af.zip
Notes
Diffstat (limited to 'www/hastymail2')
-rw-r--r--www/hastymail2/Makefile30
1 files changed, 26 insertions, 4 deletions
diff --git a/www/hastymail2/Makefile b/www/hastymail2/Makefile
index a323e6cb0c14..a7d52ee274f1 100644
--- a/www/hastymail2/Makefile
+++ b/www/hastymail2/Makefile
@@ -7,22 +7,22 @@
PORTNAME= hastymail2
PORTVERSION= 1.1
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= www mail
MASTER_SITES= SF/hastymail/Hastymail2%20Stable%20Releases/Hastymail2%201.01/
-DISTNAME= hastymail2_1_01
+DISTNAME= hastymail2_${WIKEDVERSION}
MAINTAINER= aldis@bsdroot.lv
COMMENT= Small, fast and secure yet powerful IMAP webmail
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
NO_BUILD= yes
SUB_FILES= pkg-message
-LICSENSE= GPLv2
+LICENSE= GPLv2
INSTALL_DIR?= www/${PORTNAME}
-PLIST= ${WRKDIR}/pkg-plist
+PLIST= ${WRKDIR}/pkg-plist
WANT_PHP_WEB= yes
USE_PHP= session imap pcre
@@ -32,8 +32,30 @@ WRKSRC= ${WRKDIR}/${PORTNAME}_${WIKEDVERSION}
NO_BUILD= yes
FIND_SKIP_OPTS= -not -name hastymail2.conf.example -not -name '*.orig'
+OPTIONS= PGSQL "Use PostgreSQL" off \
+ MYSQL "Use MySQL" off \
+ DB "Use older pear DB (instead of MDB2)" off
+
.include <bsd.port.pre.mk>
+.if defined(WITH_MYSQL)
+USE_MYSQL= yes
+.if !defined(WITH_DB)
+RUN_DEPENDS+= ${LOCALBASE}/share/pear/MDB2/Driver/mysql.php:${PORTSDIR}/databases/pear-MDB2_Driver_mysql
+.endif
+.endif
+
+.if defined(WITH_PGSQL)
+USE_PGSQL= yes
+.if !defined(WITH_DB)
+RUN_DEPENDS+= ${LOCALBASE}/share/pear/MDB2/Driver/pgsql.php:${PORTSDIR}/databases/pear-MDB2_Driver_pgsql
+.endif
+.endif
+
+.if defined(WITH_DB) && (defined(WITH_MYSQL) || defined(WITH_PGSQL))
+RUN_DEPENDS+= ${LOCALBASE}/share/pear/DB.php:${PORTSDIR}/databases/pear-DB
+.endif
+
post-patch:
@${SED} -I.orig -e "s#'/etc/hastymail2/hastymail2.rc'#'${PREFIX}/etc/hastymail2/hastymail2.rc'#" \
${WRKSRC}/index.php