aboutsummaryrefslogtreecommitdiff
path: root/devel/horde-chora/Makefile
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2002-02-09 08:50:32 +0000
committerKevin Lo <kevlo@FreeBSD.org>2002-02-09 08:50:32 +0000
commit588b40399c3cc5089bcd968df47f6048de67d30c (patch)
tree7839183938d1c07f07762854c1bed9d4e9000e94 /devel/horde-chora/Makefile
parentad309c29e327900c8ec0824f979052b0a930aa26 (diff)
downloadports-588b40399c3cc5089bcd968df47f6048de67d30c.tar.gz
ports-588b40399c3cc5089bcd968df47f6048de67d30c.zip
Notes
Diffstat (limited to 'devel/horde-chora/Makefile')
-rw-r--r--devel/horde-chora/Makefile75
1 files changed, 75 insertions, 0 deletions
diff --git a/devel/horde-chora/Makefile b/devel/horde-chora/Makefile
new file mode 100644
index 000000000000..8456e3a5c6d1
--- /dev/null
+++ b/devel/horde-chora/Makefile
@@ -0,0 +1,75 @@
+# Ports collection makefile for: Chora
+# Date created: Mon Nov 26, 2001
+# Whom: Thierry Thomas (<thierry@pompo.net>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= chora
+PORTVERSION= 1.0
+CATEGORIES= devel www
+MASTER_SITES= ftp://ftp.horde.org/pub/chora/tarballs/ \
+ ftp://ftp.uk.horde.org/mirrors/ftp.horde.org/pub/chora/tarballs/
+
+MAINTAINER= thierry@pompo.net
+
+RUN_DEPENDS= ${LOCALBASE}/www/horde/index.php:${PORTSDIR}/www/horde-devel
+
+NO_BUILD= yes
+
+# Specify where your repository belongs.
+# (You can reconfigure it after installation anyway)
+.if defined(PACKAGE_BUILDING) || !defined(CVSROOT) || empty(CVSROOT)
+CVSROOT= /home/cvs
+.endif
+
+DOCS= COPYING README docs/BUGS docs/CHANGES docs/CREDITS \
+ docs/GOALS docs/INSTALL
+CONFFILE= conf.php cvsroots.php html.php longIntro.txt \
+ mime_drivers.php
+
+LHORDEDIR?= www/horde
+LCHORADIR?= ${LHORDEDIR}/chora
+
+PLIST_SUB= HORDEDIR=${LHORDEDIR} CHORADIR=${LCHORADIR}
+
+HORDEDIR= ${PREFIX}/${LHORDEDIR}
+CHORADIR= ${PREFIX}/${LCHORADIR}
+CONFDIR= ${CHORADIR}/config
+
+HORDE_INC= ${LOCALBASE}/etc/horde
+
+do-install:
+ @${MKDIR} ${CHORADIR}
+ @${CP} -Rp ${WRKSRC}/config ${WRKSRC}/graphics ${WRKSRC}/lib ${CHORADIR}
+ @${CP} -Rp ${WRKSRC}/locale ${WRKSRC}/po ${WRKSRC}/templates ${CHORADIR}
+ @${CP} -p ${WRKSRC}/*.php ${CHORADIR}
+.for FILE in ${CONFFILE}
+ @if [ ! -f ${CONFDIR}/${FILE} ]; then \
+ ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
+ fi
+.endfor
+ @${PERL} -pi -e "s:%%CVSROOT%%:${CVSROOT}:;s:%%CONFDIR%%:${CONFDIR}:" \
+ ${CONFDIR}/cvsroots.php
+ @${CHOWN} -R www:www ${CHORADIR}
+ @${CHMOD} -R o-rwx ${CONFDIR}
+ @${CP} -p ${FILESDIR}/httpd.conf.chora ${HORDE_INC}
+ @${PERL} -pi -e "s:/home/httpd/html/horde/chora:${CHORADIR}:g" \
+ ${HORDE_INC}/httpd.conf.chora
+ @${PERL} -pi -e "s://UNCOMMENTWHENINSTCHORA::" \
+ ${HORDEDIR}/config/registry.php
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for FILE in ${DOCS}
+ @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
+.endfor
+ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
+.endif
+
+post-install:
+ @${ECHO_MSG}
+ @${CAT} ${PKGMESSAGE} | \
+ ${SED} -e "s:%%CHORADIR%%:${CHORADIR}:g;s:%%PORTSDIR%%:${PORTSDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g"
+ @${ECHO_MSG}
+
+.include <bsd.port.mk>