mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
bdaca27c6e
- Fix mysql commands in pkg-message.in, partially based on [1] - Change MAINTAINER address from tota@rtfm.jp to tota@FreeBSD.org PR: ports/142732 [1] Submitted by: Sevan Janiyan <venture37_AT_geeklan.co.uk> [1] Approved by: maho (mentor)
62 lines
1.3 KiB
Makefile
62 lines
1.3 KiB
Makefile
# New ports collection makefile for: ilohamail
|
|
# Date created: 2004-01-20
|
|
# Whom: TAKATSU Tomonari <tota@rtfm.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ilohamail
|
|
PORTVERSION= 0.8.13
|
|
PORTREVISION= 1
|
|
CATEGORIES= mail www
|
|
MASTER_SITES= SF/${PORTNAME}/IlohaMail-stable/${PORTVERSION}
|
|
DISTNAME= IlohaMail-${PORTVERSION}
|
|
|
|
MAINTAINER= tota@FreeBSD.org
|
|
COMMENT= IlohaMail is a lightweight multilingual webmail program
|
|
|
|
NO_BUILD= yes
|
|
USE_PHP= pcre
|
|
WANT_PHP_WEB= yes
|
|
|
|
.if !defined(WITHOUT_MYSQL)
|
|
USE_PHP+= mysql
|
|
PLIST_SUB+= MYSQL=""
|
|
.else
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_WWWDIR)
|
|
ILOHADIR= ${PREFIX}/www/ilohamail
|
|
.else
|
|
ILOHADIR= ${PREFIX}/ilohamail
|
|
.endif
|
|
|
|
PLIST_SUB+= ILOHADIR="${ILOHADIR:S,^${PREFIX}/,,}"
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= ILOHADIR=${ILOHADIR}
|
|
|
|
pre-everything::
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} " define WITHOUT_MYSQL: not to use MySQL back-end"
|
|
@${ECHO_MSG} ""
|
|
|
|
do-install:
|
|
@${MKDIR} ${ILOHADIR}
|
|
${CP} -Rp ${WRKSRC}/IlohaMail/ ${ILOHADIR}
|
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${ILOHADIR}/data
|
|
.if !defined(WITHOUT_MYSQL)
|
|
@${MKDIR} ${DATADIR}
|
|
${CP} -Rp ${WRKSRC}/MySQL ${DATADIR}
|
|
.endif
|
|
.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>
|