Date: Wednesday, March 7, 2018 @ 20:55:00 Author: svenstaro Revision: 304145
archrelease: copy trunk to community-x86_64 Added: gitlab-shell/repos/community-x86_64/PKGBUILD (from rev 304144, gitlab-shell/trunk/PKGBUILD) gitlab-shell/repos/community-x86_64/gitlab-shell.gitconfig (from rev 304144, gitlab-shell/trunk/gitlab-shell.gitconfig) gitlab-shell/repos/community-x86_64/gitlab-shell.install (from rev 304144, gitlab-shell/trunk/gitlab-shell.install) gitlab-shell/repos/community-x86_64/gitlab-shell.sysusers (from rev 304144, gitlab-shell/trunk/gitlab-shell.sysusers) Deleted: gitlab-shell/repos/community-x86_64/PKGBUILD gitlab-shell/repos/community-x86_64/gitlab-shell.gitconfig gitlab-shell/repos/community-x86_64/gitlab-shell.install gitlab-shell/repos/community-x86_64/gitlab-shell.sysusers ------------------------+ PKGBUILD | 194 +++++++++++++++++++++++------------------------ gitlab-shell.gitconfig | 6 - gitlab-shell.install | 17 +--- gitlab-shell.sysusers | 2 4 files changed, 108 insertions(+), 111 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-03-07 20:54:41 UTC (rev 304144) +++ PKGBUILD 2018-03-07 20:55:00 UTC (rev 304145) @@ -1,97 +0,0 @@ -# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> -# Contributor: Pavol (Lopo) Hluchy <lopo AT losys DOT eu> -# Contributor: Massimiliano Torromeo <massimiliano.torro...@gmail.com> -# Contributor: Jonas Heinrich <o...@project-insnaity.org> -# Contributor: Lee Watson <a...@revthefox.co.uk> -# Contributor: Tobias Hunger <tobias DOT hunger AT gmail DOT com> -# Contributor: Stefan Tatschner <ste...@sevenbyte.org> - -pkgname=gitlab-shell -pkgver=6.0.3 -pkgrel=1 -epoch=2 -pkgdesc="Git management software" -arch=('x86_64') -url="https://gitlab.com/gitlab-org/gitlab-shell/" -license=('MIT') -depends=('ruby2.3' '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/gitlab-org/gitlab-shell/repository/archive.tar.gz?ref=v${pkgver}" - "gitlab-shell.gitconfig" - "gitlab-shell.sysusers") -sha512sums=('62ca96c52d46934aab20aa440c7d16f98577fe1fec820e8b15f157d6ff921a5a225516f30cdb03aa3b863af6ef77bbb6336d1afa6f6a4d5990a2c719564caa30' - '9428eaba40eb3ef52024bb01321de860e149242a15465543030317233486aa37b40c5b946aba57451d07cec98b35fcc95d60fd7b376f77c218034b6cf94d191d' - '5c6306494694fdd07ee475a58a6e5b83613ac7ef294ebb13f52eaa5dbe72ffcee034726245206d7edbba4b5c5e808abdfe5be7631b722492d3334407fd69840f') - -_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}" - - # 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 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/PKGBUILD (from rev 304144, gitlab-shell/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-03-07 20:55:00 UTC (rev 304145) @@ -0,0 +1,97 @@ +# Maintainer: Sven-Hendrik Haase <s...@lutzhaase.com> +# Contributor: Pavol (Lopo) Hluchy <lopo AT losys DOT eu> +# Contributor: Massimiliano Torromeo <massimiliano.torro...@gmail.com> +# Contributor: Jonas Heinrich <o...@project-insnaity.org> +# Contributor: Lee Watson <a...@revthefox.co.uk> +# Contributor: Tobias Hunger <tobias DOT hunger AT gmail DOT com> +# Contributor: Stefan Tatschner <ste...@sevenbyte.org> + +pkgname=gitlab-shell +pkgver=6.0.4 +pkgrel=1 +epoch=2 +pkgdesc="Git management software" +arch=('x86_64') +url="https://gitlab.com/gitlab-org/gitlab-shell/" +license=('MIT') +depends=('ruby2.3' '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/gitlab-org/gitlab-shell/repository/archive.tar.gz?ref=v${pkgver}" + "gitlab-shell.gitconfig" + "gitlab-shell.sysusers") +sha512sums=('65237759bd33615231bd0ed6d0a4a26979c831afb0b3fd7fe40ec727450945aee98cb95b3e0bb3dbfc8896402a0a1c9e45108ac4185b44f99bb93b19a05530ac' + '9428eaba40eb3ef52024bb01321de860e149242a15465543030317233486aa37b40c5b946aba57451d07cec98b35fcc95d60fd7b376f77c218034b6cf94d191d' + '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 + + 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}" + + # 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 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: Deleted: gitlab-shell.gitconfig =================================================================== --- gitlab-shell.gitconfig 2018-03-07 20:54:41 UTC (rev 304144) +++ gitlab-shell.gitconfig 2018-03-07 20:55:00 UTC (rev 304145) @@ -1,3 +0,0 @@ -[user] - name = GitLab - email = gitlab@localhost Copied: gitlab-shell/repos/community-x86_64/gitlab-shell.gitconfig (from rev 304144, gitlab-shell/trunk/gitlab-shell.gitconfig) =================================================================== --- gitlab-shell.gitconfig (rev 0) +++ gitlab-shell.gitconfig 2018-03-07 20:55:00 UTC (rev 304145) @@ -0,0 +1,3 @@ +[user] + name = GitLab + email = gitlab@localhost Deleted: gitlab-shell.install =================================================================== --- gitlab-shell.install 2018-03-07 20:54:41 UTC (rev 304144) +++ gitlab-shell.install 2018-03-07 20:55:00 UTC (rev 304145) @@ -1,10 +0,0 @@ -post_install() { - - # make sure the user exists... - systemd-sysusers gitlab-shell.conf - # ... and change the shell. - usermod -s "/usr/share/webapps/gitlab-shell/bin/gitlab-shell" gitlab - - 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/gitlab-shell.install (from rev 304144, gitlab-shell/trunk/gitlab-shell.install) =================================================================== --- gitlab-shell.install (rev 0) +++ gitlab-shell.install 2018-03-07 20:55:00 UTC (rev 304145) @@ -0,0 +1,7 @@ +post_install() { + # make sure the user exists... + systemd-sysusers gitlab-shell.conf + + echo "Configure gitlab-shell in /etc/webapps/gitlab-shell/config.yml" + echo "Put a secret bytestring to /etc/webapps/gitlab-shell/secret" +} Deleted: gitlab-shell.sysusers =================================================================== --- gitlab-shell.sysusers 2018-03-07 20:54:41 UTC (rev 304144) +++ gitlab-shell.sysusers 2018-03-07 20:55:00 UTC (rev 304145) @@ -1 +0,0 @@ -u gitlab 105 - /var/lib/gitlab Copied: gitlab-shell/repos/community-x86_64/gitlab-shell.sysusers (from rev 304144, gitlab-shell/trunk/gitlab-shell.sysusers) =================================================================== --- gitlab-shell.sysusers (rev 0) +++ gitlab-shell.sysusers 2018-03-07 20:55:00 UTC (rev 304145) @@ -0,0 +1 @@ +u gitlab 105 - /var/lib/gitlab /usr/share/webapps/gitlab-shell/bin/gitlab-shell