[arch-commits] Commit in gitolite/repos (3 files)

Christian Hesse eworm at archlinux.org
Sun Apr 26 12:24:56 UTC 2015


    Date: Sunday, April 26, 2015 @ 14:24:56
  Author: eworm
Revision: 132262

archrelease: copy trunk to community-testing-any

Added:
  gitolite/repos/community-testing-any/
  gitolite/repos/community-testing-any/PKGBUILD
    (from rev 132261, gitolite/trunk/PKGBUILD)
  gitolite/repos/community-testing-any/gitolite.install
    (from rev 132261, gitolite/trunk/gitolite.install)

------------------+
 PKGBUILD         |   27 +++++++++++++++++++++++++++
 gitolite.install |   24 ++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

Copied: gitolite/repos/community-testing-any/PKGBUILD (from rev 132261, gitolite/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2015-04-26 12:24:56 UTC (rev 132262)
@@ -0,0 +1,27 @@
+# $Id$
+# Maintainer:  Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Maintainer:  Christian Hesse <mail at eworm.de>
+# Contributor: Jon Eyolfson <jon at eyolfson.com>
+
+pkgname=gitolite
+pkgver=3.6.3
+pkgrel=1
+pkgdesc='An access control layer on top of git'
+url='https://github.com/sitaramc/gitolite'
+arch=('any')
+license=('GPL2')
+depends=('git' 'perl')
+install=gitolite.install
+source=($pkgname-$pkgver.tar.gz::$url/archive/v${pkgver}.tar.gz)
+sha256sums=('9b20eb6ae84358c5f063b02da64e49bef4605c9bfc7fb3700a2766dba58b9d99')
+
+prepare() {
+  cd $pkgname-$pkgver/src
+  echo "$pkgver" > VERSION
+}
+
+package() {
+  install -d "$pkgdir"/usr/{bin,lib/gitolite}
+  cp -a $pkgname-$pkgver/src/* "$pkgdir"/usr/lib/gitolite
+  ln -s /usr/lib/gitolite/gitolite "$pkgdir"/usr/bin/
+}

Copied: gitolite/repos/community-testing-any/gitolite.install (from rev 132261, gitolite/trunk/gitolite.install)
===================================================================
--- community-testing-any/gitolite.install	                        (rev 0)
+++ community-testing-any/gitolite.install	2015-04-26 12:24:56 UTC (rev 132262)
@@ -0,0 +1,24 @@
+post_install() {
+  if ! getent group gitolite &>/dev/null; then
+    groupadd -r -g 196 gitolite >/dev/null
+  fi
+
+  if ! getent passwd gitolite &>/dev/null; then
+    useradd -m -r -u 196 -g gitolite -d /var/lib/gitolite \
+      -s /bin/bash gitolite >/dev/null
+  fi
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  if getent passwd gitolite &>/dev/null; then
+    userdel gitolite >/dev/null
+  fi
+
+  if getent group gitolite &>/dev/null; then
+    groupdel gitolite >/dev/null
+  fi
+}



More information about the arch-commits mailing list