head	1.10;
access;
symbols
	RELEASE_5_0_DP1:1.8
	RELEASE_4_5_0:1.5;
locks; strict;
comment	@# @;


1.10
date	2002.05.15.10.32.19;	author sada;	state dead;
branches;
next	1.9;

1.9
date	2002.04.12.17.10.06;	author ade;	state Exp;
branches;
next	1.8;

1.8
date	2002.04.01.13.26.35;	author ijliao;	state Exp;
branches;
next	1.7;

1.7
date	2002.03.15.19.44.22;	author ade;	state Exp;
branches;
next	1.6;

1.6
date	2002.01.29.12.08.27;	author knu;	state Exp;
branches;
next	1.5;

1.5
date	2002.01.20.22.32.44;	author lioux;	state Exp;
branches;
next	1.4;

1.4
date	2002.01.19.16.58.08;	author ijliao;	state Exp;
branches;
next	1.3;

1.3
date	2001.12.22.21.51.01;	author dwcjr;	state Exp;
branches;
next	1.2;

1.2
date	2001.12.12.20.08.28;	author ijliao;	state Exp;
branches;
next	1.1;

1.1
date	2001.12.03.02.36.06;	author steve;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Move www/horde-devel -> www/horde2 & mail/imp-devel -> mail/imp3
From PR's description:
  IMP 3.0 is the stable release of IMP,
  and Horde 2.0 the stable release of Horde.
Note:	mail/imp3 and deskutils/kronolith are marked as IS_INTERACTIVE
	since they need depending port mod_php4 with its mcrypt option
	enabled by hand.

PR:		ports/35051
Submitted by:	maintainer
@
text
@# Ports collection makefile for:  horde-devel
# Date created:			  Sun Oct 07, 2001
# Whom:				  Thierry Thomas (<thierry@@thomas.as>)
#
# $FreeBSD: ports/www/horde-devel/Makefile,v 1.9 2002/04/12 17:10:06 ade Exp $
#

PORTNAME=	horde
PORTVERSION=	2.0
PORTREVISION=	3
CATEGORIES=	www
MASTER_SITES=	ftp://ftp.horde.org/pub/horde/tarballs/
PKGNAMESUFFIX=	-devel

MAINTAINER=	thierry@@pompo.net

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

#-----------------------------------------------------------------------
# You may define these options:
#
# - WITHOUT_SSL		: if you do not need Apache with mod_ssl;
#
#-----------------------------------------------------------------------

