Commit 823db1dc authored by root's avatar root

Add ebuilds for Gitlab v8.12.0

parent 1ce3a54b
#!/sbin/runscript
name="GitLab"
description="GitLab 8.9 on Unicorns"
description="GitLab 8.12 on Unicorns"
: ${gitlab_user:=git}
: ${gitlab_group:=git}
: ${gitlab_home:="/opt/gitlabhq-8.9"}
: ${gitlab_log:="/var/log/gitlabhq-8.9"}
: ${gitlab_home:="/opt/gitlabhq-8.12"}
: ${gitlab_log:="/var/log/gitlabhq-8.12"}
: ${unicorn_pidfile:="${gitlab_home}/tmp/pids/unicorn.pid"}
: ${unicorn_log:="${gitlab_log}/unicorn.log"}
......@@ -44,7 +44,7 @@ start() {
checkpath -d -o "${gitlab_user}:${gitlab_group}" -m750 "$(dirname "${unicorn_pidfile}")"
checkpath -d -o "${gitlab_user}:${gitlab_group}" -m750 "$(dirname "${sidekiq_pidfile}")"
ebegin "Starting GitLab 8.9 Unicorn servers"
ebegin "Starting GitLab 8.12 Unicorn servers"
start-stop-daemon --start \
--chdir "${gitlab_home}" \
--user="${gitlab_user}:${gitlab_group}" \
......@@ -52,12 +52,12 @@ start() {
--exec ${unicorn_command} -- ${unicorn_command_args}
eend $?
ebegin "Starting GitLab 8.9 Sidekiq"
ebegin "Starting GitLab 8.12 Sidekiq"
cd "${gitlab_home}"
sudo -u git -H ${sidekiq_command} ${sidekiq_start_command_args}
eend $?
ebegin "Starting GitLab 8.9 Workhorse"
ebegin "Starting GitLab 8.12 Workhorse"
start-stop-daemon --start \
--chdir "${gitlab_home}" \
--user="${gitlab_user}:${gitlab_group}" \
......@@ -70,19 +70,19 @@ start() {
stop() {
ebegin "Stopping GitLab 8.9 Workhorse"
ebegin "Stopping GitLab 8.12 Workhorse"
start-stop-daemon --stop \
--chdir "${gitlab_home}" \
--user="${gitlab_user}:${gitlab_group}" \
--pidfile="${workhorse_pidfile}"
eend $?
ebegin "Stopping GitLab 8.9 Sidekiq"
ebegin "Stopping GitLab 8.12 Sidekiq"
cd "${gitlab_home}"
sudo -u git -H ${sidekiq_command} ${sidekiq_stop_command_args}
eend $?
ebegin "Stopping GitLab 8.9 Unicorn servers"
ebegin "Stopping GitLab 8.12 Unicorn servers"
start-stop-daemon --stop \
--chdir "${gitlab_home}" \
--user="${gitlab_user}:${gitlab_group}" \
......
......@@ -51,8 +51,8 @@ GEMS_DEPEND="
DEPEND="${GEMS_DEPEND}
>=dev-lang/ruby-2.0[readline,ssl]
>dev-vcs/git-2.2.1
>=dev-vcs/gitlab-shell-3.0.0
>=www-servers/gitlab-workhorse-0.7.5
>=dev-vcs/gitlab-shell-3.2.1
>=www-servers/gitlab-workhorse-0.7.8
net-misc/curl
virtual/ssh"
RDEPEND="${DEPEND}
......@@ -379,7 +379,7 @@ pkg_config() {
find "${DEST_DIR}/public/uploads/" -type d -exec chmod 0700 {} \;
fi
for conf in database.yml gitlab.yml resque.yml unicorn.rb ; do
for conf in database.yml gitlab.yml resque.yml unicorn.rb secrets.yml ; do
einfo "Migration config file \"$conf\" ..."
cp -p "${LATEST_DEST}/config/${conf}" "${DEST_DIR}/config/"
sed -s "s#$(basename $LATEST_DEST)#${PN}-${SLOT}#g" -i "${DEST_DIR}/config/$conf"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment