mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
8d6597e0bb
With hat: portmgr Sponsored by: Absolight
72 lines
1.8 KiB
Makefile
72 lines
1.8 KiB
Makefile
# Created by: John Oxley <john@yoafrica.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= vexim
|
|
DISTVERSION= 2.2.2_rc1
|
|
CATEGORIES= mail www
|
|
MASTER_SITES= LOCAL/feld
|
|
DISTNAME= ${PORTNAME}_${DISTVERSION}
|
|
|
|
MAINTAINER= feld@FreeBSD.org
|
|
COMMENT= Web interface for managing virtual domains for exim
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/pear/DB.php:databases/pear-DB
|
|
|
|
VEXIMDIR= www/${PORTNAME}
|
|
WRKSRC= ${WRKDIR}/vexim-release
|
|
|
|
SUB_FILES= pkg-message
|
|
NO_BUILD= yes
|
|
USE_PHP= gettext session posix
|
|
USES= gettext
|
|
IGNORE_WITH_PHP= 70
|
|
|
|
OPTIONS_MULTI= DB
|
|
OPTIONS_MULTI_DB= MYSQL PGSQL
|
|
OPTIONS_DEFINE= DOCS
|
|
OPTIONS_DEFAULT= MYSQL
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
USE_MYSQL= yes
|
|
USE_PHP+= mysql
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
|
USES+= pgsql
|
|
USE_PHP+= pgsql
|
|
.endif
|
|
|
|
post-patch:
|
|
${RM} -r ${WRKSRC}/.hg ${WRKSRC}/.hgtags ${WRKSRC}/vexim/adminuserchange.phps
|
|
${MV} ${WRKSRC}/vexim/config/variables.php ${WRKSRC}/vexim/config/variables.php.dist
|
|
|
|
do-install:
|
|
@${ECHO} "Installing in ${VEXIMDIR}"
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${VEXIMDIR}
|
|
cd ${WRKSRC}/vexim && ${FIND} . \
|
|
-type d -exec ${MKDIR} ${STAGEDIR}${PREFIX}/${VEXIMDIR}/{} \; \
|
|
-o -type f \
|
|
-exec ${INSTALL_DATA} {} ${STAGEDIR}${PREFIX}/${VEXIMDIR}/{} \;
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
cd ${WRKSRC}/setup && ${FIND} . \
|
|
-type d -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \; \
|
|
-o -type f \
|
|
-exec ${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{} \;
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && ${FIND} docs \
|
|
-type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \; \
|
|
-o -type f \
|
|
-exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;
|
|
.for i in INSTALL README TODO
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|