[arch-commits] Commit in gitlab-shell/repos (6 files)

2020-11-20 Thread Anatol Pomozov via arch-commits
Date: Friday, November 20, 2020 @ 18:45:53
  Author: anatolik
Revision: 758002

archrelease: copy trunk to community-testing-x86_64

Added:
  gitlab-shell/repos/community-testing-x86_64/
  gitlab-shell/repos/community-testing-x86_64/PKGBUILD
(from rev 758001, gitlab-shell/trunk/PKGBUILD)
  gitlab-shell/repos/community-testing-x86_64/configs.patch
(from rev 758001, gitlab-shell/trunk/configs.patch)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.gitconfig
(from rev 758001, gitlab-shell/trunk/gitlab-shell.gitconfig)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.install
(from rev 758001, gitlab-shell/trunk/gitlab-shell.install)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.sysusers
(from rev 758001, gitlab-shell/trunk/gitlab-shell.sysusers)

+
 PKGBUILD   |  101 +++
 configs.patch  |   65 ++
 gitlab-shell.gitconfig |   12 +
 gitlab-shell.install   |9 
 gitlab-shell.sysusers  |1 
 5 files changed, 188 insertions(+)

Copied: gitlab-shell/repos/community-testing-x86_64/PKGBUILD (from rev 758001, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-11-20 18:45:53 UTC (rev 758002)
@@ -0,0 +1,101 @@
+# Maintainer: Anatol Pomozov 
+# Contributor: Sven-Hendrik Haase 
+# Contributor: Pavol (Lopo) Hluchy 
+# Contributor: Massimiliano Torromeo 
+# Contributor: Jonas Heinrich 
+# Contributor: Lee Watson 
+# Contributor: Tobias Hunger 
+# Contributor: Stefan Tatschner 
+
+
+# NOTE: Gitlab isn't always compatible with modern Ruby versions. In that 
case, check the
+# commit log for an old fix on how to tell it to use older versions of Ruby. 
I'm afraid we'll
+# need this again at some point in the future.
+pkgname=gitlab-shell
+pkgver=13.13.0
+pkgrel=1
+epoch=2
+pkgdesc="Git management software"
+arch=('x86_64')
+url="https://gitlab.com/gitlab-org/gitlab-shell/;
+license=('MIT')
+depends=('ruby' 'redis' 'git')
+makedepends=('go')
+options=('!strip')
+install=gitlab-shell.install
+backup=("etc/webapps/${pkgname}/config.yml"
+"etc/webapps/${pkgname}/secret"
+"etc/webapps/${pkgname}/.gitconfig")
+source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/gitlab-org/gitlab-shell/-/archive/v${pkgver}/gitlab-shell-v${pkgver}.tar.gz;
+"configs.patch"
+"gitlab-shell.gitconfig"
+"gitlab-shell.sysusers")
+sha512sums=('30ccc2c6f2e2295c6ca064bb60ac35bdacc59aa082fb5fbb7a9bac4de9830c06ea34e0caaa74854eda012627b1b55747385e2f4b61b840c57afed4eb9f93deba'
+
'13c0fb88693e787f2960059985713d7ffb6d2fa51d9dbcba9c9562ae91e74bd3963efc63837cd19c5441fb5835d0c8eafd3285bea6676168f7b111a08fb086a7'
+
'cb8003f2ce8013fcd807aae6d66c22c3a767e74d569bd69aaa5a54b84a36135d25b3af57861f858f8f407e089ff69ff5c325bf065c6051ce8fa197fab70470b8'
+
'616188911fa7b7c569bc2d5e2024177e67366c48b4ffef1f7ad4dc8e4e9e2cdb421b687f45a1e9bdec8bf2736a157ca9f1e0ba24edae2f073b8c7b5ac42745e8')
+
+_datadir="/usr/share/webapps/${pkgname}"
+_etcdir="/etc/webapps/${pkgname}"
+_homedir="/var/lib/gitlab"
+_logdir="/var/log/gitlab"
+_srcdir="gitlab-shell-v${pkgver}"
+
+prepare() {
+  cd ${_srcdir}
+
+  patch -p1 < ../configs.patch
+  # At this point config file should not contain any references to '/home/git'
+}
+
+build() {
+  cd ${_srcdir}
+
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  make build
+}
+
+package() {
+  cd ${_srcdir}
+
+  install -dm755 -o root -g root "${pkgdir}${_datadir}"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_homedir}"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_homedir}/satellites"
+  install -dm700 -o 105 -g 105 "${pkgdir}${_homedir}/.ssh"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_etcdir}"
+  install -dm770 -o 105 -g root "${pkgdir}${_logdir}"
+
+  # sysusers
+  install -Dm644 "${srcdir}/gitlab-shell.sysusers" 
"${pkgdir}/usr/lib/sysusers.d/gitlab-shell.conf"
+
+  # .gitconfig
+  install -Dm644 -o 105 -g 105 "${srcdir}/gitlab-shell.gitconfig" 
"${pkgdir}${_etcdir}/.gitconfig"
+  ln -fs "${_etcdir}/.gitconfig" "${pkgdir}${_homedir}/.gitconfig"
+
+  # .gitlab_shell_secret
+  touch "${pkgdir}${_etcdir}/secret"
+  chmod 640 "${pkgdir}${_etcdir}/secret"
+  chown root:105 "${pkgdir}${_etcdir}/secret"
+  ln -fs "${_etcdir}/secret" "${pkgdir}${_datadir}/.gitlab_shell_secret"
+
+  # config.yml
+  install -Dm644 config.yml.example "${pkgdir}${_etcdir}/config.yml"
+  ln -fs "${_etcdir}/config.yml" "${pkgdir}${_datadir}/config.yml"
+
+  cp -r VERSION bin spec support "${pkgdir}${_datadir}"
+  ln -fs "${_datadir}" "${pkgdir}/${_homedir}/"
+
+  # Compatibility for FS#64251
+  ln -s 

