summaryrefslogtreecommitdiffstats
path: root/www/ismail/Makefile
blob: cbcbf36a070e49f728934683b71e1dd6a6f3615b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Created by: Kelley Reynolds <kelley@insidesystems.net>
# $FreeBSD$

PORTNAME=	ismail
PORTVERSION=	2.1
PORTREVISION=	2
CATEGORIES=	www mail
MASTER_SITES=	http://az.semmy.ru/ISMail/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	PHP-based webmail client

USE_BZIP2=	yes

WRKSRC=		${WRKDIR}

NO_BUILD=	yes
USE_PHP=	imap
WANT_PHP_WEB=	yes

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	DOCS
OPTIONS_SINGLE=	DATASTORE
OPTIONS_SINGLE_DATASTORE=	MYSQL PGSQL
OPTIONS_DEFAULT=	MYSQL

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+=	mysql
PLIST_FILES+=	${EXAMPLESDIR_REL}/mysql4.schema
PLIST_DIRS+=	${EXAMPLESDIR_REL}
.endif

.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+=	pgsql
PLIST_FILES+=	${EXAMPLESDIR_REL}/pgsql.schema
PLIST_DIRS+=	${EXAMPLESDIR_REL}
.endif

LIB_DEPENDS+=	c-client4:${PORTSDIR}/mail/cclient

pre-install:
	@${ECHO_MSG} ""
	@${ECHO_MSG} "Inside Systems Mail will be installed to ${WWWDIR}"
	@${ECHO_MSG} "Define WWWDIR to change it."
	@${ECHO_MSG} ""

do-install:
	@${MKDIR} ${WWWDIR}
	${TAR} --exclude '*~' -C ${WRKSRC}/${PORTNAME} -cf - . | ${TAR} -C ${WWWDIR} -xf -
	@${CHOWN} -R www:www ${WWWDIR}
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/docs.html ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MMYSQL}
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/mysql4.schema ${EXAMPLESDIR}
.endif
.if ${PORT_OPTIONS:MPGSQL}
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/examples/pgsql.schema ${EXAMPLESDIR}
.endif

post-install:
	@${CAT} ${PKGMEASSAGE}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud