diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2011-10-26 12:16:31 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-10-26 12:16:31 +0000 |
commit | c7a609b0b54e39e05fbde10d7d6367ab635abe41 (patch) | |
tree | 24a1186f30ed792a72f23c06d47a064317d0e898 /testing | |
parent | e6cc361bd87ad72b64ec8c80f38b29c1837e7351 (diff) | |
download | aports-c7a609b0b54e39e05fbde10d7d6367ab635abe41.tar.bz2 aports-c7a609b0b54e39e05fbde10d7d6367ab635abe41.tar.xz |
testing/gitolite: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/gitolite/APKBUILD | 47 | ||||
-rw-r--r-- | testing/gitolite/configuration.patch | 27 |
2 files changed, 74 insertions, 0 deletions
diff --git a/testing/gitolite/APKBUILD b/testing/gitolite/APKBUILD new file mode 100644 index 000000000..86059331a --- /dev/null +++ b/testing/gitolite/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=gitolite +pkgver=2.1 +pkgrel=0 +pkgdesc="A centralized git server, with very fine-grained access control and many powerful features." +url="http://github.com/sitaramc/gitolite" +arch="noarch" +license="GPL2" +depends="git perl" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="saveas-https://github.com/sitaramc/gitolite/tarball/v2.1/gitolite-2.1.tar.gz + configuration.patch" + +_builddir="$srcdir"/sitaramc-gitolite-871ed28 + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" +} + +package() { + cd "$_builddir" + mkdir -p "$pkgdir"/usr/bin \ + "$pkgdir"/etc/gitolite \ + "$pkgdir"/usr/share/gitolite/hooks \ + "$pkgdir"/usr/share/doc/gitolite + mv src/* "$pkgdir"/usr/bin/ + mv conf/* "$pkgdir"/etc/gitolite/ + mv hooks/* "$pkgdir"/usr/share/gitolite/hooks/ + mv doc/* "$pkgdir"/usr/share/doc/gitolite/ +} + +md5sums="33e0f6f384cf0596aed974fa563b50c3 gitolite-2.1.tar.gz +b4603bb37d3a746a1508bd7528464ba4 configuration.patch" diff --git a/testing/gitolite/configuration.patch b/testing/gitolite/configuration.patch new file mode 100644 index 000000000..403dc4e26 --- /dev/null +++ b/testing/gitolite/configuration.patch @@ -0,0 +1,27 @@ +diff --git a/conf/example.gitolite.rc b/conf/example.gitolite.rc +index d800357..95c5a24 100644 +--- a/conf/example.gitolite.rc ++++ b/conf/example.gitolite.rc +@@ -19,8 +19,8 @@ $GL_CONF_COMPILED="$GL_ADMINDIR/conf/gitolite.conf-compiled.pm"; + # DO NOT CHANGE THE NEXT FOUR LINES UNLESS YOU REALLY KNOW WHAT YOU'RE DOING. + # These variables are set automatically by the install method you choose. + # (PACKAGE MAINTAINERS: PLEASE READ doc/packaging.mkd) +-# $GL_PACKAGE_CONF = ""; +-# $GL_PACKAGE_HOOKS = ""; ++$GL_PACKAGE_CONF = "/etc/gitolite"; ++$GL_PACKAGE_HOOKS = "/usr/share/gitolite/hooks"; + + # ------------------------------------------------------------------------------ + # most often used/changed variables +diff --git a/src/gl-setup b/src/gl-setup +index fd8357b..59de183 100755 +--- a/src/gl-setup ++++ b/src/gl-setup +@@ -1,6 +1,6 @@ + #!/bin/sh + +-GL_PACKAGE_CONF=/tmp/share/gitolite/conf ++GL_PACKAGE_CONF=/etc/gitolite + # must be the same as the value for the same variable in + # $GL_PACKAGE_CONF/example.gitolite.rc. Sorry about the catch-22 :) + |