summaryrefslogtreecommitdiff
path: root/www/viewvc
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2006-10-21 09:05:44 +0000
committeradrianp <adrianp@pkgsrc.org>2006-10-21 09:05:44 +0000
commit9eabb1363ca87e6345950ce8e22642fd27b29511 (patch)
tree9d2bb9e669fdf8558c42f0abfd26874eb02e77f1 /www/viewvc
parentbf2f394446a811f3f32ed216c1f47c6baf33f1fb (diff)
downloadpkgsrc-9eabb1363ca87e6345950ce8e22642fd27b29511.tar.gz
ViewVC is a browser interface for CVS and Subversion version control
repositories. It generates templatized HTML to present navigable directory, revision, and change log listings. It can display specific versions of files as well as diffs between those versions. Basically, ViewVC provides the bulk of the report-like functionality you expect out of your version control tool, but much more prettily than the average textual command-line program output.
Diffstat (limited to 'www/viewvc')
-rw-r--r--www/viewvc/DESCR6
-rw-r--r--www/viewvc/Makefile52
-rw-r--r--www/viewvc/PLIST139
-rw-r--r--www/viewvc/distinfo7
-rw-r--r--www/viewvc/options.mk28
-rw-r--r--www/viewvc/patches/patch-aa22
-rw-r--r--www/viewvc/patches/patch-ab54
7 files changed, 308 insertions, 0 deletions
diff --git a/www/viewvc/DESCR b/www/viewvc/DESCR
new file mode 100644
index 00000000000..95b0df42368
--- /dev/null
+++ b/www/viewvc/DESCR
@@ -0,0 +1,6 @@
+ViewVC is a browser interface for CVS and Subversion version control
+repositories. It generates templatized HTML to present navigable directory,
+revision, and change log listings. It can display specific versions of files as
+well as diffs between those versions. Basically, ViewVC provides the bulk of the
+report-like functionality you expect out of your version control tool, but much
+more prettily than the average textual command-line program output.
diff --git a/www/viewvc/Makefile b/www/viewvc/Makefile
new file mode 100644
index 00000000000..e5c1b8555b9
--- /dev/null
+++ b/www/viewvc/Makefile
@@ -0,0 +1,52 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/10/21 09:05:44 adrianp Exp $
+#
+
+DISTNAME= viewvc-1.0.3
+CATEGORIES= devel www
+MASTER_SITES= http://viewvc.tigris.org/files/documents/3330/34803/
+
+MAINTAINER= adrianp@NetBSD.org
+HOMEPAGE= http://www.viewvc.org/
+COMMENT= Viewing the content of CVS/SVN repositories with a Webbrowser
+
+BOOTSTRAP_DEPENDS+= wget-[0-9]*:../../net/wget
+PYTHON_PATCH_SCRIPTS= viewvc-install bin/* bin/cgi/*.cgi lib/*.py
+
+.if !exists(/usr/bin/rlog)
+DEPENDS+= rcs-[0-9]*:../../devel/rcs
+.endif
+
+NO_BUILD= YES
+FETCH_CMD= ${PREFIX}/bin/wget
+VIEWVCDIR= share/viewvc
+PLIST_SUBST+= VIEWVCDIR=${VIEWVCDIR:Q}
+
+CONF_FILES= ${PREFIX}/share/examples/viewvc/viewvc.conf \
+ ${PREFIX}/${VIEWVCDIR:Q}/viewvc.conf
+CONF_FILES+= ${PREFIX}/share/examples/viewvc/cvsgraph.conf \
+ ${PREFIX}/${VIEWVCDIR:Q}/cvsgraph.conf
+
+.include "options.mk"
+
+SUBST_CLASSES+= conf
+SUBST_STAGE.conf= post-patch
+SUBST_MESSAGE.conf= Fixing configuration files.
+SUBST_FILES.conf= viewvc.conf.dist
+SUBST_SED.conf= -e "s|@VIEWVCDIR@|${VIEWVCDIR}|g"
+SUBST_SED.conf+= -e "s|@PREFIX@|${PREFIX}|g"
+SUBST_SED.conf+= -e "s|@PHP_OPT@|${PHP_OPT}|g"
+SUBST_SED.conf+= -e "s|@CVSGRAPH_OPT@|${CVSGRAPH_OPT}|g"
+
+do-install:
+ (cd ${WRKSRC} && \
+ ${PYTHONBIN} \
+ viewvc-install --prefix=${PREFIX}/${VIEWVCDIR} --destdir="")
+
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/viewvc
+ ${INSTALL_DATA} ${WRKSRC}/viewvc.conf.dist \
+ ${PREFIX}/share/examples/viewvc/viewvc.conf
+ ${INSTALL_DATA} ${WRKSRC}/cvsgraph.conf.dist \
+ ${PREFIX}/share/examples/viewvc/cvsgraph.conf
+
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/viewvc/PLIST b/www/viewvc/PLIST
new file mode 100644
index 00000000000..d32cb533a9e
--- /dev/null
+++ b/www/viewvc/PLIST
@@ -0,0 +1,139 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/10/21 09:05:44 adrianp Exp $
+share/examples/viewvc/viewvc.conf
+share/examples/viewvc/cvsgraph.conf
+${VIEWVCDIR}/bin/cgi/query.cgi
+${VIEWVCDIR}/bin/cgi/viewvc.cgi
+${VIEWVCDIR}/bin/cvsdbadmin
+${VIEWVCDIR}/bin/loginfo-handler
+${VIEWVCDIR}/bin/make-database
+${VIEWVCDIR}/bin/mod_python/.htaccess
+${VIEWVCDIR}/bin/mod_python/handler.py
+${VIEWVCDIR}/bin/mod_python/query.py
+${VIEWVCDIR}/bin/mod_python/viewvc.py
+${VIEWVCDIR}/bin/standalone.py
+${VIEWVCDIR}/bin/svndbadmin
+${VIEWVCDIR}/lib/PyFontify.py
+${VIEWVCDIR}/lib/PyFontify.pyc
+${VIEWVCDIR}/lib/accept.py
+${VIEWVCDIR}/lib/accept.pyc
+${VIEWVCDIR}/lib/blame.py
+${VIEWVCDIR}/lib/blame.pyc
+${VIEWVCDIR}/lib/compat.py
+${VIEWVCDIR}/lib/compat.pyc
+${VIEWVCDIR}/lib/compat_difflib.py
+${VIEWVCDIR}/lib/compat_difflib.pyc
+${VIEWVCDIR}/lib/compat_ndiff.py
+${VIEWVCDIR}/lib/compat_ndiff.pyc
+${VIEWVCDIR}/lib/config.py
+${VIEWVCDIR}/lib/config.pyc
+${VIEWVCDIR}/lib/cvsdb.py
+${VIEWVCDIR}/lib/cvsdb.pyc
+${VIEWVCDIR}/lib/dbi.py
+${VIEWVCDIR}/lib/dbi.pyc
+${VIEWVCDIR}/lib/debug.py
+${VIEWVCDIR}/lib/debug.pyc
+${VIEWVCDIR}/lib/ezt.py
+${VIEWVCDIR}/lib/ezt.pyc
+${VIEWVCDIR}/lib/idiff.py
+${VIEWVCDIR}/lib/idiff.pyc
+${VIEWVCDIR}/lib/popen.py
+${VIEWVCDIR}/lib/popen.pyc
+${VIEWVCDIR}/lib/py2html.py
+${VIEWVCDIR}/lib/py2html.pyc
+${VIEWVCDIR}/lib/query.py
+${VIEWVCDIR}/lib/query.pyc
+${VIEWVCDIR}/lib/sapi.py
+${VIEWVCDIR}/lib/sapi.pyc
+${VIEWVCDIR}/lib/vclib/__init__.py
+${VIEWVCDIR}/lib/vclib/__init__.pyc
+${VIEWVCDIR}/lib/vclib/bincvs/__init__.py
+${VIEWVCDIR}/lib/vclib/bincvs/__init__.pyc
+${VIEWVCDIR}/lib/vclib/ccvs/__init__.py
+${VIEWVCDIR}/lib/vclib/ccvs/__init__.pyc
+${VIEWVCDIR}/lib/vclib/ccvs/blame.py
+${VIEWVCDIR}/lib/vclib/ccvs/blame.pyc
+${VIEWVCDIR}/lib/vclib/ccvs/rcsparse/__init__.py
+${VIEWVCDIR}/lib/vclib/ccvs/rcsparse/__init__.pyc
+${VIEWVCDIR}/lib/vclib/ccvs/rcsparse/common.py
+${VIEWVCDIR}/lib/vclib/ccvs/rcsparse/common.pyc
+${VIEWVCDIR}/lib/vclib/ccvs/rcsparse/debug.py
+${VIEWVCDIR}/lib/vclib/ccvs/rcsparse/debug.pyc
+${VIEWVCDIR}/lib/vclib/ccvs/rcsparse/default.py
+${VIEWVCDIR}/lib/vclib/ccvs/rcsparse/default.pyc
+${VIEWVCDIR}/lib/vclib/ccvs/rcsparse/texttools.py
+${VIEWVCDIR}/lib/vclib/ccvs/rcsparse/texttools.pyc
+${VIEWVCDIR}/lib/vclib/svn/__init__.py
+${VIEWVCDIR}/lib/vclib/svn/__init__.pyc
+${VIEWVCDIR}/lib/vclib/svn_ra/__init__.py
+${VIEWVCDIR}/lib/vclib/svn_ra/__init__.pyc
+${VIEWVCDIR}/lib/viewvc.py
+${VIEWVCDIR}/lib/viewvc.pyc
+${VIEWVCDIR}/lib/win32popen.py
+${VIEWVCDIR}/lib/win32popen.pyc
+${VIEWVCDIR}/templates/annotate.ezt
+${VIEWVCDIR}/templates/diff.ezt
+${VIEWVCDIR}/templates/dir_new.ezt
+${VIEWVCDIR}/templates/directory.ezt
+${VIEWVCDIR}/templates/docroot/help.css
+${VIEWVCDIR}/templates/docroot/help_dirview.html
+${VIEWVCDIR}/templates/docroot/help_log.html
+${VIEWVCDIR}/templates/docroot/help_query.html
+${VIEWVCDIR}/templates/docroot/help_rootview.html
+${VIEWVCDIR}/templates/docroot/images/annotate.png
+${VIEWVCDIR}/templates/docroot/images/back.png
+${VIEWVCDIR}/templates/docroot/images/back_small.png
+${VIEWVCDIR}/templates/docroot/images/broken.png
+${VIEWVCDIR}/templates/docroot/images/chalk.jpg
+${VIEWVCDIR}/templates/docroot/images/cvsgraph_16x16.png
+${VIEWVCDIR}/templates/docroot/images/cvsgraph_32x32.png
+${VIEWVCDIR}/templates/docroot/images/diff.png
+${VIEWVCDIR}/templates/docroot/images/dir.png
+${VIEWVCDIR}/templates/docroot/images/down.png
+${VIEWVCDIR}/templates/docroot/images/download.png
+${VIEWVCDIR}/templates/docroot/images/feed-icon-16x16.jpg
+${VIEWVCDIR}/templates/docroot/images/forward.png
+${VIEWVCDIR}/templates/docroot/images/list.png
+${VIEWVCDIR}/templates/docroot/images/log.png
+${VIEWVCDIR}/templates/docroot/images/logo.png
+${VIEWVCDIR}/templates/docroot/images/text.png
+${VIEWVCDIR}/templates/docroot/images/up.png
+${VIEWVCDIR}/templates/docroot/images/view.png
+${VIEWVCDIR}/templates/docroot/styles.css
+${VIEWVCDIR}/templates/error.ezt
+${VIEWVCDIR}/templates/graph.ezt
+${VIEWVCDIR}/templates/include/diff_form.ezt
+${VIEWVCDIR}/templates/include/dir_footer.ezt
+${VIEWVCDIR}/templates/include/dir_header.ezt
+${VIEWVCDIR}/templates/include/file_header.ezt
+${VIEWVCDIR}/templates/include/footer.ezt
+${VIEWVCDIR}/templates/include/header.ezt
+${VIEWVCDIR}/templates/include/log_footer.ezt
+${VIEWVCDIR}/templates/include/log_header.ezt
+${VIEWVCDIR}/templates/include/paging.ezt
+${VIEWVCDIR}/templates/include/pathrev_form.ezt
+${VIEWVCDIR}/templates/include/sort.ezt
+${VIEWVCDIR}/templates/log.ezt
+${VIEWVCDIR}/templates/log_table.ezt
+${VIEWVCDIR}/templates/markup.ezt
+${VIEWVCDIR}/templates/query.ezt
+${VIEWVCDIR}/templates/query_form.ezt
+${VIEWVCDIR}/templates/query_results.ezt
+${VIEWVCDIR}/templates/revision.ezt
+${VIEWVCDIR}/templates/roots.ezt
+${VIEWVCDIR}/templates/rss.ezt
+@dirrm ${VIEWVCDIR}/templates/include
+@dirrm ${VIEWVCDIR}/templates/docroot/images
+@dirrm ${VIEWVCDIR}/templates/docroot
+@dirrm ${VIEWVCDIR}/templates
+@dirrm ${VIEWVCDIR}/lib/vclib/svn_ra
+@dirrm ${VIEWVCDIR}/lib/vclib/svn
+@dirrm ${VIEWVCDIR}/lib/vclib/ccvs/rcsparse
+@dirrm ${VIEWVCDIR}/lib/vclib/ccvs
+@dirrm ${VIEWVCDIR}/lib/vclib/bincvs
+@dirrm ${VIEWVCDIR}/lib/vclib
+@dirrm ${VIEWVCDIR}/lib
+@dirrm ${VIEWVCDIR}/bin/mod_python
+@dirrm ${VIEWVCDIR}/bin/cgi
+@dirrm ${VIEWVCDIR}/bin
+@unexec ${RMDIR} %D/${VIEWVCDIR} 2>/dev/null || ${TRUE}
+@dirrm share/examples/viewvc
diff --git a/www/viewvc/distinfo b/www/viewvc/distinfo
new file mode 100644
index 00000000000..8ef9c1a0e6d
--- /dev/null
+++ b/www/viewvc/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/10/21 09:05:44 adrianp Exp $
+
+SHA1 (viewvc-1.0.3.tar.gz) = 4523be70f3cf743991201b82f93fcd7f9799b955
+RMD160 (viewvc-1.0.3.tar.gz) = 2e36a2f1228b0648ac003c75469a1bce56e024f3
+Size (viewvc-1.0.3.tar.gz) = 406570 bytes
+SHA1 (patch-aa) = 0dffa89ce75ed0aae1b6b322a469da4157b77d9f
+SHA1 (patch-ab) = c8562a82ea747690d748807503d826bbc0a063ab
diff --git a/www/viewvc/options.mk b/www/viewvc/options.mk
new file mode 100644
index 00000000000..ba0ce693da0
--- /dev/null
+++ b/www/viewvc/options.mk
@@ -0,0 +1,28 @@
+# $NetBSD: options.mk,v 1.1.1.1 2006/10/21 09:05:44 adrianp Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.viewvc
+
+PKG_SUPPORTED_OPTIONS= cvsgraph viewvc-php
+
+.include "../../mk/bsd.options.mk"
+.include "../../lang/php/phpversion.mk"
+
+###
+### Use cvsgraph for printing pretty little pictures
+###
+.if !empty(PKG_OPTIONS:Mcvsgraph)
+DEPENDS+= cvsgraph-[0-9]*:../../devel/cvsgraph
+CVSGRAPH_OPT= 1
+.else
+CVSGRAPH_OPT= 0
+.endif
+
+###
+### Use php to colorize .php and .inc files
+###
+.if !empty(PKG_OPTIONS:Mviewvc-php)
+.include "${PHPPKGSRCDIR}/buildlink3.mk"
+PHP_OPT= 1
+.else
+PHP_OPT= 0
+.endif
diff --git a/www/viewvc/patches/patch-aa b/www/viewvc/patches/patch-aa
new file mode 100644
index 00000000000..f5ab7ba5ebd
--- /dev/null
+++ b/www/viewvc/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/10/21 09:05:44 adrianp Exp $
+
+--- viewvc-install.orig 2006-03-26 21:23:14.000000000 +0100
++++ viewvc-install
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/pkg/bin/python2.4
+ # -*- Mode: python -*-
+ #
+ # Copyright (C) 1999-2006 The ViewCVS Group. All Rights Reserved.
+@@ -67,11 +67,6 @@ FILE_INFO_LIST = [
+ ("bin/mod_python/handler.py", "bin/mod_python/handler.py", 0755, 1, 0, 0),
+ ("bin/mod_python/.htaccess", "bin/mod_python/.htaccess", 0755, 0, 0, 0),
+ ("bin/standalone.py", "bin/standalone.py", 0755, 1, 0, 0),
+- ("viewvc.conf.dist", "viewvc.conf", 0644, 0,
+- """Note: If you are upgrading from viewcvs-0.7 or earlier:
+-The section [text] has been removed from viewcvs.conf. The functionality
+-went into the new files in subdirectory templates.""", 0),
+- ("cvsgraph.conf.dist", "cvsgraph.conf", 0644, 0, 1, 0),
+
+ ("bin/loginfo-handler", "bin/loginfo-handler", 0755, 1, 0, 0),
+ ("bin/cvsdbadmin", "bin/cvsdbadmin", 0755, 1, 0, 0),
diff --git a/www/viewvc/patches/patch-ab b/www/viewvc/patches/patch-ab
new file mode 100644
index 00000000000..615ae0923b9
--- /dev/null
+++ b/www/viewvc/patches/patch-ab
@@ -0,0 +1,54 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/10/21 09:05:44 adrianp Exp $
+
+--- viewvc.conf.dist.orig 2006-09-28 02:13:36.000000000 +0100
++++ viewvc.conf.dist
+@@ -135,7 +135,7 @@ use_rcsparse = 0
+ # uncomment this option and point it at a MIME type file.
+ #
+ # For example, you can use the mime.types from apache here:
+-#mime_types_file = /usr/local/apache/conf/mime.types
++#mime_types_file = @PREFIX@/etc/httpd/mime.types
+
+ # This address is shown in the footer of the generated pages.
+ # It must be replaced with the address of the local repository maintainer.
+@@ -456,14 +456,14 @@ highlight_line_numbers = 1
+ highlight_convert_tabs = 2
+
+ # use php to colorize .php and .inc files?
+-use_php = 0
++use_php = @PHP_OPT@
+
+ # path to php executable
+ # (This should be set to the path of a PHP CLI executable, not the path
+ # to a CGI executable. If you use a CGI executable, you may see "no input file
+ # specified" or "force-cgi-redirect" errors instead of colorized source. The
+ # output of "php -v" tells you whether an given executable is CLI or CGI.)
+-php_exe_path = php
++php_exe_path = @PREFIX@/bin/php
+ # php_exe_path = /usr/local/bin/php
+ # php_exe_path = C:\Program Files\php\cli\php.exe
+
+@@ -477,20 +477,20 @@ allow_tar = 0
+ # Use CvsGraph. See http://www.akhphd.au.dk/~bertho/cvsgraph/ for
+ # documentation and download.
+ #
+-use_cvsgraph = 0
++use_cvsgraph = @CVSGRAPH_OPT@
+ # use_cvsgraph = 1
+
+ #
+ # if the cvsgraph program is not on the path, set this value
+ #
+ cvsgraph_path =
+-# cvsgraph_path = /usr/local/bin/
++# cvsgraph_path = @PREFIX@/bin/
+
+ #
+ # Location of the customized cvsgraph configuration file.
+ # You will need an absolute pathname here:
+ #
+-cvsgraph_conf = cvsgraph.conf
++cvsgraph_conf = @PREFIX@/@VIEWVCDIR@/cvsgraph.conf
+
+ #
+ # Set to enable regular expression search of all files in a directory