LIB_DEPENDS+=	intl.2:${PORTSDIR}/devel/gettext
.if !defined(WITHOUT_MCAL)
LIB_DEPENDS+=	mcal.0:${PORTSDIR}/misc/libmcal
.endif
.if !defined(WITHOUT_SSL)
RUN_DEPENDS+=	${LOCALBASE}/libexec/apache/libssl.so:${PORTSDIR}/www/apache13-modssl
.endif
#RUN_DEPENDS+=	${LOCALBASE}/lib/php/Cache/DB.php:${PORTSDIR}/devel/pear
RUN_DEPENDS+=	${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4

NO_BUILD=	yes
DOCS=		COPYING README docs/CHANGES docs/CODING_STANDARDS \
		docs/CONTRIBUTING docs/CREDITS docs/HACKING docs/INSTALL
CONFFILE=	html.php lang.php mime_drivers.php mime_mapping.php \
		motd.php registry.php

LHORDEDIR?=	www/horde
LHORDESBIN?=	sbin

PLIST_SUB=	HORDEDIR=${LHORDEDIR} HORDESBIN=${LHORDESBIN}

HORDEDIR=	${PREFIX}/${LHORDEDIR}
HORDESBIN=	${PREFIX}/${LHORDESBIN}
CONFDIR=	${HORDEDIR}/config

APACHE_CNFDIR?=	${LOCALBASE}/etc/apache
APACHE_CONF=	${APACHE_CNFDIR}/httpd.conf
PHP_LIB?=	${LOCALBASE}/lib/php
HORDE_INC=	${PREFIX}/etc/horde
LOG_FILE?=	/var/log/horde.log

pre-everything::
.if !defined(WITHOUT_SSL)
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "Press CTRL-C and define WITHOUT_SSL"
	@@${ECHO_MSG} " if you do not want to use Apache with SSL."
	@@${ECHO_MSG} ""
.endif
	@@${ECHO_MSG} ""
	@@${ECHO_MSG} "If you plan to install IMP, it is better to configure"
	@@${ECHO_MSG} "PHP with IMAP / IMAP-SSL, OpenLDAP, OpenSSL, mcrypt, XML,"
	@@${ECHO_MSG} "FTP, gettext, pspell, zlib, MCAL and"
	@@${ECHO_MSG} "a database (like MySQL or PostgreSQL)."
	@@${ECHO_MSG} ""

pre-install:
	@@if [ -f ${HORDEDIR}/index.php3 ]; then \
	    ${ECHO_MSG} "" ; \
	    ${ECHO_MSG} "Please deinstall the port www/horde." ; \
	    ${ECHO_MSG} "" ; \
	    ${FALSE} ; \
	fi
	@@if ! ${LDCONFIG} -r | ${GREP} -q -e "lintl.2"; then \
	    ${ECHO_MSG} "" ; \
	    ${ECHO_MSG} "Please configure PHP with gettext support." ; \
	    ${ECHO_MSG} "" ; \
	    ${FALSE} ; \
	fi

do-install:
	@@${MKDIR}  ${HORDEDIR}
	@@${CP} -Rp ${WRKSRC}/config ${WRKSRC}/graphics ${WRKSRC}/lib ${HORDEDIR}
	@@${CP} -Rp ${WRKSRC}/locale ${WRKSRC}/scripts ${WRKSRC}/templates ${HORDEDIR}
	@@${CP} -Rp ${WRKSRC}/po ${WRKSRC}/admin ${WRKSRC}/util ${HORDEDIR}
	@@${CP} -p  ${WRKSRC}/*.php ${HORDEDIR}
	@@if [ ! -f ${CONFDIR}/horde.php ]; then \
		${CP} ${CONFDIR}/horde.php.dist ${CONFDIR}/horde.php ; \
		${PERL} -pi -e "s:/var/www/htdocs/horde/templates:${HORDEDIR}/templates:g" \
			${CONFDIR}/horde.php ; \
		${PERL} -pi -e "s:/tmp/horde.log:${LOG_FILE}:g" ${CONFDIR}/horde.php ; \
	fi
	@@${PERL} -pi -e "s:/etc/mpasswd:${LOCALBASE}/etc/mpasswd:g" \
		${HORDEDIR}/lib/Auth/mcal.php
.for FILE in ${CONFFILE}
	@@if [ ! -f ${CONFDIR}/${FILE} ]; then \
	  ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
	fi
.endfor
	@@${PERL} -pi -e "s:%%LOCALBASE%%:${LOCALBASE}:" ${CONFDIR}/mime_drivers.php
	@@${CP} ${WRKSRC}/scripts/set_perms.sh ${HORDESBIN}/horde_set_perms.sh
	@@${PERL} -pi -e "s:UPDATED_BY_THE_PORT:${HORDEDIR}/:g" \
		${HORDESBIN}/horde_set_perms.sh
	@@${CHMOD} u+x ${HORDESBIN}/horde_set_perms.sh
	@@(if [ -f ${APACHE_CONF} ] ; then \
	    ${MKDIR} ${HORDE_INC} ; \
	    ${CP} -p ${FILESDIR}/httpd.conf.horde ${HORDE_INC} ; \
	    ${PERL} -pi -e "s:/home/httpd/html/horde:${HORDEDIR}:g" ${HORDE_INC}/httpd.conf.horde ; \
	    ${PERL} -pi -e "s:/home/httpd/phplib:${PHP_LIB}:g" ${HORDE_INC}/httpd.conf.horde ; \
	    ${ECHO_MSG} "===> Updating ${APACHE_CONF}..." ; \
	    ${CP} -p ${APACHE_CONF} ${APACHE_CONF}.beforeHorde ; \
	    ${PERL} -pi -e "s:php_value auto_prepend_file:# php_value auto_prepend_file:g" ${APACHE_CONF} ; \
	    ${PERL} -pi -e "s:${HORDEDIR}/phplib:${PHP_LIB}:g" ${APACHE_CONF} ; \
	    ${ECHO_CMD} "# Horde's include directory" >> ${APACHE_CONF} ; \
	    ${ECHO_CMD} "Include ${HORDE_INC}" >> ${APACHE_CONF} ; \
	fi)
	@@${CHOWN} -R www:www ${HORDEDIR}
	@@${CHMOD} -R o-rwx ${CONFDIR}
	@@${TOUCH} ${LOG_FILE}
	@@${CHOWN} www:www ${LOG_FILE}
.if !defined(NOPORTDOCS)
	@@${MKDIR} ${DOCSDIR}
.for FILE in ${DOCS}
	@@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
	@@${PERL} -pi -e "s:/usr/local/apache/htdocs/horde:${DOCSDIR}:g" ${DOCSDIR}/INSTALL
	@@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif

post-install:
	@@${ECHO}
	@@${CAT} ${PKGMESSAGE} | ${SED} -e \
	"s:%%HORDEDIR%%:${HORDEDIR}:g;s:%%APACHE_CONF%%:${APACHE_CONF}:g;s:%%HORDESBIN%%:${HORDESBIN}:g"
	@@${ECHO}

.include <bsd.port.mk>
@


1.9
log
@gettext upgrade uber-patch (stage 3)

- switch devel/gettext (0.11.1) on, installing full package
- flip devel/gettext-old (0.10.35) to installing only static binaries
  with a "-old" suffix -- gettext-old will have its deorbit burn
  sequence initiated just after 4.6-RELEASE
- fix up ports for the new world order

Reviewed by:	portmgr
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.8
log
@- adding support of enscript, for syntax highlighting in devel/chora;
- better handling of the MIME drivers used by mail/imp-devel.

PR:		35047
Submitted by:	maintainer
@
text
@d10 1
a10 1
PORTREVISION=	2
d26 1
a26 1
LIB_DEPENDS+=	intl.1:${PORTSDIR}/devel/gettext-old
d78 1
a78 1
	@@if ! ${LDCONFIG} -r | ${GREP} -q -e "lintl.1"; then \
@


1.7
log
@Stage 1 of gettext update.

Move gettext (0.10.35) with gettext-old
Update gettext from gettext-devel (0.10.40)
Remove gettext-devel
Fix dependencies

Stage 2 will involve upgraded gettext to 0.11 and fixing issues
Stage 3 involves a de-orbit burn sequence for gettext-old

Reviewed by:	portmgr
@
text
@d10 1
a10 1
PORTREVISION=	1
d104 1
@


1.6
log
@Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;
the ECHO macro is set to "echo" by default, but it is set to "true" if
make(1) is invoked with the -s option while ECHO_CMD is always set to
the echo command.
@
text
@d26 1
a26 1
LIB_DEPENDS+=	intl.1:${PORTSDIR}/devel/gettext
@


1.5
log
@Update maintainer address

PR:		34095
Submitted by:	MAINTAINER
@
text
@d117 2
a118 2
	    ${ECHO} "# Horde's include directory" >> ${APACHE_CONF} ; \
	    ${ECHO} "Include ${HORDE_INC}" >> ${APACHE_CONF} ; \
@


1.4
log
@horde-devel from 2.0 RC3 to 2.0;
turba from 1.0 RC3 to 1.0;
imp-devel from 3.0 RC3 to 1.0
@
text
@d15 1
a15 1
MAINTAINER=	thierry@@thomas.as
@


1.3
log
@Pear is now included in mod_php4 v 4.1.0

PR:		33051
Submitted by:	maintainer
@
text
@d10 1
a13 1
DISTNAME=	${PORTNAME}-${PORTVERSION}-RC3
d37 2
a38 2
DOCS=		COPYING README docs/CHANGES docs/CODING_STANDARDS docs/CREDITS \
		docs/HELP docs/INSTALL docs/LISTS docs/SOURCE
d97 2
d105 3
a107 1
	@@${PERL} -pi -e "s:UPDATED_BY_THE_PORT:${HORDEDIR}/:g" ${HORDESBIN}/horde_set_perms.sh
@


1.2
log
@upgrade to RC3

PR:		32516
Submitted by:	maintainer
@
text
@d33 2
a34 2
RUN_DEPENDS+=	${LOCALBASE}/lib/php/Cache/DB.php:${PORTSDIR}/devel/pear
#RUN_DEPENDS+=	${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
@


1.1
log
@Adding horde version 2.0.
A common code-base used by Horde applications, written in PHP.

PR:		32088, 32145
Submitted by:	Thierry Thomas <thierry@@thomas.as>
@
text
@d13 1
a13 1
DISTNAME=	${PORTNAME}-${PORTVERSION}-RC2
d37 4
a40 2
DOCS=		COPYING README docs/CHANGES docs/CREDITS docs/CODING_STANDARDS \
		docs/HELP docs/INSTALL docs/RELEASE
d49 1
d54 1
d66 2
a67 2
	@@${ECHO_MSG} "PHP with IMAP, OpenLDAP, OpenSSL, mcrypt, XML, FTP,"
	@@${ECHO_MSG} "gettext, pspell, zlib, MCAL and"
d86 7
a92 7
	${MKDIR}  ${HORDEDIR}
	${CP} -Rp ${WRKSRC}/config ${WRKSRC}/graphics ${WRKSRC}/lib ${HORDEDIR}
	${CP} -Rp ${WRKSRC}/locale ${WRKSRC}/scripts ${WRKSRC}/templates ${HORDEDIR}
	${CP} -Rp ${WRKSRC}/po ${WRKSRC}/admin ${WRKSRC}/util ${HORDEDIR}
	${CP} -p  ${WRKSRC}/*.php ${HORDEDIR}
	@@if [ ! -f ${HORDEDIR}/config/horde.php ]; then \
		${CP} ${HORDEDIR}/config/horde.php.dist ${HORDEDIR}/config/horde.php ; \
d94 2
a95 2
			${HORDEDIR}/config/horde.php ; \
		${PERL} -pi -e "s:/tmp/horde.log:${LOG_FILE}:g" ${HORDEDIR}/config/horde.php ; \
d97 3
a99 2
	@@if [ ! -f ${HORDEDIR}/config/html.php ]; then \
		${CP} ${HORDEDIR}/config/html.php.dist ${HORDEDIR}/config/html.php ; \
d101 14
a114 31
	@@if [ ! -f ${HORDEDIR}/config/lang.php ]; then \
		${CP} ${HORDEDIR}/config/lang.php.dist ${HORDEDIR}/config/lang.php ; \
	fi
	@@if [ ! -f ${HORDEDIR}/config/mime_drivers.php ]; then \
		${CP} ${HORDEDIR}/config/mime_drivers.php.dist ${HORDEDIR}/config/mime_drivers.php ; \
	fi
	@@if [ ! -f ${HORDEDIR}/config/mime_mapping.php ]; then \
		${CP} ${HORDEDIR}/config/mime_mapping.php.dist ${HORDEDIR}/config/mime_mapping.php ; \
	fi
	@@if [ ! -f ${HORDEDIR}/config/motd.php ]; then \
		${CP} ${HORDEDIR}/config/motd.php.dist ${HORDEDIR}/config/motd.php ; \
	fi
	@@if [ ! -f ${HORDEDIR}/config/registry.php ]; then \
		${CP} ${HORDEDIR}/config/registry.php.dist ${HORDEDIR}/config/registry.php ; \
	fi
	${CP} ${WRKSRC}/scripts/set_perms.sh ${HORDESBIN}/horde_set_perms.sh
	${PERL} -pi -e "s:UPDATED_BY_THE_PORT:${HORDEDIR}/:g" ${HORDESBIN}/horde_set_perms.sh
	 (if [ -f ${APACHE_CONF} ] ; then \
	    (if [ ! -f ${APACHE_CONF}.beforeHorde ] ; then \
		${ECHO} "===> Updating ${APACHE_CONF}..." ; \
		${CP} -p ${FILESDIR}/httpd.conf.horde ${WRKDIR}/httpd.conf.horde ; \
		${PERL} -pi -e "s:/home/httpd/html/horde:${HORDEDIR}:g" ${WRKDIR}/httpd.conf.horde ; \
		${PERL} -pi -e "s:/home/httpd/phplib:${PHP_LIB}:g" ${WRKDIR}/httpd.conf.horde ; \
		${CP} -p ${APACHE_CONF} ${APACHE_CONF}.beforeHorde ; \
		${GREP} -qw 'Added for Horde' ${APACHE_CONF} || ${CAT} ${WRKDIR}/httpd.conf.horde >> ${APACHE_CONF} ; \
	    else \
		${ECHO} "===> Updating ${APACHE_CONF}..." ; \
		${CP} -p ${APACHE_CONF} ${APACHE_CONF}.reinstHorde ; \
		${PERL} -pi -e "s:php_value auto_prepend_file:# php_value auto_prepend_file:g" ${APACHE_CONF} ; \
		${PERL} -pi -e "s:${HORDEDIR}/phplib:${PHP_LIB}:g" ${APACHE_CONF} ; \
	    fi) ; \
d116 4
a119 4
	${CHOWN} -R www:www ${HORDEDIR}
	${CHMOD} -R o-rwx ${HORDEDIR}/config
	${TOUCH} ${LOG_FILE}
	${CHOWN} www:www ${LOG_FILE}
d121 1
a121 1
	${MKDIR} ${DOCSDIR}
d123 1
a123 1
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
d125 2
a126 2
	${PERL} -pi -e "s:/usr/local/apache/htdocs/horde:${DOCSDIR}:g" ${DOCSDIR}/INSTALL
	@@${ECHO} "Documentation installed in ${DOCSDIR}."
@