[arch-commits] Commit in gitlab-shell/repos (6 files)

2020-10-23 Thread Anatol Pomozov via arch-commits
Date: Friday, October 23, 2020 @ 21:53:24
  Author: anatolik
Revision: 730927

archrelease: copy trunk to community-testing-x86_64

Added:
  gitlab-shell/repos/community-testing-x86_64/
  gitlab-shell/repos/community-testing-x86_64/PKGBUILD
(from rev 730924, gitlab-shell/trunk/PKGBUILD)
  gitlab-shell/repos/community-testing-x86_64/configs.patch
(from rev 730924, gitlab-shell/trunk/configs.patch)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.gitconfig
(from rev 730925, gitlab-shell/trunk/gitlab-shell.gitconfig)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.install
(from rev 730925, gitlab-shell/trunk/gitlab-shell.install)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.sysusers
(from rev 730926, gitlab-shell/trunk/gitlab-shell.sysusers)

+
 PKGBUILD   |  101 +++
 configs.patch  |   65 ++
 gitlab-shell.gitconfig |   12 +
 gitlab-shell.install   |9 
 gitlab-shell.sysusers  |1 
 5 files changed, 188 insertions(+)

Copied: gitlab-shell/repos/community-testing-x86_64/PKGBUILD (from rev 730924, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-10-23 21:53:24 UTC (rev 730927)
@@ -0,0 +1,101 @@
+# Maintainer: Anatol Pomozov 
+# Contributor: Sven-Hendrik Haase 
+# Contributor: Pavol (Lopo) Hluchy 
+# Contributor: Massimiliano Torromeo 
+# Contributor: Jonas Heinrich 
+# Contributor: Lee Watson 
+# Contributor: Tobias Hunger 
+# Contributor: Stefan Tatschner 
+
+
+# NOTE: Gitlab isn't always compatible with modern Ruby versions. In that 
case, check the
+# commit log for an old fix on how to tell it to use older versions of Ruby. 
I'm afraid we'll
+# need this again at some point in the future.
+pkgname=gitlab-shell
+pkgver=13.11.0
+pkgrel=1
+epoch=2
+pkgdesc="Git management software"
+arch=('x86_64')
+url="https://gitlab.com/gitlab-org/gitlab-shell/;
+license=('MIT')
+depends=('ruby' 'redis' 'git')
+makedepends=('go')
+options=('!strip')
+install=gitlab-shell.install
+backup=("etc/webapps/${pkgname}/config.yml"
+"etc/webapps/${pkgname}/secret"
+"etc/webapps/${pkgname}/.gitconfig")
+source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/gitlab-org/gitlab-shell/-/archive/v${pkgver}/gitlab-shell-v${pkgver}.tar.gz;
+"configs.patch"
+"gitlab-shell.gitconfig"
+"gitlab-shell.sysusers")
+sha512sums=('48e6846d72af94ee68e5e35f6856c6dd12402a65586a4fedc70aaf30725e9ebf35a5c95ef579178fff3d2a30cf414e5dea922a2994ac67b0ac0fe456c27fdf08'
+
'13c0fb88693e787f2960059985713d7ffb6d2fa51d9dbcba9c9562ae91e74bd3963efc63837cd19c5441fb5835d0c8eafd3285bea6676168f7b111a08fb086a7'
+
'cb8003f2ce8013fcd807aae6d66c22c3a767e74d569bd69aaa5a54b84a36135d25b3af57861f858f8f407e089ff69ff5c325bf065c6051ce8fa197fab70470b8'
+
'616188911fa7b7c569bc2d5e2024177e67366c48b4ffef1f7ad4dc8e4e9e2cdb421b687f45a1e9bdec8bf2736a157ca9f1e0ba24edae2f073b8c7b5ac42745e8')
+
+_datadir="/usr/share/webapps/${pkgname}"
+_etcdir="/etc/webapps/${pkgname}"
+_homedir="/var/lib/gitlab"
+_logdir="/var/log/gitlab"
+_srcdir="gitlab-shell-v${pkgver}"
+
+prepare() {
+  cd ${_srcdir}
+
+  patch -p1 < ../configs.patch
+  # At this point config file should not contain any references to '/home/git'
+}
+
+build() {
+  cd ${_srcdir}
+
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  make build
+}
+
+package() {
+  cd ${_srcdir}
+
+  install -dm755 -o root -g root "${pkgdir}${_datadir}"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_homedir}"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_homedir}/satellites"
+  install -dm700 -o 105 -g 105 "${pkgdir}${_homedir}/.ssh"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_etcdir}"
+  install -dm770 -o 105 -g root "${pkgdir}${_logdir}"
+
+  # sysusers
+  install -Dm644 "${srcdir}/gitlab-shell.sysusers" 
"${pkgdir}/usr/lib/sysusers.d/gitlab-shell.conf"
+
+  # .gitconfig
+  install -Dm644 -o 105 -g 105 "${srcdir}/gitlab-shell.gitconfig" 
"${pkgdir}${_etcdir}/.gitconfig"
+  ln -fs "${_etcdir}/.gitconfig" "${pkgdir}${_homedir}/.gitconfig"
+
+  # .gitlab_shell_secret
+  touch "${pkgdir}${_etcdir}/secret"
+  chmod 640 "${pkgdir}${_etcdir}/secret"
+  chown root:105 "${pkgdir}${_etcdir}/secret"
+  ln -fs "${_etcdir}/secret" "${pkgdir}${_datadir}/.gitlab_shell_secret"
+
+  # config.yml
+  install -Dm644 config.yml.example "${pkgdir}${_etcdir}/config.yml"
+  ln -fs "${_etcdir}/config.yml" "${pkgdir}${_datadir}/config.yml"
+
+  cp -r VERSION bin spec support "${pkgdir}${_datadir}"
+  ln -fs "${_datadir}" "${pkgdir}/${_homedir}/"
+
+  # Compatibility for FS#64251
+  ln -s 

