Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  3 Dec 2001 23:35:00 +0100 (CET)
From:      Thierry Thomas <thierry@thomas.as>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/32481: New port: devel/chora - the Horde CVS web-viewer
Message-ID:  <20011203223500.A27A37525@graf.pompo.net>

next in thread | raw e-mail | index | archive | help

>Number:         32481
>Category:       ports
>Synopsis:       New port: devel/chora - the Horde CVS web-viewer
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 03 14:40:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Sun Nov 25 07:49:02 CET 2001 root@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF010429 i386


	
>Description:
	Chora is the Horde CVS viewer; it provides an advanced web-based view of
any local CVS repository. It now includes annotation support, visual
branch viewing capability, and human-readable diffs.

Other features are:

- Support for multiple CVS repositories
- MIME-awareness, to pretty-print code or convert PDFs to text
- Visual branch histories, to view the flow of code through a project
- Internationalisation, with several languages supported
- Annotation (or 'blame') support

... as well as all the usual CVS functions you are familiar with from
other similar applications.

	This is RC1 of version 1.0, and the final 1.0 should be released
at the end of this year.

>How-To-Repeat:
	1) PR ports/32479 should be committed.
	2) Execute the enclosed shar file.

>Fix:


# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/devel/chora
#	/usr/ports/devel/chora/pkg-comment
#	/usr/ports/devel/chora/Makefile
#	/usr/ports/devel/chora/pkg-plist
#	/usr/ports/devel/chora/pkg-message
#	/usr/ports/devel/chora/pkg-descr
#	/usr/ports/devel/chora/distinfo
#	/usr/ports/devel/chora/files
#	/usr/ports/devel/chora/files/patch-aa
#	/usr/ports/devel/chora/files/httpd.conf.chora
#
echo c - /usr/ports/devel/chora
mkdir -p /usr/ports/devel/chora > /dev/null 2>&1
echo x - /usr/ports/devel/chora/pkg-comment
sed 's/^X//' >/usr/ports/devel/chora/pkg-comment << 'END-of-/usr/ports/devel/chora/pkg-comment'
XChora is the Horde CVS web-viewer
END-of-/usr/ports/devel/chora/pkg-comment
echo x - /usr/ports/devel/chora/Makefile
sed 's/^X//' >/usr/ports/devel/chora/Makefile << 'END-of-/usr/ports/devel/chora/Makefile'
X# Ports collection makefile for:  Chora
X# Date created:			  Mon Nov 26, 2001
X# Whom:				  Thierry Thomas (<thierry@thomas.as>)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	chora
XPORTVERSION=	1.0
XCATEGORIES=	devel www
XMASTER_SITES=	ftp://ftp.horde.org/pub/chora/tarballs/
XDISTNAME=	${PORTNAME}-${PORTVERSION}-RC1
X
XMAINTAINER=	thierry@thomas.as
X
XRUN_DEPENDS=	${LOCALBASE}/www/horde/index.php:${PORTSDIR}/www/horde-devel
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
XNO_BUILD=	yes
X
X# Specify where your repository belongs.
X# (You can reconfigure it after installation anyway)
X.if defined(PACKAGE_BUILDING) || !defined(CVSROOT) || empty(CVSROOT)
XCVSROOT=	/home/cvs
X.endif
X
XDOCS=		COPYING README  docs/BUGS docs/CHANGES docs/CREDITS \
X		docs/GOALS docs/INSTALL
XCONFFILE=	conf.php cvsroots.php html.php longIntro.txt \
X		mime_drivers.php
X
XLHORDEDIR?=	www/horde
XLCHORADIR?=	${LHORDEDIR}/chora
X
XPLIST_SUB=	HORDEDIR=${LHORDEDIR} CHORADIR=${LCHORADIR}
X
XHORDEDIR=	${PREFIX}/${LHORDEDIR}
XCHORADIR=	${PREFIX}/${LCHORADIR}
XCONFDIR=	${CHORADIR}/config
X
XHORDE_INC=	${LOCALBASE}/etc/horde
X
Xdo-install:
X	@${MKDIR}  ${CHORADIR}
X	@${CP} -Rp ${WRKSRC}/config ${WRKSRC}/graphics ${WRKSRC}/lib ${CHORADIR}
X	@${CP} -Rp ${WRKSRC}/locale ${WRKSRC}/po ${WRKSRC}/templates ${CHORADIR}
X	@${CP} -p  ${WRKSRC}/*.php ${CHORADIR}
X.for FILE in ${CONFFILE}
X	@if [ ! -f ${CONFDIR}/${FILE} ]; then \
X	  ${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
X	fi
X.endfor
X	@${PERL} -pi -e "s:%%CVSROOT%%:${CVSROOT}:;s:%%CONFDIR%%:${CONFDIR}:" \
X		${CONFDIR}/cvsroots.php
X	@${CHOWN} -R www:www ${CHORADIR}
X	@${CHMOD} -R o-rwx ${CONFDIR}
X	@${CP} -p ${FILESDIR}/httpd.conf.chora ${HORDE_INC}
X	@${PERL} -pi -e "s:/home/httpd/html/horde/chora:${CHORADIR}:g" \
X		${HORDE_INC}/httpd.conf.chora
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for FILE in ${DOCS}
X	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
X.endfor
X	@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
X.endif
X
Xpost-install:
X	@${ECHO_MSG}
X	@${CAT} ${PKGMESSAGE} | \
X	${SED} -e "s:%%CHORADIR%%:${CHORADIR}:g;s:%%PORTSDIR%%:${PORTSDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g"
X	@${ECHO_MSG}
X
X.include <bsd.port.mk>
END-of-/usr/ports/devel/chora/Makefile
echo x - /usr/ports/devel/chora/pkg-plist
sed 's/^X//' >/usr/ports/devel/chora/pkg-plist << 'END-of-/usr/ports/devel/chora/pkg-plist'
X%%PORTDOCS%%share/doc/chora/BUGS
X%%PORTDOCS%%share/doc/chora/CHANGES
X%%PORTDOCS%%share/doc/chora/COPYING
X%%PORTDOCS%%share/doc/chora/CREDITS
X%%PORTDOCS%%share/doc/chora/GOALS
X%%PORTDOCS%%share/doc/chora/INSTALL
X%%PORTDOCS%%share/doc/chora/README
X%%CHORADIR%%/annotate.php
X%%CHORADIR%%/co.php
X%%CHORADIR%%/config/README
X%%CHORADIR%%/config/conf.php
X%%CHORADIR%%/config/conf.php.dist
X%%CHORADIR%%/config/cvsroots.php
X%%CHORADIR%%/config/cvsroots.php.dist
X%%CHORADIR%%/config/cvsroots.php.dist.orig
X%%CHORADIR%%/config/html.php
X%%CHORADIR%%/config/html.php.dist
X%%CHORADIR%%/config/longIntro.txt
X%%CHORADIR%%/config/longIntro.txt.dist
X%%CHORADIR%%/config/mime_drivers.php
X%%CHORADIR%%/config/mime_drivers.php.dist
X%%CHORADIR%%/cvs.php
X%%CHORADIR%%/diff.php
X%%CHORADIR%%/graphics/back.gif
X%%CHORADIR%%/graphics/chora.gif
X%%CHORADIR%%/graphics/deleted.gif
X%%CHORADIR%%/graphics/down.gif
X%%CHORADIR%%/graphics/folder.gif
X%%CHORADIR%%/graphics/mime/text.gif
X%%CHORADIR%%/graphics/up.gif
X%%CHORADIR%%/history.php
X%%CHORADIR%%/index.php
X%%CHORADIR%%/lib/CVSLib.php
X%%CHORADIR%%/lib/CVSLib/Annotate.php
X%%CHORADIR%%/lib/CVSLib/Checkout.php
X%%CHORADIR%%/lib/CVSLib/Diff.php
X%%CHORADIR%%/lib/CVSLib/Directory.php
X%%CHORADIR%%/lib/CVSLib/Error.php
X%%CHORADIR%%/lib/CVSLib/File.php
X%%CHORADIR%%/lib/CVSLib/Log.php
X%%CHORADIR%%/lib/CVSLib/Rev.php
X%%CHORADIR%%/lib/Chora.php
X%%CHORADIR%%/lib/MIME/Viewer/text.php
X%%CHORADIR%%/lib/README.CVSLib
X%%CHORADIR%%/lib/base.php
X%%CHORADIR%%/lib/constants.php
X%%CHORADIR%%/lib/version.php
X%%CHORADIR%%/locale/cs_CZ/LC_MESSAGES/chora.mo
X%%CHORADIR%%/locale/de_DE/LC_MESSAGES/chora.mo
X%%CHORADIR%%/locale/es_ES/LC_MESSAGES/chora.mo
X%%CHORADIR%%/locale/fr_FR/LC_MESSAGES/chora.mo
X%%CHORADIR%%/locale/nl_NL/LC_MESSAGES/chora.mo
X%%CHORADIR%%/po/Makefile
X%%CHORADIR%%/po/README
X%%CHORADIR%%/po/cs_CZ.po
X%%CHORADIR%%/po/de_DE.po
X%%CHORADIR%%/po/es_ES.po
X%%CHORADIR%%/po/extract.pl
X%%CHORADIR%%/po/fr_FR.po
X%%CHORADIR%%/po/nl_NL.po
X%%CHORADIR%%/po/shtool
X%%CHORADIR%%/po/xgettext.sh
X%%CHORADIR%%/templates/annotate/footer.inc
X%%CHORADIR%%/templates/annotate/header.inc
X%%CHORADIR%%/templates/annotate/line.inc
X%%CHORADIR%%/templates/checkout/footer.inc
X%%CHORADIR%%/templates/checkout/header.inc
X%%CHORADIR%%/templates/common-footer.inc
X%%CHORADIR%%/templates/common-header.inc
X%%CHORADIR%%/templates/diff/hr/add.inc
X%%CHORADIR%%/templates/diff/hr/change.inc
X%%CHORADIR%%/templates/diff/hr/empty.inc
X%%CHORADIR%%/templates/diff/hr/footer.inc
X%%CHORADIR%%/templates/diff/hr/header.inc
X%%CHORADIR%%/templates/diff/hr/nochange.inc
X%%CHORADIR%%/templates/diff/hr/remove.inc
X%%CHORADIR%%/templates/diff/hr/row.inc
X%%CHORADIR%%/templates/directory/back.inc
X%%CHORADIR%%/templates/directory/dir.inc
X%%CHORADIR%%/templates/directory/file.inc
X%%CHORADIR%%/templates/directory/footer.inc
X%%CHORADIR%%/templates/directory/header.inc
X%%CHORADIR%%/templates/error_page.inc
X%%CHORADIR%%/templates/history/blank.inc
X%%CHORADIR%%/templates/history/branch_cell.inc
X%%CHORADIR%%/templates/history/footer.inc
X%%CHORADIR%%/templates/history/header.inc
X%%CHORADIR%%/templates/history/rev.inc
X%%CHORADIR%%/templates/history/row_end.inc
X%%CHORADIR%%/templates/history/row_start.inc
X%%CHORADIR%%/templates/index/css.inc
X%%CHORADIR%%/templates/index/notconfigured.inc
X%%CHORADIR%%/templates/log/header.inc
X%%CHORADIR%%/templates/log/request.inc
X%%CHORADIR%%/templates/log/rev.inc
Xetc/horde/httpd.conf.chora
X%%PORTDOCS%%@dirrm share/doc/chora
X@dirrm %%CHORADIR%%/config
X@dirrm %%CHORADIR%%/graphics/mime
X@dirrm %%CHORADIR%%/graphics
X@dirrm %%CHORADIR%%/lib/CVSLib
X@dirrm %%CHORADIR%%/lib/MIME/Viewer
X@dirrm %%CHORADIR%%/lib/MIME
X@dirrm %%CHORADIR%%/lib
X@dirrm %%CHORADIR%%/locale/cs_CZ/LC_MESSAGES
X@dirrm %%CHORADIR%%/locale/cs_CZ
X@dirrm %%CHORADIR%%/locale/de_DE/LC_MESSAGES
X@dirrm %%CHORADIR%%/locale/de_DE
X@dirrm %%CHORADIR%%/locale/es_ES/LC_MESSAGES
X@dirrm %%CHORADIR%%/locale/es_ES
X@dirrm %%CHORADIR%%/locale/fr_FR/LC_MESSAGES
X@dirrm %%CHORADIR%%/locale/fr_FR
X@dirrm %%CHORADIR%%/locale/nl_NL/LC_MESSAGES
X@dirrm %%CHORADIR%%/locale/nl_NL
X@dirrm %%CHORADIR%%/locale
X@dirrm %%CHORADIR%%/po
X@dirrm %%CHORADIR%%/templates/annotate
X@dirrm %%CHORADIR%%/templates/checkout
X@dirrm %%CHORADIR%%/templates/diff/hr
X@dirrm %%CHORADIR%%/templates/diff
X@dirrm %%CHORADIR%%/templates/directory
X@dirrm %%CHORADIR%%/templates/history
X@dirrm %%CHORADIR%%/templates/index
X@dirrm %%CHORADIR%%/templates/log
X@dirrm %%CHORADIR%%/templates
X@dirrm %%CHORADIR%%
END-of-/usr/ports/devel/chora/pkg-plist
echo x - /usr/ports/devel/chora/pkg-message
sed 's/^X//' >/usr/ports/devel/chora/pkg-message << 'END-of-/usr/ports/devel/chora/pkg-message'
X************************************************************************
XChora has been installed in %%CHORADIR%% with your blank
Xconfiguration files.
X
XHorde must be configured; if not, see
X%%PORTSDIR%%/www/horde-devel/pkg-message.
X
XThen, you will have to tune the configuration files located in
X%%CONFDIR%%/, specially the files conf.php and
Xcvsroots.php.
X
XTo protect your configuration files, you have to restart Apache.
X************************************************************************
END-of-/usr/ports/devel/chora/pkg-message
echo x - /usr/ports/devel/chora/pkg-descr
sed 's/^X//' >/usr/ports/devel/chora/pkg-descr << 'END-of-/usr/ports/devel/chora/pkg-descr'
XChora is the Horde CVS viewer; it provides an advanced web-based view of
Xany local CVS repository. It now includes annotation support, visual
Xbranch viewing capability, and human-readable diffs.
X
XOther features are:
X
X- Support for multiple CVS repositories
X- MIME-awareness, to pretty-print code or convert PDFs to text
X- Visual branch histories, to view the flow of code through a project
X- Internationalisation, with several languages supported
X- Annotation (or 'blame') support
X
X... as well as all the usual CVS functions you are familiar with from
Xother similar applications.
X
XWWW: http://horde.org/chora/
END-of-/usr/ports/devel/chora/pkg-descr
echo x - /usr/ports/devel/chora/distinfo
sed 's/^X//' >/usr/ports/devel/chora/distinfo << 'END-of-/usr/ports/devel/chora/distinfo'
XMD5 (chora-1.0-RC1.tar.gz) = 17aa865991291315c44af1cb50ac98bf
END-of-/usr/ports/devel/chora/distinfo
echo c - /usr/ports/devel/chora/files
mkdir -p /usr/ports/devel/chora/files > /dev/null 2>&1
echo x - /usr/ports/devel/chora/files/patch-aa
sed 's/^X//' >/usr/ports/devel/chora/files/patch-aa << 'END-of-/usr/ports/devel/chora/files/patch-aa'
X--- config/cvsroots.php.dist.orig	Fri Jun  8 22:59:42 2001
X+++ config/cvsroots.php.dist	Tue Nov 27 22:42:41 2001
X@@ -27,6 +27,15 @@
X 
X $cvsroots = array();
X 
X+$cvsroots['myprojects'] = array(
X+    'name' => 'Here',
X+    'location' => '%%CVSROOT%%',
X+    'title' => 'To be configured in %%CONFDIR%%/cvsroots.php',
X+    'intro' => 'longIntro.txt',
X+    'default' => true
X+);
X+
X+/*
X $cvsroots['php4'] = array(
X     'name' => 'PHP4',
X     'location' => '/home/cvs/php4',
X@@ -48,5 +57,6 @@
X     'location' => '/home/cvs/openbsd',
X     'title' => 'OpenBSD CVS Repository'
X );
X+*/
X 
X ?>
END-of-/usr/ports/devel/chora/files/patch-aa
echo x - /usr/ports/devel/chora/files/httpd.conf.chora
sed 's/^X//' >/usr/ports/devel/chora/files/httpd.conf.chora << 'END-of-/usr/ports/devel/chora/files/httpd.conf.chora'
X# This is included in Apache's httpd.conf for Chora
X#
X# For security, don't serve pages from the Chora configuration and
X# library directories.
X#
X<Directory "/home/httpd/html/horde/chora/config">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/chora/lib">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/chora/locale">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/chora/po">
X    order deny,allow
X    deny from all
X</Directory>
X<Directory "/home/httpd/html/horde/chora/templates">
X    order deny,allow
X    deny from all
X</Directory>
X# End of Chora configuration ================
X
END-of-/usr/ports/devel/chora/files/httpd.conf.chora
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011203223500.A27A37525>