summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/gitweb/DESCR4
-rw-r--r--www/gitweb/MESSAGE17
-rw-r--r--www/gitweb/Makefile49
-rw-r--r--www/gitweb/PLIST11
-rw-r--r--www/gitweb/distinfo5
-rw-r--r--www/gitweb/files/gitweb.conf59
6 files changed, 145 insertions, 0 deletions
diff --git a/www/gitweb/DESCR b/www/gitweb/DESCR
new file mode 100644
index 00000000000..7510432410a
--- /dev/null
+++ b/www/gitweb/DESCR
@@ -0,0 +1,4 @@
+gitweb provides an easy to use and full-fledged web interface to
+your Git repositories. It allows users to browse the contents of
+all served projects, including the ability to inspect individual
+files and their history for any of the available branches.
diff --git a/www/gitweb/MESSAGE b/www/gitweb/MESSAGE
new file mode 100644
index 00000000000..b74c7d694e5
--- /dev/null
+++ b/www/gitweb/MESSAGE
@@ -0,0 +1,17 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2007/03/22 17:15:36 jmmv Exp $
+
+The gitweb configuration file is located at:
+
+ ${CONFFILE}
+
+At the very least you should set the `projectroot' variable in it to point
+to where your git repositories are.
+
+After that, you might be able to access the interface at the URL shown
+below, assuming that you are using the default location for Apache's
+htdocs:
+
+ http://localhost/cgi-bin/cgiweb.cgi
+
+===========================================================================
diff --git a/www/gitweb/Makefile b/www/gitweb/Makefile
new file mode 100644
index 00000000000..432293e3006
--- /dev/null
+++ b/www/gitweb/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/03/22 17:15:36 jmmv Exp $
+#
+
+DISTNAME= git-1.5.0.3
+PKGNAME= ${DISTNAME:S/git/gitweb/}
+CATEGORIES= www
+MASTER_SITES= http://www.kernel.org/pub/software/scm/git/
+
+MAINTAINER= jmmv@NetBSD.org
+HOMEPAGE= http://git.or.cz/
+COMMENT= Web interface for GIT repositories
+
+DEPENDS+= apache{,2,22}-[0-9]*:../../www/apache22
+DEPENDS+= scm${DISTNAME:S/-/>=/}:../../devel/scmgit
+
+USE_TOOLS+= gmake perl:run
+
+BUILD_TARGET= gitweb/gitweb.cgi
+MAKE_FLAGS= prefix=${PREFIX}
+MAKE_FLAGS+= GITWEB_FAVICON=/gitweb/git-favicon.png
+MAKE_FLAGS+= GITWEB_CONFIG=${GITWEB_CONFIG}
+MAKE_FLAGS+= GITWEB_CSS=/gitweb/gitweb.css
+MAKE_FLAGS+= GITWEB_HOMETEXT=/gitweb/indextext.html
+MAKE_FLAGS+= GITWEB_LOGO=/gitweb/git-logo.png
+MAKE_FLAGS+= PERL_PATH=${PERL5:Q}
+
+GITWEB_CONFIG= ${PKG_SYSCONFDIR}/gitweb.conf
+GITWEB_CGIBIN= ${PREFIX}/libexec/cgi-bin
+GITWEB_HTDOCS= ${PREFIX}/share/httpd/htdocs/gitweb
+GITWEB_EGDIR= ${PREFIX}/share/examples/gitweb
+
+CONF_FILES= ${GITWEB_EGDIR}/gitweb.conf ${PKG_SYSCONFDIR}/gitweb.conf
+MESSAGE_SUBST+= CONFFILE=${PKG_SYSCONFDIR}/gitweb.conf
+
+INSTALLATION_DIRS= libexec/cgi-bin share/httpd/htdocs
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/gitweb/gitweb.cgi ${GITWEB_CGIBIN}
+ ${INSTALL_DATA_DIR} ${GITWEB_HTDOCS}
+.for f in git-favicon.png git-logo.png gitweb.css
+ ${INSTALL_DATA} ${WRKSRC}/gitweb/${f} ${GITWEB_HTDOCS}
+.endfor
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gitweb
+ ${INSTALL_DATA} ${WRKSRC}/gitweb/README \
+ ${PREFIX}/share/doc/gitweb
+ ${INSTALL_DATA_DIR} ${GITWEB_EGDIR}
+ ${INSTALL_DATA} ${FILESDIR}/gitweb.conf ${GITWEB_EGDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/gitweb/PLIST b/www/gitweb/PLIST
new file mode 100644
index 00000000000..99978d268f1
--- /dev/null
+++ b/www/gitweb/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/03/22 17:15:36 jmmv Exp $
+libexec/cgi-bin/gitweb.cgi
+share/doc/gitweb/README
+share/examples/gitweb/gitweb.conf
+share/httpd/htdocs/gitweb/git-favicon.png
+share/httpd/htdocs/gitweb/git-logo.png
+share/httpd/htdocs/gitweb/gitweb.css
+@dirrm share/httpd/htdocs/gitweb
+@dirrm share/httpd/htdocs
+@dirrm share/examples/gitweb
+@dirrm share/doc/gitweb
diff --git a/www/gitweb/distinfo b/www/gitweb/distinfo
new file mode 100644
index 00000000000..deccb191833
--- /dev/null
+++ b/www/gitweb/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/03/22 17:15:36 jmmv Exp $
+
+SHA1 (git-1.5.0.3.tar.gz) = a5efd2cd36daad60718ed9b1f5a4f0de1eade25c
+RMD160 (git-1.5.0.3.tar.gz) = 2af313d5414770abad82babd0b4aee9b7e0bbc5b
+Size (git-1.5.0.3.tar.gz) = 1245187 bytes
diff --git a/www/gitweb/files/gitweb.conf b/www/gitweb/files/gitweb.conf
new file mode 100644
index 00000000000..136102c61c6
--- /dev/null
+++ b/www/gitweb/files/gitweb.conf
@@ -0,0 +1,59 @@
+#
+# gitweb.conf
+#
+# Configuration file for the web interface to GIT.
+#
+# This file is a Perl script that is executed by the gitweb interface
+# after the defaults are set. To override a setting, just uncomment
+# it here and set it to the appropriate value.
+#
+
+# Core git executable to use.
+# This can just be "git" if your webserver has a sensible PATH.
+#our $GIT = "/path/to/git";
+
+# Absolute fs-path which will be prepended to the project path.
+# This is where your GIT repositories live in.
+#our $projectroot = "/pub/scm";
+
+# Target of the home link on top of all pages.
+#our $home_link = $my_uri || "/";
+
+# String of the home link on top of all pages.
+#our $home_link_str = "projects";
+
+# Name of your site or organization to appear in page titles.
+# Replace this with something more descriptive for clearer bookmarks.
+#our $site_name = ""
+
+# Filename of HTML text to include at top of each page.
+#our $site_header = "";
+# HTML text to include at home page.
+#our $home_text = "/gitweb/indextext.html";
+# Filename of HTML text to include at bottom of each page.
+#our $site_footer = "";
+
+# URI of the stylesheet to use.
+#our $stylesheet = "/gitweb/gitweb.css";
+# URI of GIT logo (72x27 size).
+#our $logo = "/gitweb/git-logo.png";
+# URI of GIT favicon, assumed to be image/png type.
+#our $favicon = "/gitweb/git-favicon.png";
+
+# URI and label (title) of GIT logo link.
+#our $logo_url = "http://git.or.cz/";
+#our $logo_label = "git homepage";
+
+# Source of projects list.
+#our $projects_list = "";
+
+# Show repository only if this file exists.
+# Only effective if this variable evaluates to true.
+#our $export_ok = "";
+
+# Only allow viewing of repositories also shown on the overview page.
+#our $strict_export = "";
+
+# List of git base URLs used for URL to where fetch project from,
+# i.e. full URL is "$git_base_url/$project"
+#our @git_base_url_list = grep { $_ ne '' } ("/some/url");