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

Christian Hesse eworm at archlinux.org
Wed Dec 13 09:58:47 UTC 2017


    Date: Wednesday, December 13, 2017 @ 09:58:46
  Author: eworm
Revision: 274195

archrelease: copy trunk to community-testing-any

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

------------------------+
 PKGBUILD               |   35 +++++++++++++++++++++++++++++++++++
 gitolite-sysusers.conf |    1 +
 gitolite.install       |   10 ++++++++++
 3 files changed, 46 insertions(+)

Copied: gitolite/repos/community-testing-any/PKGBUILD (from rev 274194, gitolite/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2017-12-13 09:58:46 UTC (rev 274195)
@@ -0,0 +1,35 @@
+# $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.7
+pkgrel=2
+pkgdesc='An access control layer on top of git'
+url='https://github.com/sitaramc/gitolite'
+arch=('any')
+license=('GPL2')
+depends=('git' 'perl' 'openssh')
+install=gitolite.install
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v${pkgver}.tar.gz"
+        'gitolite-sysusers.conf')
+sha256sums=('f75d15bb438986b77bd8aeda7839dcd3624ae9d09dbfce245c00b906de8dbdc5'
+            '4113e21968b8954cb467ef89fac8485727acf31219bdb971494ca1d98efdd6af')
+
+prepare() {
+  cd $pkgname-$pkgver/src
+  echo "$pkgver" > VERSION
+}
+
+package() {
+  # create directories
+  install -d "$pkgdir"/usr/{bin,lib/gitolite}
+
+  # install files and create symlink
+  cp -a $pkgname-$pkgver/src/* "$pkgdir"/usr/lib/gitolite
+  ln -s /usr/lib/gitolite/gitolite "$pkgdir"/usr/bin/
+
+  # sysusers file
+  install -D -m 0644 "${srcdir}"/gitolite-sysusers.conf "${pkgdir}"/usr/lib/sysusers.d/gitolite.conf
+}

Copied: gitolite/repos/community-testing-any/gitolite-sysusers.conf (from rev 274194, gitolite/trunk/gitolite-sysusers.conf)
===================================================================
--- community-testing-any/gitolite-sysusers.conf	                        (rev 0)
+++ community-testing-any/gitolite-sysusers.conf	2017-12-13 09:58:46 UTC (rev 274195)
@@ -0,0 +1 @@
+u gitolite - "gitolite user" /var/lib/gitolite

Copied: gitolite/repos/community-testing-any/gitolite.install (from rev 274194, gitolite/trunk/gitolite.install)
===================================================================
--- community-testing-any/gitolite.install	                        (rev 0)
+++ community-testing-any/gitolite.install	2017-12-13 09:58:46 UTC (rev 274195)
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+post_install() {
+  # make sure the user exists...
+  systemd-sysusers gitolite.conf
+
+  # ... and change the shell. This is done only once in post-install
+  # function, so an administrative change is persistent.
+  chsh --shell /bin/bash gitolite > /dev/null
+}



More information about the arch-commits mailing list