2001-12-03 03:40:12 +01:00
|
|
|
# Ports collection makefile for: turba
|
|
|
|
# Date created: Sat Nov 16, 2001
|
|
|
|
# Whom: Thierry Thomas (<thierry@thomas.as>)
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= turba
|
2005-10-18 23:55:28 +02:00
|
|
|
PORTVERSION= 2.0.4
|
2001-12-03 03:40:12 +01:00
|
|
|
CATEGORIES= mail www
|
2003-01-30 10:59:58 +01:00
|
|
|
MASTER_SITES= ftp://ftp.horde.org/pub/turba/ \
|
2004-03-16 23:22:19 +01:00
|
|
|
ftp://ftp.planetmirror.com/pub/horde/turba/ \
|
2003-01-30 10:59:58 +01:00
|
|
|
ftp://ftp.au.horde.org/pub/horde/turba/ \
|
2004-03-16 23:22:19 +01:00
|
|
|
ftp://ftp.be.horde.org/turba/ \
|
2003-01-30 10:59:58 +01:00
|
|
|
ftp://ftp.es.horde.org/pub/turba/ \
|
|
|
|
ftp://ftp.it.horde.org/pub/mirror/horde.org/turba/ \
|
|
|
|
ftp://ftp.nl.horde.org/mirror/horde-ftp/pub/turba/ \
|
2004-03-16 23:22:19 +01:00
|
|
|
ftp://ftp.uk.horde.org/mirrors/ftp.horde.org/pub/turba/ \
|
|
|
|
http://ftp.horde.org/pub/turba/
|
2004-12-26 11:24:23 +01:00
|
|
|
DISTNAME= ${PORTNAME}-h3-${PORTVERSION}
|
2001-12-03 03:40:12 +01:00
|
|
|
|
2004-07-19 11:42:01 +02:00
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
2003-02-21 13:51:06 +01:00
|
|
|
COMMENT= The Horde contact management application
|
2001-12-03 03:40:12 +01:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------
|
2003-06-12 04:17:45 +02:00
|
|
|
# You may define this option:
|
2001-12-03 03:40:12 +01:00
|
|
|
#
|
|
|
|
# - WITHOUT_LDAP : if you do not need OpenLDAP;
|
|
|
|
#
|
2005-02-13 16:18:33 +01:00
|
|
|
# - WITH_IMSP : run IMSP cyrus-imspd.
|
|
|
|
#
|
2001-12-03 03:40:12 +01:00
|
|
|
#-----------------------------------------------------------------------
|
|
|
|
|
2005-01-16 15:53:41 +01:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde
|
2003-09-24 12:26:14 +02:00
|
|
|
|
2001-12-03 03:40:12 +01:00
|
|
|
.if !defined(WITHOUT_LDAP)
|
2004-12-26 11:24:23 +01:00
|
|
|
USE_PHP= ldap
|
2001-12-03 03:40:12 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
2002-06-26 05:54:09 +02:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2004-12-26 11:24:23 +01:00
|
|
|
REINPLACE_ARGS= -i ""
|
2005-08-28 11:31:30 +02:00
|
|
|
DOCS= README docs/CHANGES docs/CREDITS docs/INSTALL \
|
2004-12-26 11:24:23 +01:00
|
|
|
docs/LDAP docs/RELEASE_NOTES docs/TODO docs/UPGRADING
|
|
|
|
CONFFILE= attributes.php menu.php prefs.php sources.php
|
|
|
|
SUB_DIRS= config lib locale po scripts templates themes
|
2001-12-03 03:40:12 +01:00
|
|
|
|
|
|
|
LHORDEDIR?= www/horde
|
|
|
|
LTURBADIR?= ${LHORDEDIR}/turba
|
|
|
|
|
2004-12-26 11:24:23 +01:00
|
|
|
PLIST_SUB= TURBADIR=${LTURBADIR}
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2005-08-28 11:31:30 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
SUB_LIST= TURBADIR=${TURBADIR} CONFDIR=${CONFDIR}
|
2001-12-03 03:40:12 +01:00
|
|
|
|
|
|
|
TURBADIR= ${PREFIX}/${LTURBADIR}
|
|
|
|
CONFDIR= ${TURBADIR}/config
|
|
|
|
|
2001-12-12 21:09:16 +01:00
|
|
|
HORDE_INC= ${LOCALBASE}/etc/horde
|
2001-12-03 03:40:12 +01:00
|
|
|
|
2005-02-13 16:18:33 +01:00
|
|
|
.if exists(${LOCALBASE}/sbin/imspd)
|
|
|
|
WITH_IMSP= yes
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_IMSP)
|
|
|
|
RUN_DEPENDS+= imspd:${PORTSDIR}/databases/cyrus-imspd
|
|
|
|
.endif
|
|
|
|
|
2004-12-26 11:24:23 +01:00
|
|
|
pre-configure:
|
2005-02-13 16:18:33 +01:00
|
|
|
@${RM} ${WRKSRC}/config/sources.php.dist.orig
|
2004-12-26 11:24:23 +01:00
|
|
|
@${SED} -e "s:/home/httpd/html/horde/turba:${TURBADIR}:g" \
|
|
|
|
${FILESDIR}/httpd.conf.turba > ${WRKDIR}/httpd.conf.turba
|
|
|
|
@${REINPLACE_CMD} -e "s:/usr/bin/ldapadd:${LOCALBASE}/bin/ldapadd:" \
|
|
|
|
${WRKSRC}/scripts/ldap/addou.pl
|
2005-02-13 16:18:33 +01:00
|
|
|
.if defined(WITH_IMSP)
|
|
|
|
@${REINPLACE_CMD} -e "s://UNCOMMENTIFIMSP ::" ${WRKSRC}/config/sources.php.dist
|
|
|
|
.endif
|
2001-12-03 03:40:12 +01:00
|
|
|
|
|
|
|
do-install:
|
2001-12-12 21:09:16 +01:00
|
|
|
@${MKDIR} ${TURBADIR}
|
2002-05-16 09:52:57 +02:00
|
|
|
.for REP in ${SUB_DIRS}
|
|
|
|
@${CP} -Rp ${WRKSRC}/${REP} ${TURBADIR}
|
|
|
|
.endfor
|
2001-12-12 21:09:16 +01:00
|
|
|
@${CP} -p ${WRKSRC}/*.php ${TURBADIR}
|
2001-12-03 03:40:12 +01:00
|
|
|
.for FILE in ${CONFFILE}
|
|
|
|
@if [ ! -f ${CONFDIR}/${FILE} ]; then \
|
|
|
|
${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
|
|
|
|
fi
|
|
|
|
.endfor
|
2004-12-26 11:24:23 +01:00
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${TURBADIR}
|
2001-12-12 21:09:16 +01:00
|
|
|
@${CHMOD} -R o-rwx ${CONFDIR}
|
2004-12-26 11:24:23 +01:00
|
|
|
@${INSTALL_DATA} ${WRKDIR}/httpd.conf.turba ${HORDE_INC}
|
2001-12-03 03:40:12 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-12-12 21:09:16 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2001-12-03 03:40:12 +01:00
|
|
|
.for FILE in ${DOCS}
|
2001-12-12 21:09:16 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
2001-12-03 03:40:12 +01:00
|
|
|
.endfor
|
2001-12-12 21:09:16 +01:00
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
2001-12-03 03:40:12 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2001-12-12 21:09:16 +01:00
|
|
|
@${ECHO_MSG}
|
2004-12-26 11:24:23 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-12-12 21:09:16 +01:00
|
|
|
@${ECHO_MSG}
|
2001-12-03 03:40:12 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|