added ebuild for gitlab-shell-2.6.2
This commit is contained in:
parent
622e6396f9
commit
f214c396a6
2 changed files with 128 additions and 0 deletions
|
@ -15,6 +15,7 @@ DIST gitlab-shell-2.4.3.tar.gz 22930 SHA256 16bdda3a3b2fe933c48f74a79a4e604fd28e
|
||||||
DIST gitlab-shell-2.5.3.tar.gz 30346 SHA256 f1aa09a6e77efb22183f5288bd2f3f5f36dcdf6a8ba9f550713897a638157f16 SHA512 e18ae2ce924beeae00e1aade50a22ef80a706a2b9b060f64902cba26f6314c4794f42a3694c34f438f0cf2b595d638c94f7ec2010ca554d459de5b2f92bc1288 WHIRLPOOL 35cbc643aefa2b7b25c6ddd322e9e62dadb7b7ffaaab9fe417fea9ed8af305836d50f48eff6a57bdd37f2b2fa6e2567104d97e3b45929290b12eaffbc9b50225
|
DIST gitlab-shell-2.5.3.tar.gz 30346 SHA256 f1aa09a6e77efb22183f5288bd2f3f5f36dcdf6a8ba9f550713897a638157f16 SHA512 e18ae2ce924beeae00e1aade50a22ef80a706a2b9b060f64902cba26f6314c4794f42a3694c34f438f0cf2b595d638c94f7ec2010ca554d459de5b2f92bc1288 WHIRLPOOL 35cbc643aefa2b7b25c6ddd322e9e62dadb7b7ffaaab9fe417fea9ed8af305836d50f48eff6a57bdd37f2b2fa6e2567104d97e3b45929290b12eaffbc9b50225
|
||||||
DIST gitlab-shell-2.5.4.tar.gz 31787 SHA256 d27d5c5d73724d68af99783f8fc561b9398582188d0ecee4265b310cd41e3a5b SHA512 40d687707a3c65b91f9a7f9db257993618e09d7ad9ceb5636e926690795053f62664ac1a19b90c6aebc0d97c709aa4c6be17fab52a8378a74238168b36c238d5 WHIRLPOOL c89fcada281844d3552ed992f56cb31a2bded8c6e8db6bc564ddb91ae3aa566c2a8493306707c2b726c36de284a308f30e74ffe7a2212db3c58e7578e985e0c2
|
DIST gitlab-shell-2.5.4.tar.gz 31787 SHA256 d27d5c5d73724d68af99783f8fc561b9398582188d0ecee4265b310cd41e3a5b SHA512 40d687707a3c65b91f9a7f9db257993618e09d7ad9ceb5636e926690795053f62664ac1a19b90c6aebc0d97c709aa4c6be17fab52a8378a74238168b36c238d5 WHIRLPOOL c89fcada281844d3552ed992f56cb31a2bded8c6e8db6bc564ddb91ae3aa566c2a8493306707c2b726c36de284a308f30e74ffe7a2212db3c58e7578e985e0c2
|
||||||
DIST gitlab-shell-2.6.0.tar.gz 31999 SHA256 1aa1628fc9db2e1fe226848e8d06c0d818a12713f85b21d4756b639de71c302c SHA512 6141651afc0fba3467769956f64f9f0ed4d4111e5646e442ddf32a874597ab45565acf857a82359421a8d02d79d7474d6b924bf16e14c566eda2a3ea02386433 WHIRLPOOL 7622654ff3700198280f20f4d2a9e85ab54f2a3157d25b37e0bed33ae9166059110b661a50b2fd36f3c526c5c0d4f4e5526495abeeaef45487360bb4d135350b
|
DIST gitlab-shell-2.6.0.tar.gz 31999 SHA256 1aa1628fc9db2e1fe226848e8d06c0d818a12713f85b21d4756b639de71c302c SHA512 6141651afc0fba3467769956f64f9f0ed4d4111e5646e442ddf32a874597ab45565acf857a82359421a8d02d79d7474d6b924bf16e14c566eda2a3ea02386433 WHIRLPOOL 7622654ff3700198280f20f4d2a9e85ab54f2a3157d25b37e0bed33ae9166059110b661a50b2fd36f3c526c5c0d4f4e5526495abeeaef45487360bb4d135350b
|
||||||
|
DIST gitlab-shell-2.6.2.tar.gz 32108 SHA256 4e9885379af546ad50165f3c95110f130f8a4b2bddfae1a746f225df19960826 SHA512 353a25a391ad6818f631437cbd6735491e7ae61e0184f5ee52a69eb9a1f24354fc7c6752896c91dbf7ff6dd5f9df6ae8cb4cb0f022ac3d838fa693aa5244410a WHIRLPOOL c32642442b3a1d0519aa563261cd353ee8bc2cfc115d868a3179f56d947be0fdbbd3bb6bea8a4b2e1077f8de890b430a534f1135b59e2562d06c41ce0b995db0
|
||||||
EBUILD gitlab-shell-1.9.3.ebuild 3381 SHA256 c62f0c0d33d004fadbc8172254ca61a04b921cad4fb21228284502ce79dbf983 SHA512 de85888a48e18210c0b3b5ce6bd36c9473e5c0d592c8657fea9c56856661cc261a3542b6cdcc4277a52d810265c73098ec81045abf2e5d33970a3116125b7719 WHIRLPOOL acf3fdedb73b8ecf025cad85bfd1503b8de796d6bc4d5c37a2ac371c4cd94c777f868cf514f201909ea660de8f6fecc02d177254764ba25ac3b75d8e5804b332
|
EBUILD gitlab-shell-1.9.3.ebuild 3381 SHA256 c62f0c0d33d004fadbc8172254ca61a04b921cad4fb21228284502ce79dbf983 SHA512 de85888a48e18210c0b3b5ce6bd36c9473e5c0d592c8657fea9c56856661cc261a3542b6cdcc4277a52d810265c73098ec81045abf2e5d33970a3116125b7719 WHIRLPOOL acf3fdedb73b8ecf025cad85bfd1503b8de796d6bc4d5c37a2ac371c4cd94c777f868cf514f201909ea660de8f6fecc02d177254764ba25ac3b75d8e5804b332
|
||||||
EBUILD gitlab-shell-1.9.4.ebuild 3341 SHA256 6947af19aeb95a832fc2fc7a82b021afe5a4fb3897c37cde62929125ae31f471 SHA512 ad20f6df96a12aa5afa2a659f92889a39bdd7f8a9dee8df6362d90a41e982d7d49162adc44a2d20fbd9a739f2a11dfd440fd89a611bb580d423198f0baa53578 WHIRLPOOL eca0e2d014bcc81655cec619515ad4fc3efd83a9375042a75ae5a03b048c6ea5f56f4291d30a94de9ca6fc5bdef4910ffef87d063b09f10f50b084569c629695
|
EBUILD gitlab-shell-1.9.4.ebuild 3341 SHA256 6947af19aeb95a832fc2fc7a82b021afe5a4fb3897c37cde62929125ae31f471 SHA512 ad20f6df96a12aa5afa2a659f92889a39bdd7f8a9dee8df6362d90a41e982d7d49162adc44a2d20fbd9a739f2a11dfd440fd89a611bb580d423198f0baa53578 WHIRLPOOL eca0e2d014bcc81655cec619515ad4fc3efd83a9375042a75ae5a03b048c6ea5f56f4291d30a94de9ca6fc5bdef4910ffef87d063b09f10f50b084569c629695
|
||||||
EBUILD gitlab-shell-1.9.6.ebuild 3341 SHA256 6947af19aeb95a832fc2fc7a82b021afe5a4fb3897c37cde62929125ae31f471 SHA512 ad20f6df96a12aa5afa2a659f92889a39bdd7f8a9dee8df6362d90a41e982d7d49162adc44a2d20fbd9a739f2a11dfd440fd89a611bb580d423198f0baa53578 WHIRLPOOL eca0e2d014bcc81655cec619515ad4fc3efd83a9375042a75ae5a03b048c6ea5f56f4291d30a94de9ca6fc5bdef4910ffef87d063b09f10f50b084569c629695
|
EBUILD gitlab-shell-1.9.6.ebuild 3341 SHA256 6947af19aeb95a832fc2fc7a82b021afe5a4fb3897c37cde62929125ae31f471 SHA512 ad20f6df96a12aa5afa2a659f92889a39bdd7f8a9dee8df6362d90a41e982d7d49162adc44a2d20fbd9a739f2a11dfd440fd89a611bb580d423198f0baa53578 WHIRLPOOL eca0e2d014bcc81655cec619515ad4fc3efd83a9375042a75ae5a03b048c6ea5f56f4291d30a94de9ca6fc5bdef4910ffef87d063b09f10f50b084569c629695
|
||||||
|
@ -30,3 +31,4 @@ EBUILD gitlab-shell-2.4.3.ebuild 3502 SHA256 6c604db35e20522c499f45d5994c421ea08
|
||||||
EBUILD gitlab-shell-2.5.3.ebuild 3502 SHA256 6c604db35e20522c499f45d5994c421ea08b25313f630af8349441ddae96d757 SHA512 8d492097a53e1314212c263730b5f00f8f53c8d52b1fdc8b6c5d8abed86927f4ff56c2bf04a430dd6aa0b155d4531881d5fbbd7d8948131ec609dc2d7eb41080 WHIRLPOOL 2b491377ffe21cd0706e6c8422e1c5b52530460b08abbc315cb7e172a052f1acfdabc335575b284bd8a9107cc83d4d1411e3afe1294710d4064d14025acf1bb4
|
EBUILD gitlab-shell-2.5.3.ebuild 3502 SHA256 6c604db35e20522c499f45d5994c421ea08b25313f630af8349441ddae96d757 SHA512 8d492097a53e1314212c263730b5f00f8f53c8d52b1fdc8b6c5d8abed86927f4ff56c2bf04a430dd6aa0b155d4531881d5fbbd7d8948131ec609dc2d7eb41080 WHIRLPOOL 2b491377ffe21cd0706e6c8422e1c5b52530460b08abbc315cb7e172a052f1acfdabc335575b284bd8a9107cc83d4d1411e3afe1294710d4064d14025acf1bb4
|
||||||
EBUILD gitlab-shell-2.5.4.ebuild 3502 SHA256 6c604db35e20522c499f45d5994c421ea08b25313f630af8349441ddae96d757 SHA512 8d492097a53e1314212c263730b5f00f8f53c8d52b1fdc8b6c5d8abed86927f4ff56c2bf04a430dd6aa0b155d4531881d5fbbd7d8948131ec609dc2d7eb41080 WHIRLPOOL 2b491377ffe21cd0706e6c8422e1c5b52530460b08abbc315cb7e172a052f1acfdabc335575b284bd8a9107cc83d4d1411e3afe1294710d4064d14025acf1bb4
|
EBUILD gitlab-shell-2.5.4.ebuild 3502 SHA256 6c604db35e20522c499f45d5994c421ea08b25313f630af8349441ddae96d757 SHA512 8d492097a53e1314212c263730b5f00f8f53c8d52b1fdc8b6c5d8abed86927f4ff56c2bf04a430dd6aa0b155d4531881d5fbbd7d8948131ec609dc2d7eb41080 WHIRLPOOL 2b491377ffe21cd0706e6c8422e1c5b52530460b08abbc315cb7e172a052f1acfdabc335575b284bd8a9107cc83d4d1411e3afe1294710d4064d14025acf1bb4
|
||||||
EBUILD gitlab-shell-2.6.0.ebuild 3500 SHA256 8de274d1be0c80ad57639ade47a6ca9d4446aed136a8cf75d6d821a3e9c414cf SHA512 10f1720fdcdbf96f95b9c5c5e2d396d49b1012bb7dc41c8cea3d9b9d3add0c7dc9574b47a90790e189e755ca8097c076a92cb279291f7112af1bfe5c6fd15fdd WHIRLPOOL affb0799af07ee36201eb5594296a74eb279d176b1713f6566cec067db5b4749057c5189b291f9fe28d94bb35e1e8e7d5baa6f00915ef9fa220199b3ed2b66c6
|
EBUILD gitlab-shell-2.6.0.ebuild 3500 SHA256 8de274d1be0c80ad57639ade47a6ca9d4446aed136a8cf75d6d821a3e9c414cf SHA512 10f1720fdcdbf96f95b9c5c5e2d396d49b1012bb7dc41c8cea3d9b9d3add0c7dc9574b47a90790e189e755ca8097c076a92cb279291f7112af1bfe5c6fd15fdd WHIRLPOOL affb0799af07ee36201eb5594296a74eb279d176b1713f6566cec067db5b4749057c5189b291f9fe28d94bb35e1e8e7d5baa6f00915ef9fa220199b3ed2b66c6
|
||||||
|
EBUILD gitlab-shell-2.6.2.ebuild 3500 SHA256 8de274d1be0c80ad57639ade47a6ca9d4446aed136a8cf75d6d821a3e9c414cf SHA512 10f1720fdcdbf96f95b9c5c5e2d396d49b1012bb7dc41c8cea3d9b9d3add0c7dc9574b47a90790e189e755ca8097c076a92cb279291f7112af1bfe5c6fd15fdd WHIRLPOOL affb0799af07ee36201eb5594296a74eb279d176b1713f6566cec067db5b4749057c5189b291f9fe28d94bb35e1e8e7d5baa6f00915ef9fa220199b3ed2b66c6
|
||||||
|
|
126
dev-vcs/gitlab-shell/gitlab-shell-2.6.2.ebuild
Normal file
126
dev-vcs/gitlab-shell/gitlab-shell-2.6.2.ebuild
Normal file
|
@ -0,0 +1,126 @@
|
||||||
|
# Copyright 1999-2014 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
EAPI="5"
|
||||||
|
|
||||||
|
USE_RUBY="ruby20 ruby21"
|
||||||
|
|
||||||
|
inherit eutils ruby-ng user
|
||||||
|
|
||||||
|
DESCRIPTION="SSH access and repository management for GitLab"
|
||||||
|
HOMEPAGE="https://github.com/gitlabhq/gitlab-shell"
|
||||||
|
SRC_URI="https://github.com/gitlabhq/gitlab-shell/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND="
|
||||||
|
dev-vcs/git
|
||||||
|
dev-db/redis
|
||||||
|
virtual/ssh"
|
||||||
|
ruby_add_bdepend "
|
||||||
|
virtual/ruby-ssl"
|
||||||
|
|
||||||
|
MERGE_TYPE="binary"
|
||||||
|
|
||||||
|
RUBY_PATCHES=(
|
||||||
|
"${PN}-2.0.0-config-paths.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
GIT_USER="git"
|
||||||
|
DEST_DIR="/usr/share/${PN}"
|
||||||
|
DATA_DIR="/var/lib/git"
|
||||||
|
LOGS_DIR="/var/log/gitlab"
|
||||||
|
CONF_FILE="/etc/gitlab-shell.yml"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
enewgroup ${GIT_USER}
|
||||||
|
enewuser ${GIT_USER} -1 /bin/bash ${DATA_DIR} "${GIT_USER}"
|
||||||
|
|
||||||
|
local git_shell=$(egetshell ${GIT_USER})
|
||||||
|
if [ ! ${git_shell} -ef '/bin/bash' ]; then
|
||||||
|
ewarn "User ${GIT_USER} already exists, but with the shell ${git_shell}."
|
||||||
|
ewarn "Changing shell to /bin/bash ..."
|
||||||
|
|
||||||
|
usermod -s /bin/bash ${GIT_USER} \
|
||||||
|
|| die "failed to change login shell for ${GIT_USER}"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
all_ruby_prepare() {
|
||||||
|
# fix paths
|
||||||
|
sed -i -E \
|
||||||
|
-e "s|/home/git|${DATA_DIR}|" \
|
||||||
|
-e "s|[\# ]*(log_file: ).*|\1\"${LOGS_DIR}/gitlab-shell.log\"|" \
|
||||||
|
config.yml.example || die "failed to filter config.yml.example"
|
||||||
|
|
||||||
|
sed -i \
|
||||||
|
-e "s|File\.join(ROOT_PATH, 'config.yml')|'${CONF_FILE}'|" \
|
||||||
|
lib/gitlab_config.rb || die "failed to filter gitlab_config.rb"
|
||||||
|
}
|
||||||
|
|
||||||
|
all_ruby_install() {
|
||||||
|
# install lib
|
||||||
|
insinto ${DEST_DIR}; doins -r lib LICENSE README.md VERSION
|
||||||
|
|
||||||
|
# install scripts
|
||||||
|
exeinto ${DEST_DIR}/bin; doexe bin/*
|
||||||
|
exeinto ${DEST_DIR}/hooks; doexe hooks/*
|
||||||
|
exeinto ${DEST_DIR}/support; doexe support/*
|
||||||
|
|
||||||
|
# create symlinks to bin
|
||||||
|
local name; for name in $(basename -a bin/gitlab-*); do
|
||||||
|
dosym "${DEST_DIR}/bin/${name}" "/usr/bin/${name}"
|
||||||
|
done
|
||||||
|
|
||||||
|
insinto $(dirname ${CONF_FILE})
|
||||||
|
newins config.yml.example $(basename ${CONF_FILE})
|
||||||
|
|
||||||
|
# create symlink for .gitlab_shell_secret
|
||||||
|
einfo "creating symlink for .gitlab_shell_secret"
|
||||||
|
TOKEN_FILE="${DEST_DIR}/.gitlab_shell_secret"
|
||||||
|
dosym /opt/gitlab/.gitlab_shell_secret "$TOKEN_FILE"
|
||||||
|
|
||||||
|
# prepare directories
|
||||||
|
diropts -m750; dodir ${DATA_DIR}
|
||||||
|
diropts -m770; keepdir ${DATA_DIR}/repositories
|
||||||
|
diropts -m755; dodir ${LOGS_DIR}
|
||||||
|
|
||||||
|
# GitLab stupidly expects that gitlab-shell is in home of git user...
|
||||||
|
dosym ${DEST_DIR} ${DATA_DIR}/gitlab-shell
|
||||||
|
|
||||||
|
# fix permissions
|
||||||
|
fowners -R ${GIT_USER}:${GIT_USER} ${DATA_DIR} ${LOGS_DIR}
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
# check git home directory
|
||||||
|
local git_home=$(egethome ${GIT_USER})
|
||||||
|
if [ ! "${git_home}" -ef ${DATA_DIR} ]; then
|
||||||
|
ewarn "An authorized_keys is configured to be inside ${DATA_DIR}/.ssh,"
|
||||||
|
ewarn "but HOME of ${GIT_USER} user is located in ${git_home}. You must"
|
||||||
|
ewarn "either change the authorized_keys location in ${CONF_FILE},"
|
||||||
|
ewarn "or change home directory of ${GIT_USER} user to ${DATA_DIR}"
|
||||||
|
ewarn "and move ${git_home}/.ssh here."
|
||||||
|
ewarn
|
||||||
|
fi
|
||||||
|
|
||||||
|
local auth_dir="${git_home}/.ssh"
|
||||||
|
|
||||||
|
elog "Initializing authorized_keys file in ${auth_dir}"
|
||||||
|
mkdir -p ${auth_dir}
|
||||||
|
touch ${auth_dir}/authorized_keys
|
||||||
|
chmod -R u=rwX,go=- ${auth_dir}
|
||||||
|
chown -R ${GIT_USER}:${GIT_USER} ${auth_dir}
|
||||||
|
|
||||||
|
elog
|
||||||
|
elog "GitLab Shell was initialized. Repositories are located in"
|
||||||
|
elog "${DATA_DIR}/repositories, scripts in ${DEST_DIR}/bin."
|
||||||
|
elog "All gitlab-* scripts was symlinked to /usr/bin to be on your path."
|
||||||
|
elog
|
||||||
|
elog "You should change your gitlab_url in: ${CONF_FILE}."
|
||||||
|
}
|
Loading…
Reference in a new issue