[arch-commits] Commit in gitlab-shell/repos (6 files)

2020-08-25 Thread Anatol Pomozov via arch-commits
Date: Tuesday, August 25, 2020 @ 16:48:28
  Author: anatolik
Revision: 688493

archrelease: copy trunk to community-testing-x86_64

Added:
  gitlab-shell/repos/community-testing-x86_64/
  gitlab-shell/repos/community-testing-x86_64/PKGBUILD
(from rev 688491, gitlab-shell/trunk/PKGBUILD)
  gitlab-shell/repos/community-testing-x86_64/configs.patch
(from rev 688491, gitlab-shell/trunk/configs.patch)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.gitconfig
(from rev 688491, gitlab-shell/trunk/gitlab-shell.gitconfig)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.install
(from rev 688492, gitlab-shell/trunk/gitlab-shell.install)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.sysusers
(from rev 688492, gitlab-shell/trunk/gitlab-shell.sysusers)

+
 PKGBUILD   |  101 +++
 configs.patch  |   61 
 gitlab-shell.gitconfig |   12 +
 gitlab-shell.install   |9 
 gitlab-shell.sysusers  |1 
 5 files changed, 184 insertions(+)

Copied: gitlab-shell/repos/community-testing-x86_64/PKGBUILD (from rev 688491, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-08-25 16:48:28 UTC (rev 688493)
@@ -0,0 +1,101 @@
+# Maintainer: Anatol Pomozov 
+# Contributor: Sven-Hendrik Haase 
+# Contributor: Pavol (Lopo) Hluchy 
+# Contributor: Massimiliano Torromeo 
+# Contributor: Jonas Heinrich 
+# Contributor: Lee Watson 
+# Contributor: Tobias Hunger 
+# Contributor: Stefan Tatschner 
+
+
+# NOTE: Gitlab isn't always compatible with modern Ruby versions. In that 
case, check the
+# commit log for an old fix on how to tell it to use older versions of Ruby. 
I'm afraid we'll
+# need this again at some point in the future.
+pkgname=gitlab-shell
+pkgver=13.7.0
+pkgrel=1
+epoch=2
+pkgdesc="Git management software"
+arch=('x86_64')
+url="https://gitlab.com/gitlab-org/gitlab-shell/;
+license=('MIT')
+depends=('ruby' 'redis' 'git')
+makedepends=('go')
+options=('!strip')
+install=gitlab-shell.install
+backup=("etc/webapps/${pkgname}/config.yml"
+"etc/webapps/${pkgname}/secret"
+"etc/webapps/${pkgname}/.gitconfig")
+source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/gitlab-org/gitlab-shell/-/archive/v${pkgver}/gitlab-shell-v${pkgver}.tar.gz;
+"configs.patch"
+"gitlab-shell.gitconfig"
+"gitlab-shell.sysusers")
+sha512sums=('1ef6587e2824d802e230d8824c210d0197ebe8b3f3fbe644d0a29411eeb34e6f78f5bca75c3acaadab7f0a14d9f7d45f8868e55bd01d1e3a85cbbcac6d24ea9a'
+
'49c5f15eeb985f402296faa991315311596ebf527b1fe715e94852c7048c767ccd69da3b42ddf3ebd45b86838ec72389d68a2204764f432ae5e9ce1651ff1966'
+
'cb8003f2ce8013fcd807aae6d66c22c3a767e74d569bd69aaa5a54b84a36135d25b3af57861f858f8f407e089ff69ff5c325bf065c6051ce8fa197fab70470b8'
+
'616188911fa7b7c569bc2d5e2024177e67366c48b4ffef1f7ad4dc8e4e9e2cdb421b687f45a1e9bdec8bf2736a157ca9f1e0ba24edae2f073b8c7b5ac42745e8')
+
+_datadir="/usr/share/webapps/${pkgname}"
+_etcdir="/etc/webapps/${pkgname}"
+_homedir="/var/lib/gitlab"
+_logdir="/var/log/gitlab"
+_srcdir="gitlab-shell-v${pkgver}"
+
+prepare() {
+  cd "${srcdir}/${_srcdir}"
+
+  patch -p1 < ../configs.patch
+  # At this point config file should not contain any references to '/home/git'
+}
+
+build() {
+  cd "${srcdir}/${_srcdir}"
+
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  make build
+}
+
+package() {
+  cd "${srcdir}/${_srcdir}"
+
+  install -dm755 -o root -g root "${pkgdir}${_datadir}"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_homedir}"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_homedir}/satellites"
+  install -dm700 -o 105 -g 105 "${pkgdir}${_homedir}/.ssh"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_etcdir}"
+  install -dm770 -o 105 -g root "${pkgdir}${_logdir}"
+
+  # sysusers
+  install -Dm644 "${srcdir}/gitlab-shell.sysusers" 
"${pkgdir}/usr/lib/sysusers.d/gitlab-shell.conf"
+
+  # .gitconfig
+  install -Dm644 -o 105 -g 105 "${srcdir}/gitlab-shell.gitconfig" 
"${pkgdir}${_etcdir}/.gitconfig"
+  ln -fs "${_etcdir}/.gitconfig" "${pkgdir}${_homedir}/.gitconfig"
+
+  # .gitlab_shell_secret
+  touch "${pkgdir}${_etcdir}/secret"
+  chmod 640 "${pkgdir}${_etcdir}/secret"
+  chown root:105 "${pkgdir}${_etcdir}/secret"
+  ln -fs "${_etcdir}/secret" "${pkgdir}${_datadir}/.gitlab_shell_secret"
+
+  # config.yml
+  install -Dm644 config.yml.example "${pkgdir}${_etcdir}/config.yml"
+  ln -fs "${_etcdir}/config.yml" "${pkgdir}${_datadir}/config.yml"
+
+  cp -r VERSION bin hooks spec support "${pkgdir}${_datadir}"
+  ln -fs "${_datadir}" "${pkgdir}/${_homedir}/"
+
+  # 

