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

2020-05-22 Thread Anatol Pomozov via arch-commits
Date: Saturday, May 23, 2020 @ 05:35:07
  Author: anatolik
Revision: 631841

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 631840, gitlab-shell/trunk/PKGBUILD)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.gitconfig
(from rev 631840, gitlab-shell/trunk/gitlab-shell.gitconfig)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.install
(from rev 631840, gitlab-shell/trunk/gitlab-shell.install)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.sysusers
(from rev 631840, gitlab-shell/trunk/gitlab-shell.sysusers)

+
 PKGBUILD   |  103 +++
 gitlab-shell.gitconfig |5 ++
 gitlab-shell.install   |9 
 gitlab-shell.sysusers  |1 
 4 files changed, 118 insertions(+)

Copied: gitlab-shell/repos/community-testing-x86_64/PKGBUILD (from rev 631840, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-05-23 05:35:07 UTC (rev 631841)
@@ -0,0 +1,103 @@
+# 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=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;
+"gitlab-shell.gitconfig"
+"gitlab-shell.sysusers")
+sha512sums=('75aa095b4912a7ce7e7523a454cb32b543cb3e0061cba8c5346cf2837b486dee49fad855d73086ad7a303cfd9e47f4119e2d3806deaab0bea0bd745f0122fd61'
+
'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}"
+
+  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
+  mv config.yml "${pkgdir}${_etcdir}"
+  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 gitlab-shell "$pkgdir"/${_datadir}/bin/gitlab-shell-ruby
+
+  install -dm2770 -o 105 -g 105 "${pkgdir}${_homedir}/repositories"
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

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

2020-04-24 Thread Anatol Pomozov via arch-commits
Date: Friday, April 24, 2020 @ 18:21:17
  Author: anatolik
Revision: 619461

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 619460, gitlab-shell/trunk/PKGBUILD)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.gitconfig
(from rev 619460, gitlab-shell/trunk/gitlab-shell.gitconfig)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.install
(from rev 619460, gitlab-shell/trunk/gitlab-shell.install)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.sysusers
(from rev 619460, gitlab-shell/trunk/gitlab-shell.sysusers)

+
 PKGBUILD   |  100 +++
 gitlab-shell.gitconfig |5 ++
 gitlab-shell.install   |9 
 gitlab-shell.sysusers  |1 
 4 files changed, 115 insertions(+)

