# ChangeLog for www-apps/gitweb
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apps/gitweb/ChangeLog,v 1.15 2006/11/14 10:44:02 lu_zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apps/gitweb/ChangeLog,v 1.16 2006/11/16 12:37:10 ferdy Exp $
+
+*gitweb-1.4.4 (16 Nov 2006)
+
+ 16 Nov 2006; Fernando J. Pereda <ferdy@gentoo.org> files/README.gentoo,
+ +files/apache.htaccess, -gitweb-1.4.3.5.ebuild, +gitweb-1.4.4.ebuild:
+ New upstream version. Remove 1.4.3.5
14 Nov 2006; Luca Barbato <lu_zero@gentoo.org> gitweb-1.4.3.5.ebuild:
Marked ~ppc and ~ppc64
gitweb.cgi configuration
------------------------
-In the directory where gitweb is installed you have to create at least
-one file named ``index/index.aux``. This file defines the repositories
-gitweb should show. The example below defines a project located in
-``/var/git/test-project.git`` owned by ``Some Project Developer``.
-
- test-project.git Some+Project+Developer
-
-( Note the use of the plus sign (``+``) )
+All git repositories under ``/var/git/`` will be listed by gitweb.
Also you may want to create the file ``indextext.html``. This file will
be included in the header of the project listing page in gitweb.
+If they exist, ``header.html`` and ``footer.html`` files will be
+included as the header and footer of every gitweb page respectively.
+
Webserver configuration
-----------------------
-If you use apache you may want to add the following to a ``.htaccess``
-file in the directory where gitweb is installed.
-
- DirectoryIndex gitweb.cgi
-
-In lighttpd you may want to add ``gitweb.cgi`` to your indexfiles in
+Under lighttpd you may want to add ``gitweb.cgi`` to your indexfiles in
your ``lighttpd.conf`` as follows:
server.indexfiles += ("gitweb.cgi")
+We already provide a ``.htaccess`` file that should have everything
+needed to run gitweb.
+
.. vim: set tw=72 sw=4 et ft=glep : ..
--- /dev/null
+Options +ExecCGI -Indexes
+SetHandler cgi-script
+DirectoryIndex gitweb.cgi
--- /dev/null
+MD5 3bf19bd4c5746c5dc74f19cf167f4eb1 git-1.4.4.tar.bz2 886549
+RMD160 99352e32da5b79928d85e3176cc5abe5013ba474 git-1.4.4.tar.bz2 886549
+SHA256 ae878e93dbade210601b47fe56a7a36c84ae8a28457c5f415626f829e511fe17 git-1.4.4.tar.bz2 886549
--- /dev/null
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apps/gitweb/gitweb-1.4.4.ebuild,v 1.1 2006/11/16 12:37:10 ferdy Exp $
+
+inherit webapp
+
+GIT_VERSION="${PV}"
+
+DESCRIPTION="Web interface to GIT repositories"
+HOMEPAGE="http://git.or.cz/"
+SRC_URI="mirror://kernel/software/scm/git/git-${GIT_VERSION}.tar.bz2"
+
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+>=dev-util/git-${PV}"
+
+S="${WORKDIR}"/git-${GIT_VERSION}/gitweb
+
+src_compile() {
+ sed -i \
+ -e 's~^\(GITWEB_PROJECTROOT =\).*$~\1 /var/git~g' \
+ -e 's~^\(GITWEB_SITE_HEADER =\).*$~\1 header.html~g' \
+ -e 's~^\(GITWEB_SITE_FOOTER =\).*$~\1 footer.html~g' \
+ ../Makefile || die "failed to sed Makefile"
+ emake -C .. prefix=/usr gitweb/gitweb.cgi || die "emake failed"
+}
+
+src_install() {
+ webapp_src_preinst
+ dodoc README "${FILESDIR}"/README.gentoo
+ rm -f README
+
+ cp gitweb.{cgi,css} git-{favicon,logo}.png "${D}/${MY_HTDOCSDIR}"
+ cp "${FILESDIR}"/apache.htaccess "${D}/${MY_HTDOCSDIR}"/.htaccess
+
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_src_install
+}