[arch-commits] Commit in gitlab-shell/repos (6 files)

2020-07-23 Thread Anatol Pomozov via arch-commits
Date: Thursday, July 23, 2020 @ 19:29:53
  Author: anatolik
Revision: 665060

archrelease: copy trunk to community-testing-x86_64

Added:
  gitlab-shell/repos/community-testing-x86_64/
  gitlab-shell/repos/community-testing-x86_64/PKGBUILD
(from rev 665059, gitlab-shell/trunk/PKGBUILD)
  gitlab-shell/repos/community-testing-x86_64/configs.patch
(from rev 665059, gitlab-shell/trunk/configs.patch)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.gitconfig
(from rev 665059, gitlab-shell/trunk/gitlab-shell.gitconfig)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.install
(from rev 665059, gitlab-shell/trunk/gitlab-shell.install)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.sysusers
(from rev 665059, gitlab-shell/trunk/gitlab-shell.sysusers)

+
 PKGBUILD   |  101 +++
 configs.patch  |   61 
 gitlab-shell.gitconfig |   12 +
 gitlab-shell.install   |9 
 gitlab-shell.sysusers  |1 
 5 files changed, 184 insertions(+)

Copied: gitlab-shell/repos/community-testing-x86_64/PKGBUILD (from rev 665059, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-07-23 19:29:53 UTC (rev 665060)
@@ -0,0 +1,101 @@
+# Maintainer: Anatol Pomozov 
+# Contributor: Sven-Hendrik Haase 
+# Contributor: Pavol (Lopo) Hluchy 
+# Contributor: Massimiliano Torromeo 
+# Contributor: Jonas Heinrich 
+# Contributor: Lee Watson 
+# Contributor: Tobias Hunger 
+# Contributor: Stefan Tatschner 
+
+
+# NOTE: Gitlab isn't always compatible with modern Ruby versions. In that 
case, check the
+# commit log for an old fix on how to tell it to use older versions of Ruby. 
I'm afraid we'll
+# need this again at some point in the future.
+pkgname=gitlab-shell
+pkgver=13.4.0
+pkgrel=1
+epoch=2
+pkgdesc="Git management software"
+arch=('x86_64')
+url="https://gitlab.com/gitlab-org/gitlab-shell/;
+license=('MIT')
+depends=('ruby' 'redis' 'git')
+makedepends=('go')
+options=('!strip')
+install=gitlab-shell.install
+backup=("etc/webapps/${pkgname}/config.yml"
+"etc/webapps/${pkgname}/secret"
+"etc/webapps/${pkgname}/.gitconfig")
+source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/gitlab-org/gitlab-shell/-/archive/v${pkgver}/gitlab-shell-v${pkgver}.tar.gz;
+"configs.patch"
+"gitlab-shell.gitconfig"
+"gitlab-shell.sysusers")
+sha512sums=('3c151ce291b267f563aa625190b2dde00f93ac850087387e86229ead3640108f55788766f8a84973587637d3332f4287c6b8021e0ccaf5f43cfaea1616f65ba0'
+
'49c5f15eeb985f402296faa991315311596ebf527b1fe715e94852c7048c767ccd69da3b42ddf3ebd45b86838ec72389d68a2204764f432ae5e9ce1651ff1966'
+
'cb8003f2ce8013fcd807aae6d66c22c3a767e74d569bd69aaa5a54b84a36135d25b3af57861f858f8f407e089ff69ff5c325bf065c6051ce8fa197fab70470b8'
+
'616188911fa7b7c569bc2d5e2024177e67366c48b4ffef1f7ad4dc8e4e9e2cdb421b687f45a1e9bdec8bf2736a157ca9f1e0ba24edae2f073b8c7b5ac42745e8')
+
+_datadir="/usr/share/webapps/${pkgname}"
+_etcdir="/etc/webapps/${pkgname}"
+_homedir="/var/lib/gitlab"
+_logdir="/var/log/gitlab"
+_srcdir="gitlab-shell-v${pkgver}"
+
+prepare() {
+  cd "${srcdir}/${_srcdir}"
+
+  patch -p1 < ../configs.patch
+  # At this point config file should not contain any references to '/home/git'
+}
+
+build() {
+  cd "${srcdir}/${_srcdir}"
+
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  make build
+}
+
+package() {
+  cd "${srcdir}/${_srcdir}"
+
+  install -dm755 -o root -g root "${pkgdir}${_datadir}"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_homedir}"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_homedir}/satellites"
+  install -dm700 -o 105 -g 105 "${pkgdir}${_homedir}/.ssh"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_etcdir}"
+  install -dm770 -o 105 -g root "${pkgdir}${_logdir}"
+
+  # sysusers
+  install -Dm644 "${srcdir}/gitlab-shell.sysusers" 
"${pkgdir}/usr/lib/sysusers.d/gitlab-shell.conf"
+
+  # .gitconfig
+  install -Dm644 -o 105 -g 105 "${srcdir}/gitlab-shell.gitconfig" 
"${pkgdir}${_etcdir}/.gitconfig"
+  ln -fs "${_etcdir}/.gitconfig" "${pkgdir}${_homedir}/.gitconfig"
+
+  # .gitlab_shell_secret
+  touch "${pkgdir}${_etcdir}/secret"
+  chmod 640 "${pkgdir}${_etcdir}/secret"
+  chown root:105 "${pkgdir}${_etcdir}/secret"
+  ln -fs "${_etcdir}/secret" "${pkgdir}${_datadir}/.gitlab_shell_secret"
+
+  # config.yml
+  install -Dm644 config.yml.example "${pkgdir}${_etcdir}/config.yml"
+  ln -fs "${_etcdir}/config.yml" "${pkgdir}${_datadir}/config.yml"
+
+  cp -r VERSION bin hooks spec support "${pkgdir}${_datadir}"
+  ln -fs "${_datadir}" "${pkgdir}/${_homedir}/"
+
+  # 

