blob: cd605ee5f2cea74f7980f6e4f4637146ddef0465 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-vcs/gitosis-gentoo/gitosis-gentoo-0.2_p20080711.ebuild,v 1.2 2011/04/06 19:39:15 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="2"
inherit eutils distutils
DESCRIPTION="gitosis -- software for hosting git repositories, Gentoo fork"
HOMEPAGE="http://git.overlays.gentoo.org/gitweb/?p=proj/gitosis-gentoo.git"
# This is a snapshot taken from the Gentoo overlays gitweb.
MY_PV="20080711-800ac5b58a60de070a10cafce609f28fc2905691"
MY_P="${PN}-${MY_PV}"
SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc"
IUSE=""
DEPEND_GIT=">=dev-vcs/git-1.5.3.6"
DEPEND="${DEPEND_GIT}
>=dev-python/setuptools-0.6_rc5"
RDEPEND="${DEPEND}
!dev-vcs/gitosis"
S=${WORKDIR}/${MY_P}
DOCS="example.conf gitweb.conf lighttpd-gitweb.conf TODO.rst"
PYTHON_MODNAME="gitosis"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
enewgroup git
enewuser git -1 /bin/sh /var/spool/gitosis git
}
src_install() {
distutils_src_install
keepdir /var/spool/gitosis
fowners git:git /var/spool/gitosis
}
# We should handle more of this, but it requires the input of an SSH public key
# from the user, and they may want to set up more configuration first.
#pkg_config() {
#}
|