--- /dev/null
+<div class="footer">
+ <h1>Legalese</h1>
+
+ <p>All content available in this repository is copyright © 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>
--- /dev/null
+$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'};
+};
--- /dev/null
+<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/<projectpath></tt> — 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%40git.madduck.net">patches<span>@</span>git<span>.</span>madduck<span>.</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%40git.madduck.net">individually
+ arranged</a>.</p>