Copied: gitlab-shell/repos/community-testing-x86_64/PKGBUILD (from rev 619460, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-04-24 18:21:17 UTC (rev 619461)
@@ -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=12.2.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-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=('99456138dea56bf3a178f2c41d29aec2e5c82f5030918483761c894460b3583944f3356f93a90dbe14ba5a661e093d2b227c4aec684f0625a93398366b90b112'
+
'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}"-*
+
+  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
+  mv config.yml "${pkgdir}${_etcdir}"
+  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 gitlab-shell "$pkgdir"/${_datadir}/bin/gitlab-shell-ruby
+
+  install -dm2770 -o 105 -g 105 "${pkgdir}${_homedir}/repositories"
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: 

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

2020-03-06 Thread Anatol Pomozov via arch-commits
Date: Friday, March 6, 2020 @ 19:32:56
  Author: anatolik
Revision: 591050

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 591049, gitlab-shell/trunk/PKGBUILD)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.gitconfig
(from rev 591049, gitlab-shell/trunk/gitlab-shell.gitconfig)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.install
(from rev 591049, gitlab-shell/trunk/gitlab-shell.install)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.sysusers
(from rev 591049, gitlab-shell/trunk/gitlab-shell.sysusers)

+
 PKGBUILD   |  100 +++
 gitlab-shell.gitconfig |5 ++
 gitlab-shell.install   |9 
 gitlab-shell.sysusers  |1 
 4 files changed, 115 insertions(+)

Copied: gitlab-shell/repos/community-testing-x86_64/PKGBUILD (from rev 591049, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-03-06 19:32:56 UTC (rev 591050)
@@ -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=12.0.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-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=('f131e92e4fc18c2ef3f6d6d16a5fefbf5eec4aac1f32bb09640757589776bfac79f5cf3efdfa70073be0a366f9c141f3292131e37cc5bf6481abebd01d30e021'
+
'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}"-*
+
+  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
+  mv config.yml "${pkgdir}${_etcdir}"
+  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 gitlab-shell "$pkgdir"/${_datadir}/bin/gitlab-shell-ruby
+
+  install -dm2770 -o 105 -g 105 "${pkgdir}${_homedir}/repositories"
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: 

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

2020-01-10 Thread Anatol Pomozov via arch-commits
Date: Friday, January 10, 2020 @ 23:06:47
  Author: anatolik
Revision: 551825

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 551823, gitlab-shell/trunk/PKGBUILD)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.gitconfig
(from rev 551823, gitlab-shell/trunk/gitlab-shell.gitconfig)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.install
(from rev 551824, gitlab-shell/trunk/gitlab-shell.install)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.sysusers
(from rev 551824, gitlab-shell/trunk/gitlab-shell.sysusers)

+
 PKGBUILD   |  100 +++
 gitlab-shell.gitconfig |5 ++
 gitlab-shell.install   |9 
 gitlab-shell.sysusers  |1 
 4 files changed, 115 insertions(+)

Copied: gitlab-shell/repos/community-testing-x86_64/PKGBUILD (from rev 551823, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2020-01-10 23:06:47 UTC (rev 551825)
@@ -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=11.0.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-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=('f5f0f8df4195f4d64938ff4b2e76efa55a701f623d88497eb12aaeea93b31c3712ef3613bbf58adb2f57653d9ea01742a8b99b70f615e08d6a61fa1e668868d4'
+
'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}"-*
+
+  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
+  mv config.yml "${pkgdir}${_etcdir}"
+  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 gitlab-shell "$pkgdir"/${_datadir}/bin/gitlab-shell-ruby
+
+  install -dm2770 -o 105 -g 105 "${pkgdir}${_homedir}/repositories"
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: 

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

2020-01-02 Thread Evangelos Foutras via arch-commits
Date: Thursday, January 2, 2020 @ 11:08:12
  Author: foutrelis
Revision: 546034

archrelease: copy trunk to community-staging-x86_64

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

+
 PKGBUILD   |  100 +++
 gitlab-shell.gitconfig |5 ++
 gitlab-shell.install   |9 
 gitlab-shell.sysusers  |1 
 4 files changed, 115 insertions(+)

Copied: gitlab-shell/repos/community-staging-x86_64/PKGBUILD (from rev 546033, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-staging-x86_64/PKGBUILD   (rev 0)
+++ community-staging-x86_64/PKGBUILD   2020-01-02 11:08:12 UTC (rev 546034)
@@ -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=10.3.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-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=('c074688262894a70feeb0efd80f75d5224f39bd6642b8371c77fef88e2e09a586925748088f832bfc8cd150575c520d12db229fadb0401e63bbe4309283244a7'
+
'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}"-*
+
+  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
+  mv config.yml "${pkgdir}${_etcdir}"
+  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 gitlab-shell "$pkgdir"/${_datadir}/bin/gitlab-shell-ruby
+
+  install -dm2770 -o 105 -g 105 "${pkgdir}${_homedir}/repositories"
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: 

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

2019-12-27 Thread Anatol Pomozov via arch-commits
Date: Friday, December 27, 2019 @ 20:13:07
  Author: anatolik
Revision: 543284

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 543283, gitlab-shell/trunk/PKGBUILD)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.gitconfig
(from rev 543283, gitlab-shell/trunk/gitlab-shell.gitconfig)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.install
(from rev 543283, gitlab-shell/trunk/gitlab-shell.install)
  gitlab-shell/repos/community-testing-x86_64/gitlab-shell.sysusers
(from rev 543283, gitlab-shell/trunk/gitlab-shell.sysusers)

+
 PKGBUILD   |  100 +++
 gitlab-shell.gitconfig |5 ++
 gitlab-shell.install   |9 
 gitlab-shell.sysusers  |1 
 4 files changed, 115 insertions(+)

Copied: gitlab-shell/repos/community-testing-x86_64/PKGBUILD (from rev 543283, 
gitlab-shell/trunk/PKGBUILD)
===
--- community-testing-x86_64/PKGBUILD   (rev 0)
+++ community-testing-x86_64/PKGBUILD   2019-12-27 20:13:07 UTC (rev 543284)
@@ -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=10.3.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-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=('c074688262894a70feeb0efd80f75d5224f39bd6642b8371c77fef88e2e09a586925748088f832bfc8cd150575c520d12db229fadb0401e63bbe4309283244a7'
+
'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}"-*
+
+  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
+  mv config.yml "${pkgdir}${_etcdir}"
+  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 gitlab-shell "$pkgdir"/${_datadir}/bin/gitlab-shell-ruby
+
+  install -dm2770 -o 105 -g 105 "${pkgdir}${_homedir}/repositories"
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: