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

Christian Hesse eworm at archlinux.org
Thu Sep 8 19:14:46 UTC 2016


    Date: Thursday, September 8, 2016 @ 19:14:46
  Author: eworm
Revision: 189017

archrelease: copy trunk to community-testing-any

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

------------------+
 PKGBUILD         |   27 +++++++++++++++++++++++++++
 gitolite.install |   20 ++++++++++++++++++++
 2 files changed, 47 insertions(+)

Copied: gitolite/repos/community-testing-any/PKGBUILD (from rev 189016, gitolite/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2016-09-08 19:14:46 UTC (rev 189017)
@@ -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.6
+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=('6971db70cf1393bf864cab569adbbd2a71f777f095d13447079a2463901b031f')
+
+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 189016, gitolite/trunk/gitolite.install)
===================================================================
--- community-testing-any/gitolite.install	                        (rev 0)
+++ community-testing-any/gitolite.install	2016-09-08 19:14:46 UTC (rev 189017)
@@ -0,0 +1,20 @@
+post_install() {
+  # We need ssh login and thus a valid shell. No way to create
+  # the user with sysusers.d(5)?
+
+  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
+}
+
+# Do NOT delete the user in post_remove(). It poses a security risk if
+# any files are left behind with this ownership.



More information about the arch-commits mailing list