BSD Ports

devel/gitolite 3.6.13_2,1 DragonFly

Access control layer on top of git

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
GPLv2
Categories
devel
Package size
124.0 KiB, 439.7 KiB installed

Description

Gitolite is an access control layer on top of git, which allows access control down to the branch level, including specifying who can and cannot rewind a given branch.

Gitolite lets you use a single user on a server to host many git repositories and provide access to many developers, without having to give them real userids on or shell access to the server. Authentication is most commonly done using sshd, but you can also use httpd if you prefer.

Gitolite can restrict who can read from (clone/fetch) or write to (push) a repository. It can also restrict who can push to what branch or tag, which is very important in a corporate environment.

In the other systems

SystemPortVersion
DragonFlydevel/gitolite3.6.13_2,1
FreeBSDdevel/gitolite3.6.15,1
OpenBSDsysutils/gitolite3.6.11
NetBSDdevel/gitolite3.6.12
MidnightBSDdevel/gitolite3.6.13,1
HardenedBSDdevel/gitolite3.6.15,1
GhostBSDdevel/gitolite3.6.15,1

Install

Binary package:

pkg install gitolite

From DPorts:

cd /usr/dports/devel/gitolite && make install clean

Dependencies

Run dependencies 3

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

gitolite v2 -> v3 migration procedures:

WARNING: gitolite v3 is NOT "API" compatible with gitolite v2. Any local
modifications - hooks, scripts, ADCs, etc - must be migrated.

Please refer to [0] or [1] before moving on.

tl;dr:
    Run /usr/local/libexec/gitolite/check-g2-compat as your gitolite provider
    Backup gitolite-admin repo
    Remove old gitolite references (authorized_keys, rc file, gitolite-admin,
        ~/.gitolite)
    Preset rc file
    Proceed with final instructions for setup
    Push old gitolite-admin repo

[0] http://sitaramc.github.com/gitolite/install.html#migr
[1] http://sitaramc.github.com/gitolite/master-toc.html

Final gitolite setup instructions:

Any ssh user can be a gitolite provider. Simply run the following command as
the user:

/usr/local/bin/gitolite setup -pk /path/to/admin.ssh.key.pub

This will setup up the configuration files and repositories for gitolite.

The admin ssh key allows full access to the gitolite-admin repository where
additional users and repositories can be configured.

By default, the git user is created for use by gitolite.

A quick-install guide can be found in:

/usr/local/share/doc/gitolite/README.markdown