[arch-commits] Commit in gitlab-shell/repos (6 files)

2020-05-26 Thread Anatol Pomozov via arch-commits
Date: Tuesday, May 26, 2020 @ 08:33:27
  Author: anatolik
Revision: 635012

archrelease: copy trunk to community-testing-x86_64

Added:
  gitlab-shell/repos/community-testing-x86_64/
  gitlab-shell/repos/community-testing-x86_64/PKGBUILD
(from rev 635011, gitlab-shell/trunk/PKGBUILD)
  gitlab-shell/repos/community-testing-x86_64/configs.patch
(from rev 635011, gitlab-shell/trunk/configs.patch)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.gitconfig
(from rev 635011, gitlab-shell/trunk/gitlab-shell.gitconfig)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.install
(from rev 635011, gitlab-shell/trunk/gitlab-shell.install)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.sysusers
(from rev 635011, gitlab-shell/trunk/gitlab-shell.sysusers)

+
 PKGBUILD   |  100 +++
 configs.patch  |   57 ++
 gitlab-shell.gitconfig |5 ++
 gitlab-shell.install   |9 
 gitlab-shell.sysusers  |1 
 5 files changed, 172 insertions(+)

Copied: gitlab-shell/repos/community-testing-x86_64/PKGBUILD (from rev 635011, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-26 08:33:27 UTC (rev 635012)
@@ -0,0 +1,100 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: Pavol (Lopo) Hluchy 
+# Contributor: Massimiliano Torromeo 
+# Contributor: Jonas Heinrich 
+# Contributor: Lee Watson 
+# Contributor: Tobias Hunger 
+# Contributor: Stefan Tatschner 
+
+
+# NOTE: Gitlab isn't always compatible with modern Ruby versions. In that 
case, check the
+# commit log for an old fix on how to tell it to use older versions of Ruby. 
I'm afraid we'll
+# need this again at some point in the future.
+pkgname=gitlab-shell
+pkgver=13.2.0
+pkgrel=2
+epoch=2
+pkgdesc="Git management software"
+arch=('x86_64')
+url="https://gitlab.com/gitlab-org/gitlab-shell/;
+license=('MIT')
+depends=('ruby' 'redis' 'git')
+makedepends=('go')
+options=('!strip')
+install=gitlab-shell.install
+backup=("etc/webapps/${pkgname}/config.yml"
+"etc/webapps/${pkgname}/secret"
+"etc/webapps/${pkgname}/.gitconfig")
+source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/gitlab-org/gitlab-shell/-/archive/v${pkgver}/gitlab-shell-v${pkgver}.tar.gz;
+"configs.patch"
+"gitlab-shell.gitconfig"
+"gitlab-shell.sysusers")
+sha512sums=('75aa095b4912a7ce7e7523a454cb32b543cb3e0061cba8c5346cf2837b486dee49fad855d73086ad7a303cfd9e47f4119e2d3806deaab0bea0bd745f0122fd61'
+
'd419883949c6aaa1fec8e251b82db845483a439df3f743a0370a547449a271bd8e197d93bf6f83d6610f12dbdc4ea17956ae7af1447ac44bd92b73036bb9cd05'
+
'5caafe5300621ced58479e724b39656afc17f32a64ecde5dfa4919683ef37d9121552c78f066678472acb56e0a34b5c3cf34d9b44414d1ed5d91f725d180fa43'
+
'616188911fa7b7c569bc2d5e2024177e67366c48b4ffef1f7ad4dc8e4e9e2cdb421b687f45a1e9bdec8bf2736a157ca9f1e0ba24edae2f073b8c7b5ac42745e8')
+
+_datadir="/usr/share/webapps/${pkgname}"
+_etcdir="/etc/webapps/${pkgname}"
+_homedir="/var/lib/gitlab"
+_logdir="/var/log/gitlab"
+_srcdir="gitlab-shell-v${pkgver}"
+
+prepare() {
+  cd "${srcdir}/${_srcdir}"
+
+  patch -p1 < ../configs.patch
+  # At this point config file should not contain any references to '/home/git'
+}
+
+build() {
+  cd "${srcdir}/${_srcdir}"
+
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+  make build
+}
+
+package() {
+  cd "${srcdir}/${_srcdir}"
+
+  install -dm755 -o root -g root "${pkgdir}${_datadir}"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_homedir}"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_homedir}/satellites"
+  install -dm700 -o 105 -g 105 "${pkgdir}${_homedir}/.ssh"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_etcdir}"
+  install -dm770 -o 105 -g root "${pkgdir}${_logdir}"
+
+  # sysusers
+  install -Dm644 "${srcdir}/gitlab-shell.sysusers" 
"${pkgdir}/usr/lib/sysusers.d/gitlab-shell.conf"
+
+  # .gitconfig
+  install -Dm644 -o 105 -g 105 "${srcdir}/gitlab-shell.gitconfig" 
"${pkgdir}${_etcdir}/.gitconfig"
+  ln -fs "${_etcdir}/.gitconfig" "${pkgdir}${_homedir}/.gitconfig"
+
+  # .gitlab_shell_secret
+  touch "${pkgdir}${_etcdir}/secret"
+  chmod 640 "${pkgdir}${_etcdir}/secret"
+  chown root:105 "${pkgdir}${_etcdir}/secret"
+  ln -fs "${_etcdir}/secret" "${pkgdir}${_datadir}/.gitlab_shell_secret"
+
+  # config.yml
+  install -Dm644 config.yml.example "${pkgdir}${_etcdir}/config.yml"
+  ln -fs "${_etcdir}/config.yml" "${pkgdir}${_datadir}/config.yml"
+
+  cp -r VERSION bin hooks spec support "${pkgdir}${_datadir}"
+  ln -fs "${_datadir}" "${pkgdir}/${_homedir}/"
+
+  # Compatibility for FS#64251
+  ln -s 

