$OpenBSD: patch-install,v 1.3 2014/06/05 20:38:41 jasper Exp $
--- install.orig	Wed Oct 23 10:11:42 2013
+++ install	Wed Oct 23 10:12:34 2013
@@ -61,7 +61,7 @@ for my $d ($ln, $to) {
 }
 
 chdir($ENV{GL_BINDIR});
-my $version = `git describe --tags --long --dirty=-dt 2>/dev/null`;
+my $version = "${GH_VER}";
 unless ($version =~ /^v\d/) {
     print STDERR "git describe failed; cannot deduce version number\n";
     $version = "(unknown)";
@@ -69,7 +69,7 @@ unless ($version =~ /^v\d/) {
 
 if ($to) {
     _mkdir($to);
-    system("cp -RpP * $to");
+    system("umask 022 && pax -rw . $to");
     _print( "$to/VERSION", $version );
 } elsif ($ln) {
     ln_sf( $ENV{GL_BINDIR}, "gitolite", $ln );
