2004-02-28 12:19:44 +01:00
|
|
|
# New ports collection makefile for: ilohamail
|
|
|
|
# Date created: 2004-01-20
|
|
|
|
# Whom: TAKATSU Tomonari <tota@rtfm.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ilohamail
|
2004-07-01 10:51:16 +02:00
|
|
|
PORTVERSION= 0.8.13
|
2004-07-25 17:55:38 +02:00
|
|
|
PORTREVISION= 1
|
2004-02-28 12:19:44 +01:00
|
|
|
CATEGORIES= mail www
|
2009-08-22 02:28:34 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/IlohaMail-stable/${PORTVERSION}
|
2004-02-28 12:19:44 +01:00
|
|
|
DISTNAME= IlohaMail-${PORTVERSION}
|
|
|
|
|
2010-02-09 15:58:53 +01:00
|
|
|
MAINTAINER= tota@FreeBSD.org
|
2004-02-28 12:19:44 +01:00
|
|
|
COMMENT= IlohaMail is a lightweight multilingual webmail program
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
2004-07-25 17:55:38 +02:00
|
|
|
USE_PHP= pcre
|
2004-02-28 12:19:44 +01:00
|
|
|
WANT_PHP_WEB= yes
|
|
|
|
|
2004-07-25 17:55:38 +02:00
|
|
|
.if !defined(WITHOUT_MYSQL)
|
|
|
|
USE_PHP+= mysql
|
|
|
|
PLIST_SUB+= MYSQL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2004-02-28 12:19:44 +01:00
|
|
|
.if !defined(WITHOUT_WWWDIR)
|
|
|
|
ILOHADIR= ${PREFIX}/www/ilohamail
|
|
|
|
.else
|
|
|
|
ILOHADIR= ${PREFIX}/ilohamail
|
|
|
|
.endif
|
|
|
|
|
|
|
|
PLIST_SUB+= ILOHADIR="${ILOHADIR:S,^${PREFIX}/,,}"
|
2010-02-09 15:58:53 +01:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST= ILOHADIR=${ILOHADIR}
|
2004-02-28 12:19:44 +01:00
|
|
|
|
2004-07-25 17:55:38 +02:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " define WITHOUT_MYSQL: not to use MySQL back-end"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
|
2004-02-28 12:19:44 +01:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${ILOHADIR}
|
|
|
|
${CP} -Rp ${WRKSRC}/IlohaMail/ ${ILOHADIR}
|
|
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${ILOHADIR}/data
|
2004-07-25 17:55:38 +02:00
|
|
|
.if !defined(WITHOUT_MYSQL)
|
2004-02-28 12:19:44 +01:00
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${CP} -Rp ${WRKSRC}/MySQL ${DATADIR}
|
2004-07-25 17:55:38 +02:00
|
|
|
.endif
|
2004-02-28 12:19:44 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC}; ${CP} -Rp INSTALL README RELEASE_NOTES \
|
|
|
|
THEMES TODO UPGRADING Manual ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|