[arch-commits] Commit in gitlab-shell/repos (6 files)

2019-01-06 Thread Felix Yan via arch-commits
Date: Monday, January 7, 2019 @ 05:11:22
  Author: felixonmars
Revision: 420922

archrelease: copy trunk to community-staging-x86_64

Added:
  gitlab-shell/repos/community-staging-x86_64/
  gitlab-shell/repos/community-staging-x86_64/252.patch
(from rev 420921, gitlab-shell/trunk/252.patch)
  gitlab-shell/repos/community-staging-x86_64/PKGBUILD
(from rev 420921, gitlab-shell/trunk/PKGBUILD)
  gitlab-shell/repos/community-staging-x86_64/gitlab-shell.gitconfig
(from rev 420921, gitlab-shell/trunk/gitlab-shell.gitconfig)
  gitlab-shell/repos/community-staging-x86_64/gitlab-shell.install
(from rev 420921, gitlab-shell/trunk/gitlab-shell.install)
  gitlab-shell/repos/community-staging-x86_64/gitlab-shell.sysusers
(from rev 420921, gitlab-shell/trunk/gitlab-shell.sysusers)

+
 252.patch  |   31 ++
 PKGBUILD   |  102 +++
 gitlab-shell.gitconfig |5 ++
 gitlab-shell.install   |4 +
 gitlab-shell.sysusers  |1 
 5 files changed, 143 insertions(+)

