]> git.madduck.net Git - gitweb-conf.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

initial commit
authormartin f. krafft <madduck@madduck.net>
Wed, 3 Feb 2010 06:28:48 +0000 (07:28 +0100)
committermartin f. krafft <madduck@madduck.net>
Wed, 3 Feb 2010 06:56:22 +0000 (19:56 +1300)
footer.html [new file with mode: 0644]
gitweb.conf [new file with mode: 0644]
header.html [new file with mode: 0644]
local.css [new file with mode: 0644]

diff --git a/footer.html b/footer.html
new file mode 100644 (file)
index 0000000..383113a
--- /dev/null
@@ -0,0 +1,15 @@
+<div class="footer">
+  <h1>Legalese</h1>
+
+  <p>All content available in this repository is copyright &copy; martin f.
+  krafft, unless otherwise noted.</p>
+
+  <p>All files and their content are released under the terms of the <a
+    href="http://www.perlfoundation.org/artistic_license_2_0" target="_blank"
+    title="Artistic Licence 2.0 on perlfoundation.org">Artistic Licence 2.0</a>,
+  unless otherwise noted.</p>
+
+  <p>The operator of this repository shall not be held liable for offending
+  content in pages linking to or linked from these page, nor does he endorse
+  their content unless stated otherwise.</p>
+</div>
diff --git a/gitweb.conf b/gitweb.conf
new file mode 100644 (file)
index 0000000..0d69835
--- /dev/null
@@ -0,0 +1,39 @@
+$subdir = "madduck/pub";
+$confroot = "/srv/git/gitweb/git.madduck.net";
+$projectroot = "/srv/git/repos/$subdir";
+$git_temp = "/tmp";
+$site_header = "$confroot/header.html";
+$site_footer = "$confroot/footer.html";
+$projects_list = $projectroot;
+$default_projects_order = "age";
+@git_base_url_list=("git://git.madduck.net/$subdir", "ssh://git@git.madduck.net/$subdir");
+$logo = '/git-logo.png';
+$favicon = '/git-favicon.png';
+push @stylesheets, '/gitweb.css';
+push @stylesheets, '/local.css';
+$feature{'pathinfo'}{'default'} = [1];
+$feature{'forks'}{'default'} = [1];
+$prevent_xss = 1;
+
+my $gl_conf_compiled = "/srv/git/.gitolite/conf/gitolite.conf-compiled.pm";
+my $username = $cgi->remote_user;
+
+our %repos;
+die "parse $gl_conf_compiled failed: " . ($! or $@) unless do $gl_conf_compiled;
+
+$export_auth_hook = sub {
+#    open FILE, ">>/tmp/gitweb.auth" or die $!;
+
+    my $reponame = "$subdir/" . shift;
+    # gitweb passes us the full repo path; so we strip the beginning...
+    $reponame =~ s/\Q$projectroot\E\/?//;
+    # ...and the end, to get the repo name as it is specified in gitolite conf
+    $reponame =~ s/\.git$//;
+
+#    use Data::Dumper;
+#    print FILE Dumper($username, $reponame, $repos);
+#    close FILE;
+
+    return exists $repos{$reponame}{R}{$username}
+        || exists $repos{$reponame}{R}{'@all'};
+};
diff --git a/header.html b/header.html
new file mode 100644 (file)
index 0000000..92576a9
--- /dev/null
@@ -0,0 +1,18 @@
+<h1>madduck's git repository</h1>
+
+<p>Every one of the projects in this repository is available at the canonical
+URL <tt>git://git.madduck.net/madduck/pub/&lt;projectpath&gt;</tt> &mdash; see
+each project's metadata for the exact URL.</p>
+
+<p>All patches and comments are welcome. Please squash your changes to logical
+commits before using <tt>git-format-patch</tt> and <tt>git-send-email</tt> to
+<a
+  href="mailto:patches&#37;&#52;&#48;git&#46;madduck&#46;net">patches<span>&#64;</span>git<span>&#46;</span>madduck<span>&#46;</span>net</a>.
+If you'd read over the <a
+  href="http://repo.or.cz/w/git.git?a=blob;f=Documentation/SubmittingPatches;hb=HEAD"
+  target="_blank">Git project's submission guidelines</a> and adhered to them,
+I'd be especially grateful.</p>
+
+<p>SSH access, as well as push access can be <a
+  href="mailto:madduck&#37;&#52;&#48;git&#46;madduck&#46;net">individually
+  arranged</a>.</p>
diff --git a/local.css b/local.css
new file mode 100644 (file)
index 0000000..d848d7b
--- /dev/null
+++ b/local.css
@@ -0,0 +1,18 @@
+h1 {
+  padding: 8px 9px;
+  background-color: #d9d8d1;
+  letter-spacing: 0.10em;
+}
+
+p {
+  margin: 1em 9px;
+  width: 75%;
+}
+
+p.projsearch {
+  width: 100%;
+}
+
+div.footer {
+  font-size: smaller;
+}