- Add OPTIONS for database dependencies

- Remove redundant and incorrect WRKSRC line
- Correct typo in LICENSE
- Use redist version in DISTNAME

PR:		ports/153379
Submitted by:	Aldis Berjoza <aldis@bsdroot.lv>
Approved by:	rene (mentor)
This commit is contained in:
Chris Rees 2011-06-22 16:01:24 +00:00
parent 234e7f4065
commit a79b9603b4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276075
2 changed files with 52 additions and 8 deletions

View file

@ -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

View file

@ -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