Copied: gitlab-shell/repos/community-staging-x86_64/252.patch (from rev 420921, 
gitlab-shell/trunk/252.patch)
===
--- community-staging-x86_64/252.patch  (rev 0)
+++ community-staging-x86_64/252.patch  2019-01-07 05:11:22 UTC (rev 420922)
@@ -0,0 +1,31 @@
+From 2ae15257494d925d67c40ac2af00da127079ae42 Mon Sep 17 00:00:00 2001
+From: Vlad Petrov 
+Date: Tue, 16 Oct 2018 22:24:41 +0300
+Subject: [PATCH] Update current path extraction
+
+It is recommended to use func Executable since 1.8
+https://tip.golang.org/pkg/os/#Executable
+---
+ go/cmd/gitlab-shell/main.go | 6 +-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/go/cmd/gitlab-shell/main.go b/go/cmd/gitlab-shell/main.go
+index ae54151..b42aba7 100644
+--- a/go/cmd/gitlab-shell/main.go
 b/go/cmd/gitlab-shell/main.go
+@@ -15,7 +15,11 @@ var (
+ )
+ 
+ func init() {
+-  binDir = filepath.Dir(os.Args[0])
++  ex, err := os.Executable()
++  if err != nil {
++  panic(err)
++  }
++  binDir = filepath.Dir(ex)
+   rootDir = filepath.Dir(binDir)
+ }
+ 
+-- 
+2.18.1
+

