[Frugalware-darcs] frugalware-current: git-1.5.2.2-2-x86_64

VMiklos vmiklos at frugalware.org
Mon Jun 25 12:55:01 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=frugalware-current;a=darcs_commitdiff;h=20070624205158-e2957-9dc6ed615d9d77e807c854f11d16c27d0b12b1cd.gz;

[git-1.5.2.2-2-x86_64
VMiklos <vmiklos at frugalware.org>**20070624205158
 - install the contrib subdir
 - fix path in the default post-receive hook
 - install and split gitweb
] {
hunk ./source/devel-extra/git/FrugalBuild 6
-pkgrel=1
+pkgrel=2
hunk ./source/devel-extra/git/FrugalBuild 14
-$url/git-manpages-$pkgver.tar.bz2)
-signatures=(${source[0]}.sign ${source[1]}.sign)
+$url/git-manpages-$pkgver.tar.bz2 \
+gitweb.modules.d gitweb.conf README.Frugalware)
+signatures=(${source[0]}.sign ${source[1]}.sign '' '' '')
+
+subpkgs=('gitweb')
+subdescs=('Web interface for Git.')
+subdepends=("git=$pkgver")
+subbackup=('etc/gitweb.conf etc/httpd/conf/modules.d/gitweb.conf')
+subgroups=('network-extra')
+subarchs=('i686 x86_64')
hunk ./source/devel-extra/git/FrugalBuild 28
-	Fsed 'prefix = $(HOME)' 'prefix = /usr' Makefile
+	# fix path, we do not put the contrib dir to the documentation folder
+	Fsed 'doc/' '' templates/hooks--post-receive
+	make configure || return 1
hunk ./source/devel-extra/git/FrugalBuild 39
+	# contrib dir
+	Fcprrel contrib /usr/share/git-core/
+
+	# gitweb
+	Fmkdir /var/www/gitweb
+	cp gitweb/git* $Fdestdir/var/www/gitweb
+	Ffile gitweb.modules.d /etc/httpd/conf/modules.d/gitweb.conf
+	Ffile /etc/gitweb.conf
+	Fsplit gitweb /etc /var
+
hunk ./source/devel-extra/git/FrugalBuild 57
+	Fdoc README.Frugalware
addfile ./source/devel-extra/git/README.Frugalware
hunk ./source/devel-extra/git/README.Frugalware 1
+=== gitweb
+
+If you want to setup a web interface for your git repos, then:
+
+* install the gitweb package
+* edit edit `/etc/gitweb.conf` so that `$projectroot` will point to the repo
+  directory
+* restart apache so that the gitweb configuration will be included.
addfile ./source/devel-extra/git/gitweb.conf
hunk ./source/devel-extra/git/gitweb.conf 1
+#
+# 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.
+# Must be an absolute filename (i.e., not relative to htdocs).
+#our $site_header = "";
+# HTML text to include at home page.
+# Must be an absolute filename (i.e., not relative to htdocs).
+#our $home_text = "/gitweb/indextext.html";
+# Filename of HTML text to include at bottom of each page.
+# Must be an absolute filename (i.e., not relative to htdocs).
+#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");
addfile ./source/devel-extra/git/gitweb.modules.d
hunk ./source/devel-extra/git/gitweb.modules.d 1
+<IfModule mod_alias.c>
+    Alias /gitweb/ /var/www/gitweb/
+</IfModule>
+
+<Directory /var/www/gitweb>
+    AllowOverride All
+    Options ExecCGI
+    SetEnv GITWEB_CONFIG /etc/gitweb.conf
+    DirectoryIndex gitweb.cgi
+    AddHandler cgi-script .cgi
+    <IfModule mod_access.c>
+        Order allow,deny
+	Allow from all
+    </IfModule>
+</Directory>
}


More information about the Frugalware-darcs mailing list