65 lines
2.2 KiB
Text
65 lines
2.2 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=gitlab-shell
|
|
pkgver=14.15.0
|
|
pkgrel=0
|
|
pkgdesc="GitLab Shell handles git SSH sessions for GitLab"
|
|
url="https://gitlab.com/gitlab-org/gitlab-shell"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="git openssh"
|
|
makedepends="go"
|
|
pkgusers="git"
|
|
pkggroups="git"
|
|
install="$pkgname.pre-install $pkgname.post-install"
|
|
# NOTE: user vs system gitconfig, see https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/6166
|
|
source="https://gitlab.com/gitlab-org/$pkgname/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz
|
|
config.patch
|
|
change-config-path.patch
|
|
gitconfig
|
|
"
|
|
builddir="$srcdir/$pkgname-v$pkgver"
|
|
options="!check"
|
|
|
|
build() {
|
|
# BUILD_TAGS - build without tracing libs,
|
|
# see https://gitlab.com/gitlab-org/labkit/-/merge_requests/2
|
|
make build \
|
|
VERSION_STRING="$pkgver" \
|
|
BUILD_TAGS=""
|
|
}
|
|
|
|
package() {
|
|
local datadir="$pkgdir/var/lib/gitlab"
|
|
local libdir="$pkgdir/usr/lib/gitlab-shell"
|
|
|
|
# XXX: I couldn't figure out how/where is gitlab-shell called,
|
|
# so I kept /usr/lib/gitlab-shell. It should be changed to /usr.
|
|
make install DESTDIR="$pkgdir" PREFIX=/usr/lib/gitlab-shell
|
|
|
|
install -m644 VERSION "$libdir"/
|
|
install -m644 -D config.yml.example "$pkgdir"/etc/gitlab/gitlab-shell.yml
|
|
|
|
cd "$pkgdir"
|
|
|
|
rm "$libdir"/bin/gitlab-sshd
|
|
|
|
install -d -m755 -o git -g git \
|
|
"$pkgdir"/var/log/gitlab \
|
|
"$datadir"
|
|
|
|
install -d -m02770 -o git -g git \
|
|
"$datadir"/repositories
|
|
|
|
install -m644 -o git -g git "$srcdir"/gitconfig "$datadir"/.gitconfig
|
|
|
|
ln -s /etc/gitlab/gitlab-shell.yml "$libdir"/config.yml
|
|
ln -s /etc/gitlab/gitlab_shell_secret "$libdir"/.gitlab_shell_secret
|
|
}
|
|
|
|
sha512sums="
|
|
d13f71012801fa9b24728776f74237b891c6dae5be430c6ea50e1326b3ecabc4b9f0691c04d71d52862744244f47e58ecf8b3f7b3eebc4140fc3a227a5e9d42c gitlab-shell-v14.15.0.tar.gz
|
|
0c42072b8c3a1206e5ff0d90727b4762bbccafa709c6daa2fb4ef384d66850308b08bd54411728b84d53ca9645eacec152fb4a20dd9efb26ba651e6161de1f3d config.patch
|
|
499b3a46ea94a33a23b01f6a7509d74f5a6781b930619b3b8ae42bdeae8a052cc636578744d7992b4ae4f9b9f72b11ee3d3c0f5e50986fa3f7e35b979b08aada change-config-path.patch
|
|
c53da7f145593693392d9fa880ad5a1909bfc7504fd1c93d94a468c3e0f5cc80f712f41ee1dc8bf38105b410c1165658f208bd88a70c4674104c78af33d8d09c gitconfig
|
|
"
|