Copied: gitlab-shell/repos/community-staging-x86_64/PKGBUILD (from rev 420921, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2019-01-07 05:11:22 UTC (rev 420922)
@@ -0,0 +1,102 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: Pavol (Lopo) Hluchy 
+# Contributor: Massimiliano Torromeo 
+# Contributor: Jonas Heinrich 
+# Contributor: Lee Watson 
+# Contributor: Tobias Hunger 
+# Contributor: Stefan Tatschner 
+
+
+# NOTE: Gitlab isn't always compatible with modern Ruby versions. In that 
case, check the
+# commit log for an old fix on how to tell it to use older versions of Ruby. 
I'm afraid we'll
+# need this again at some point in the future.
+pkgname=gitlab-shell
+pkgver=8.4.4
+pkgrel=3
+epoch=2
+pkgdesc="Git management software"
+arch=('x86_64')
+url="https://gitlab.com/gitlab-org/gitlab-shell/;
+license=('MIT')
+depends=('ruby' 'redis' 'git')
+makedepends=('go-pie')
+options=('!strip')
+install=gitlab-shell.install
+backup=("etc/webapps/${pkgname}/config.yml"
+"etc/webapps/${pkgname}/secret"
+"etc/webapps/${pkgname}/gitconfig"
+"etc/webapps/${pkgname}/authorized_keys"
+"etc/webapps/${pkgname}/")
+source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-shell/repository/archive?sha=v${pkgver};
+"gitlab-shell.gitconfig"
+"gitlab-shell.sysusers"
+252.patch)
+sha512sums=('518b44fe29aaf16c35694446da4a6c1fc175c65993600a668d5bd90cb7c3993c0bc4bd1d47619fd14c3bc4339270bd291d7d7051a69845a36a995a9738f589d8'
+
'5caafe5300621ced58479e724b39656afc17f32a64ecde5dfa4919683ef37d9121552c78f066678472acb56e0a34b5c3cf34d9b44414d1ed5d91f725d180fa43'
+
'616188911fa7b7c569bc2d5e2024177e67366c48b4ffef1f7ad4dc8e4e9e2cdb421b687f45a1e9bdec8bf2736a157ca9f1e0ba24edae2f073b8c7b5ac42745e8'
+
'd8f24575a3ff848c2eb1b8c32f98942377d17729a874048a3a1ab97f8bdbbca556fe0e8c1e87ef301aa3abd7b3a62fb414a46d99cd346dde51b792e4622d2a49')
+
+_datadir="/usr/share/webapps/${pkgname}"
+_etcdir="/etc/webapps/${pkgname}"
+_homedir="/var/lib/gitlab"
+_logdir="/var/log/gitlab"
+_srcdir="gitlab-shell-v${pkgver}"
+
+prepare() {
+  cd "${srcdir}/${_srcdir}"-*
+
+  # Do not remove: https://bugs.archlinux.org/task/60466 
https://bugs.archlinux.org/task/61164
+  patch -Np1 -i $srcdir/252.patch
+
+  sed -e "s|user: git|user: gitlab|" \
+  -e "s|/home/git|${_homedir}|" \
+  -e "s|# log_file: .*|log_file: \"${_logdir}/gitlab-shell.log\"|" \
+  -e "s|# host:|host:|" \
+  -e "s|# port:|port:|" \
+  -e "s|socket:|# socket:|" \
+  

[arch-commits] Commit in gitlab-shell/repos (6 files)

2018-12-22 Thread Sven-Hendrik Haase via arch-commits
Date: Sunday, December 23, 2018 @ 00:31:34
  Author: svenstaro
Revision: 417579

archrelease: copy trunk to community-staging-x86_64

Added:
  gitlab-shell/repos/community-staging-x86_64/
  gitlab-shell/repos/community-staging-x86_64/252.patch
(from rev 417578, gitlab-shell/trunk/252.patch)
  gitlab-shell/repos/community-staging-x86_64/PKGBUILD
(from rev 417578, gitlab-shell/trunk/PKGBUILD)
  gitlab-shell/repos/community-staging-x86_64/gitlab-shell.gitconfig
(from rev 417578, gitlab-shell/trunk/gitlab-shell.gitconfig)
  gitlab-shell/repos/community-staging-x86_64/gitlab-shell.install
(from rev 417578, gitlab-shell/trunk/gitlab-shell.install)
  gitlab-shell/repos/community-staging-x86_64/gitlab-shell.sysusers
(from rev 417578, gitlab-shell/trunk/gitlab-shell.sysusers)

+
 252.patch  |   31 +++
 PKGBUILD   |   97 +++
 gitlab-shell.gitconfig |5 ++
 gitlab-shell.install   |4 +
 gitlab-shell.sysusers  |1 
 5 files changed, 138 insertions(+)

Copied: gitlab-shell/repos/community-staging-x86_64/252.patch (from rev 417578, 
gitlab-shell/trunk/252.patch)
===
--- community-staging-x86_64/252.patch  (rev 0)
+++ community-staging-x86_64/252.patch  2018-12-23 00:31:34 UTC (rev 417579)
@@ -0,0 +1,31 @@
+From 2ae15257494d925d67c40ac2af00da127079ae42 Mon Sep 17 00:00:00 2001
+From: Vlad Petrov 
+Date: Tue, 16 Oct 2018 22:24:41 +0300
+Subject: [PATCH] Update current path extraction
+
+It is recommended to use func Executable since 1.8
+https://tip.golang.org/pkg/os/#Executable
+---
+ go/cmd/gitlab-shell/main.go | 6 +-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/go/cmd/gitlab-shell/main.go b/go/cmd/gitlab-shell/main.go
+index ae54151..b42aba7 100644
+--- a/go/cmd/gitlab-shell/main.go
 b/go/cmd/gitlab-shell/main.go
+@@ -15,7 +15,11 @@ var (
+ )
+ 
+ func init() {
+-  binDir = filepath.Dir(os.Args[0])
++  ex, err := os.Executable()
++  if err != nil {
++  panic(err)
++  }
++  binDir = filepath.Dir(ex)
+   rootDir = filepath.Dir(binDir)
+ }
+ 
+-- 
+2.18.1
+

Copied: gitlab-shell/repos/community-staging-x86_64/PKGBUILD (from rev 417578, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-12-23 00:31:34 UTC (rev 417579)
@@ -0,0 +1,97 @@
+# Maintainer: Sven-Hendrik Haase 
+# Contributor: Pavol (Lopo) Hluchy 
+# Contributor: Massimiliano Torromeo 
+# Contributor: Jonas Heinrich 
+# Contributor: Lee Watson 
+# Contributor: Tobias Hunger 
+# Contributor: Stefan Tatschner 
+
+
+# NOTE: Gitlab isn't always compatible with modern Ruby versions. In that 
case, check the
+# commit log for an old fix on how to tell it to use older versions of Ruby. 
I'm afraid we'll
+# need this again at some point in the future.
+pkgname=gitlab-shell
+pkgver=8.4.4
+pkgrel=1
+epoch=2
+pkgdesc="Git management software"
+arch=('x86_64')
+url="https://gitlab.com/gitlab-org/gitlab-shell/;
+license=('MIT')
+depends=('ruby' 'redis' 'git')
+makedepends=('go-pie')
+options=('!strip')
+install=gitlab-shell.install
+backup=("etc/webapps/${pkgname}/config.yml"
+"etc/webapps/${pkgname}/secret"
+"etc/webapps/${pkgname}/gitconfig"
+"etc/webapps/${pkgname}/authorized_keys"
+"etc/webapps/${pkgname}/")
+source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-shell/repository/archive?sha=v${pkgver};
+"gitlab-shell.gitconfig"
+"gitlab-shell.sysusers")
+sha512sums=('518b44fe29aaf16c35694446da4a6c1fc175c65993600a668d5bd90cb7c3993c0bc4bd1d47619fd14c3bc4339270bd291d7d7051a69845a36a995a9738f589d8'
+
'5caafe5300621ced58479e724b39656afc17f32a64ecde5dfa4919683ef37d9121552c78f066678472acb56e0a34b5c3cf34d9b44414d1ed5d91f725d180fa43'
+
'616188911fa7b7c569bc2d5e2024177e67366c48b4ffef1f7ad4dc8e4e9e2cdb421b687f45a1e9bdec8bf2736a157ca9f1e0ba24edae2f073b8c7b5ac42745e8')
+
+_datadir="/usr/share/webapps/${pkgname}"
+_etcdir="/etc/webapps/${pkgname}"
+_homedir="/var/lib/gitlab"
+_logdir="/var/log/gitlab"
+_srcdir="gitlab-shell-v${pkgver}"
+
+prepare() {
+  cd "${srcdir}/${_srcdir}"-*
+
+  sed -e "s|user: git|user: gitlab|" \
+  -e "s|/home/git|${_homedir}|" \
+  -e "s|# log_file: .*|log_file: \"${_logdir}/gitlab-shell.log\"|" \
+  -e "s|# host:|host:|" \
+  -e "s|# port:|port:|" \
+  -e "s|socket:|# socket:|" \
+  config.yml.example > config.yml
+}
+
+build() {
+  cd "${srcdir}/${_srcdir}"-*
+
+  ./bin/compile
+}
+
+package() {
+  cd "${srcdir}/${_srcdir}"-*
+
+  install -dm755 -o root -g root "${pkgdir}${_datadir}"
+  install -dm750 -o 105 -g 105 "${pkgdir}${_homedir}"
+  install -dm750 -o 105 -g 105