import gitolite 3.5.1

Gitolite is an access control layer on top of git.
Here are the features that most people see:

* Use a single unix user ("real" user) on the server.
* Provide access to many gitolite users.
* Control access to many git repositories.

ok aja@
This commit is contained in:
jasper 2013-04-22 06:48:25 +00:00
parent 765eea3860
commit d7c210b6e8
6 changed files with 178 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/04/22 06:48:25 jasper Exp $
PKG_ARCH= *
COMMENT= secure hosting of Git repositories
VERSION= 3.5.1
DISTNAME= gitolite-${VERSION}
CATEGORIES= sysutils devel
HOMEPAGE= https://github.com/sitaramc/gitolite/
MAINTAINER= Jasper Lievisse Adriaanse <jasper@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= http://distfiles.nl/
RUN_DEPENDS= devel/git
NO_BUILD= Yes
NO_TEST= Yes
SUBST_VARS+= VERSION
GL_DIR= ${PREFIX}/libexec/gitolite/
do-install:
${SUBST_CMD} ${WRKSRC}/install
${INSTALL_DATA_DIR} ${GL_DIR}
perl ${WRKSRC}/install -to ${GL_DIR}
cd ${PREFIX}/bin/ && ln -s ../libexec/gitolite/gitolite
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (gitolite-3.5.1.tar.gz) = B31NpWLRszGb0hkWRhyA3/MrTocerIBz/08ZMV2mTvc=
SIZE (gitolite-3.5.1.tar.gz) = 128671

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-install,v 1.1.1.1 2013/04/22 06:48:25 jasper Exp $
--- install.orig Wed Mar 27 23:22:56 2013
+++ install Mon Apr 22 08:46:21 2013
@@ -61,11 +61,11 @@ for my $d ($ln, $to) {
}
chdir($ENV{GL_BINDIR});
-my $version = `git describe --tags --long --dirty=-dt`;
+my $version = "${VERSION}";
if ($to) {
_mkdir($to);
- system("cp -a * $to");
+ system("umask 022 && pax -rw . $to");
_print( "$to/VERSION", $version );
} elsif ($ln) {
ln_sf( $ENV{GL_BINDIR}, "gitolite", $ln );

View File

@ -0,0 +1,6 @@
Gitolite is an access control layer on top of git.
Here are the features that most people see:
* Use a single unix user ("real" user) on the server.
* Provide access to many gitolite users.
* Control access to many git repositories.

View File

@ -0,0 +1,91 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/04/22 06:48:25 jasper Exp $
bin/gitolite
libexec/gitolite/
libexec/gitolite/VERSION
libexec/gitolite/VREF/
libexec/gitolite/VREF/COUNT
libexec/gitolite/VREF/EMAIL-CHECK
libexec/gitolite/VREF/FILETYPE
libexec/gitolite/VREF/MAX_NEWBIN_SIZE
libexec/gitolite/VREF/MERGE-CHECK
libexec/gitolite/VREF/VOTES
libexec/gitolite/VREF/lock
libexec/gitolite/VREF/partial-copy
libexec/gitolite/VREF/refex-expr
libexec/gitolite/commands/
libexec/gitolite/commands/D
libexec/gitolite/commands/access
libexec/gitolite/commands/create
libexec/gitolite/commands/creator
libexec/gitolite/commands/desc
libexec/gitolite/commands/fork
libexec/gitolite/commands/git-config
libexec/gitolite/commands/help
libexec/gitolite/commands/htpasswd
libexec/gitolite/commands/info
libexec/gitolite/commands/list-dangling-repos
libexec/gitolite/commands/lock
libexec/gitolite/commands/mirror
libexec/gitolite/commands/owns
libexec/gitolite/commands/perms
libexec/gitolite/commands/print-default-rc
libexec/gitolite/commands/push
libexec/gitolite/commands/rsync
libexec/gitolite/commands/sshkeys-lint
libexec/gitolite/commands/sskm
libexec/gitolite/commands/sudo
libexec/gitolite/commands/svnserve
libexec/gitolite/commands/symbolic-ref
libexec/gitolite/commands/who-pushed
libexec/gitolite/commands/writable
libexec/gitolite/gitolite
libexec/gitolite/gitolite-shell
libexec/gitolite/lib/
libexec/gitolite/lib/Gitolite/
libexec/gitolite/lib/Gitolite/Common.pm
libexec/gitolite/lib/Gitolite/Conf/
libexec/gitolite/lib/Gitolite/Conf.pm
libexec/gitolite/lib/Gitolite/Conf/Explode.pm
libexec/gitolite/lib/Gitolite/Conf/Load.pm
libexec/gitolite/lib/Gitolite/Conf/Store.pm
libexec/gitolite/lib/Gitolite/Conf/Sugar.pm
libexec/gitolite/lib/Gitolite/Easy.pm
libexec/gitolite/lib/Gitolite/Hooks/
libexec/gitolite/lib/Gitolite/Hooks/PostUpdate.pm
libexec/gitolite/lib/Gitolite/Hooks/Update.pm
libexec/gitolite/lib/Gitolite/Rc.pm
libexec/gitolite/lib/Gitolite/Setup.pm
libexec/gitolite/lib/Gitolite/Test/
libexec/gitolite/lib/Gitolite/Test.pm
libexec/gitolite/lib/Gitolite/Test/Tsh.pm
libexec/gitolite/lib/Gitolite/Triggers/
libexec/gitolite/lib/Gitolite/Triggers.pm
libexec/gitolite/lib/Gitolite/Triggers/Alias.pm
libexec/gitolite/lib/Gitolite/Triggers/AutoCreate.pm
libexec/gitolite/lib/Gitolite/Triggers/CpuTime.pm
libexec/gitolite/lib/Gitolite/Triggers/Mirroring.pm
libexec/gitolite/lib/Gitolite/Triggers/RefexExpr.pm
libexec/gitolite/lib/Gitolite/Triggers/RepoUmask.pm
libexec/gitolite/lib/Gitolite/Triggers/Shell.pm
libexec/gitolite/lib/Gitolite/Triggers/Writable.pm
libexec/gitolite/syntactic-sugar/
libexec/gitolite/syntactic-sugar/continuation-lines
libexec/gitolite/syntactic-sugar/keysubdirs-as-groups
libexec/gitolite/syntactic-sugar/macros
libexec/gitolite/syntactic-sugar/refex-expr
libexec/gitolite/triggers/
libexec/gitolite/triggers/bg
libexec/gitolite/triggers/partial-copy
libexec/gitolite/triggers/post-compile/
libexec/gitolite/triggers/post-compile/ssh-authkeys
libexec/gitolite/triggers/post-compile/ssh-authkeys-shell-users
libexec/gitolite/triggers/post-compile/ssh-authkeys-split
libexec/gitolite/triggers/post-compile/update-description-file
libexec/gitolite/triggers/post-compile/update-git-configs
libexec/gitolite/triggers/post-compile/update-git-daemon-access-list
libexec/gitolite/triggers/post-compile/update-gitweb-access-list
libexec/gitolite/triggers/post-compile/update-gitweb-daemon-from-options
libexec/gitolite/triggers/renice
libexec/gitolite/triggers/set-default-roles
libexec/gitolite/triggers/upstream
share/doc/pkg-readmes/${FULLPKGNAME}

View File

@ -0,0 +1,28 @@
$OpenBSD: README,v 1.1.1.1 2013/04/22 06:48:25 jasper Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------
Setting up a Git server
=======================
It is advised to use a dedicated 'git' user for use with Gitolite. Now
add this user with adduser(8) and log in as this user.
Access control and repository creation is managed with the
gitolite-admin.git repository. The public SSH key passed to Gitolite
during the initial setup will be the primary access to this
repository. Copy a new or existing key to "key.pub" and run the setup:
gitolite setup -pk /path/to/key.pub
Now test if everything is setup correctly by running the following
command as the user to whom key.pub belongs:
git clone git@host:gitolite-admin.git
Further reading
===============
For further configuration options and learning how to finalize your
setup, please refer to the online Gitolite documentation which is
located at http://gitolite.com/gitolite/master-toc.html