From 1a25c27275abd6174cf3c14d29f865215740886c Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Fri, 29 Oct 2021 20:06:32 +0530 Subject: [PATCH] Rename workhorse binary to gitlab-workhorse --- debian/rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/rules b/debian/rules index 39362feae3..f0996f5db1 100755 --- a/debian/rules +++ b/debian/rules @@ -13,6 +13,10 @@ override_dh_auto_configure: cp -r workhorse _build/src/gitlab.com/gitlab-org/gitlab if [ -d workhorse-vendor ]; then mv workhorse-vendor _build/src/gitlab.com/gitlab-org/gitlab/workhorse/vendor; fi +execute_after_dh_auto_build: + # Rename binary to gitlab-workhorse (upstream is passing -o in Makefile) + if [ -f _build/bin/workhorse ]; then mv _build/bin/workhorse _build/bin/gitlab-workhorse; fi + override_dh_auto_test: dh_auto_test -O--package=gitlab PATH="$(CURDIR)/_build/bin:$$PATH" dh_auto_test -O--package=gitlab-workhorse