freebsd-ports/mail/vexim/Makefile
Dima Panov 4f15475df5 - Update VExim to 2.3 release
- Use GitHub source
- Add extrapatch to imply userslist sort order behavior by locapart instead of realname
- Pet portlint
- Take maintainership

PR:		217518
Submitted by:	fluffy (myself)
Approved by:	feld (maintainer)
2017-03-07 08:04:16 +00:00

74 lines
1.6 KiB
Makefile

# Created by: John Oxley <john@yoafrica.com>
# $FreeBSD$
PORTNAME= vexim
DISTVERSIONPREFIX= v
DISTVERSION= 2.3
CATEGORIES= mail www
MAINTAINER= fluffy@FreeBSD.org
COMMENT= Web interface for managing virtual domains for exim
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= ${PORTNAME}
GH_PROJECT= ${PORTNAME}2
SUB_FILES= pkg-message
NO_ARCH= yes
NO_BUILD= yes
USE_PHP= gettext session posix
USES= gettext php
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL
OPTIONS_DEFINE= DOCS ORDER
OPTIONS_DEFAULT= MYSQL
ORDER_DESC= Sort userlist by localpart istead of realname
ORDER_EXTRA_PATCHES= ${FILESDIR}/extrapatch-order
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
USES+= mysql
USE_PHP+= pdo_mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USES+= pgsql
USE_PHP+= pdo_pgsql
.endif
.if ${PORT_OPTIONS:MORDER}
post-patch:
${RM} -rv ${WRKSRC}/vexim/*.orig
.endif
do-install:
@${ECHO} "Installing in ${WWWDIR}:"
${MKDIR} ${STAGEDIR}${WWWDIR}
cd ${WRKSRC}/vexim && ${FIND} . \
-type d -exec ${MKDIR} ${STAGEDIR}${WWWDIR}/{} \; \
-o -type f \
-exec ${INSTALL_DATA} {} ${STAGEDIR}${WWWDIR}/{} \;
${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 README.md TODO
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>