[arch-commits] Commit in gitlab-shell/repos (8 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Mon Aug 7 15:58:56 UTC 2017
Date: Monday, August 7, 2017 @ 15:58:55
Author: svenstaro
Revision: 249471
archrelease: copy trunk to community-i686, community-x86_64
Added:
gitlab-shell/repos/community-i686/
gitlab-shell/repos/community-i686/PKGBUILD
(from rev 249470, gitlab-shell/trunk/PKGBUILD)
gitlab-shell/repos/community-i686/gitlab-shell.gitconfig
(from rev 249470, gitlab-shell/trunk/gitlab-shell.gitconfig)
gitlab-shell/repos/community-i686/gitlab-shell.install
(from rev 249470, gitlab-shell/trunk/gitlab-shell.install)
gitlab-shell/repos/community-x86_64/
gitlab-shell/repos/community-x86_64/PKGBUILD
(from rev 249470, gitlab-shell/trunk/PKGBUILD)
gitlab-shell/repos/community-x86_64/gitlab-shell.gitconfig
(from rev 249470, gitlab-shell/trunk/gitlab-shell.gitconfig)
gitlab-shell/repos/community-x86_64/gitlab-shell.install
(from rev 249470, gitlab-shell/trunk/gitlab-shell.install)
-----------------------------------------+
community-i686/PKGBUILD | 92 ++++++++++++++++++++++++++++++
community-i686/gitlab-shell.gitconfig | 3
community-i686/gitlab-shell.install | 7 ++
community-x86_64/PKGBUILD | 92 ++++++++++++++++++++++++++++++
community-x86_64/gitlab-shell.gitconfig | 3
community-x86_64/gitlab-shell.install | 7 ++
6 files changed, 204 insertions(+)
Copied: gitlab-shell/repos/community-i686/PKGBUILD (from rev 249470, gitlab-shell/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2017-08-07 15:58:55 UTC (rev 249471)
@@ -0,0 +1,92 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Pavol (Lopo) Hluchy <lopo AT losys DOT eu>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Jonas Heinrich <onny at project-insnaity.org>
+# Contributor: Lee Watson <aur at revthefox.co.uk>
+# Contributor: Tobias Hunger <tobias DOT hunger AT gmail DOT com>
+# Contributor: Stefan Tatschner <stefan at sevenbyte.org>
+
+pkgname=gitlab-shell
+pkgver=5.7.0
+pkgrel=2
+epoch=1
+pkgdesc="Git management software"
+arch=('i686' 'x86_64')
+url="https://gitlab.com/gitlab-org/gitlab-shell/"
+license=('MIT')
+depends=('ruby2.3' 'redis' 'git')
+makedepends=('go')
+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/gitlab-org/gitlab-shell/repository/archive.tar.gz?ref=v${pkgver}"
+ "gitlab-shell.gitconfig")
+md5sums=('60b0a57e02bb83e50fb45af6a64e6b77'
+ '6b917256b13a1685e9a3cc73e68152d0')
+
+_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
+
+ for file in {bin,hooks}/*; do
+ sed -i s/ruby/ruby-2.3/g ${file}
+ done
+}
+
+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 "${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}"
+
+ # .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 lib spec support "${pkgdir}${_datadir}"
+ ln -fs "${_datadir}" "${pkgdir}/${_homedir}/"
+
+ 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: gitlab-shell/repos/community-i686/gitlab-shell.gitconfig (from rev 249470, gitlab-shell/trunk/gitlab-shell.gitconfig)
===================================================================
--- community-i686/gitlab-shell.gitconfig (rev 0)
+++ community-i686/gitlab-shell.gitconfig 2017-08-07 15:58:55 UTC (rev 249471)
@@ -0,0 +1,3 @@
+[user]
+ name = GitLab
+ email = gitlab at localhost
Copied: gitlab-shell/repos/community-i686/gitlab-shell.install (from rev 249470, gitlab-shell/trunk/gitlab-shell.install)
===================================================================
--- community-i686/gitlab-shell.install (rev 0)
+++ community-i686/gitlab-shell.install 2017-08-07 15:58:55 UTC (rev 249471)
@@ -0,0 +1,7 @@
+post_install() {
+ getent group gitlab > /dev/null || groupadd -g 105 gitlab 1>/dev/null
+ getent passwd gitlab > /dev/null || useradd -u 105 -d "/var/lib/gitlab" -g gitlab -s "/usr/share/webapps/gitlab-shell/bin/gitlab-shell" gitlab 1>/dev/null
+
+ echo "Configure gitlab-shell in /etc/webapps/gitlab-shell/config.yml"
+ echo "Put a secret bytestring to /etc/webapps/gitlab-shell/secret"
+}
Copied: gitlab-shell/repos/community-x86_64/PKGBUILD (from rev 249470, gitlab-shell/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2017-08-07 15:58:55 UTC (rev 249471)
@@ -0,0 +1,92 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Pavol (Lopo) Hluchy <lopo AT losys DOT eu>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Jonas Heinrich <onny at project-insnaity.org>
+# Contributor: Lee Watson <aur at revthefox.co.uk>
+# Contributor: Tobias Hunger <tobias DOT hunger AT gmail DOT com>
+# Contributor: Stefan Tatschner <stefan at sevenbyte.org>
+
+pkgname=gitlab-shell
+pkgver=5.7.0
+pkgrel=2
+epoch=1
+pkgdesc="Git management software"
+arch=('i686' 'x86_64')
+url="https://gitlab.com/gitlab-org/gitlab-shell/"
+license=('MIT')
+depends=('ruby2.3' 'redis' 'git')
+makedepends=('go')
+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/gitlab-org/gitlab-shell/repository/archive.tar.gz?ref=v${pkgver}"
+ "gitlab-shell.gitconfig")
+md5sums=('60b0a57e02bb83e50fb45af6a64e6b77'
+ '6b917256b13a1685e9a3cc73e68152d0')
+
+_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
+
+ for file in {bin,hooks}/*; do
+ sed -i s/ruby/ruby-2.3/g ${file}
+ done
+}
+
+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 "${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}"
+
+ # .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 lib spec support "${pkgdir}${_datadir}"
+ ln -fs "${_datadir}" "${pkgdir}/${_homedir}/"
+
+ 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: gitlab-shell/repos/community-x86_64/gitlab-shell.gitconfig (from rev 249470, gitlab-shell/trunk/gitlab-shell.gitconfig)
===================================================================
--- community-x86_64/gitlab-shell.gitconfig (rev 0)
+++ community-x86_64/gitlab-shell.gitconfig 2017-08-07 15:58:55 UTC (rev 249471)
@@ -0,0 +1,3 @@
+[user]
+ name = GitLab
+ email = gitlab at localhost
Copied: gitlab-shell/repos/community-x86_64/gitlab-shell.install (from rev 249470, gitlab-shell/trunk/gitlab-shell.install)
===================================================================
--- community-x86_64/gitlab-shell.install (rev 0)
+++ community-x86_64/gitlab-shell.install 2017-08-07 15:58:55 UTC (rev 249471)
@@ -0,0 +1,7 @@
+post_install() {
+ getent group gitlab > /dev/null || groupadd -g 105 gitlab 1>/dev/null
+ getent passwd gitlab > /dev/null || useradd -u 105 -d "/var/lib/gitlab" -g gitlab -s "/usr/share/webapps/gitlab-shell/bin/gitlab-shell" gitlab 1>/dev/null
+
+ echo "Configure gitlab-shell in /etc/webapps/gitlab-shell/config.yml"
+ echo "Put a secret bytestring to /etc/webapps/gitlab-shell/secret"
+}
More information about the arch-commits
mailing list