2014-09-02 17:59:05 +05:30
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2019-01-05 16:20:14 +05:30
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
|
2014-09-02 17:59:05 +05:30
|
|
|
%:
|
2021-04-17 16:43:17 +05:30
|
|
|
dh $@ --package=gitlab
|
|
|
|
dh $@ --buildsystem=golang --with=golang --builddirectory=_build --package=gitlab-workhorse --sourcedirectory=workhorse
|
|
|
|
|
|
|
|
override_dh_auto_configure:
|
|
|
|
dh_auto_configure -O--package=gitlab
|
|
|
|
dh_auto_configure -O--package=gitlab-workhorse
|
|
|
|
mkdir -p _build/src/gitlab.com/gitlab-org
|
|
|
|
cp -r workhorse _build/src/gitlab.com/gitlab-org/gitlab-workhorse
|
|
|
|
if [ -d workhorse-vendor ]; then mv workhorse-vendor _build/src/gitlab.com/gitlab-org/gitlab-workhorse/vendor; fi
|
|
|
|
|
|
|
|
override_dh_auto_test:
|
|
|
|
dh_auto_test -O--package=gitlab
|
|
|
|
PATH="$(CURDIR)/_build/bin:$$PATH" dh_auto_test -O--package=gitlab-workhorse
|
2016-02-04 16:22:17 +05:30
|
|
|
|
|
|
|
override_dh_install:
|
2021-10-02 01:11:04 +05:30
|
|
|
sh debian/upstream-file-count-check.sh
|
|
|
|
sh debian/upstream-config-file-check.sh
|
2021-04-17 16:43:17 +05:30
|
|
|
dh_install -XLICENSE -O--package=gitlab
|
|
|
|
dh_installexamples -O--package=gitlab
|
2016-02-13 19:11:17 +05:30
|
|
|
# Make sure we are installing all required files in debian/install
|
2016-02-18 17:04:24 +05:30
|
|
|
rm -rf debian/gitlab/usr/share/gitlab/tmp/*
|
2020-01-07 23:14:48 +05:30
|
|
|
find debian/gitlab/usr/share/gitlab/ -name .eslintrc.yml -delete
|
2018-02-23 00:00:41 +05:30
|
|
|
mv debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale \
|
|
|
|
debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale.static
|
2021-04-17 16:43:17 +05:30
|
|
|
if [ -f debian/gitlab/var/lib/gitlab/db/structure.sql ]; then \
|
|
|
|
mv debian/gitlab/var/lib/gitlab/db/structure.sql debian/gitlab/var/lib/gitlab/db/structure.sql.template; fi
|
2019-01-05 16:20:14 +05:30
|
|
|
sed -i 's/__NEW_VERSION__/${DEB_VERSION}/g' debian/gitlab/usr/lib/gitlab/templates/gitlab-debian.conf.example
|
2021-04-17 16:43:17 +05:30
|
|
|
dh_install -XLICENSE -O--package=gitlab-workhorse
|
2016-02-04 16:22:17 +05:30
|
|
|
|
|
|
|
override_dh_installinit:
|
2021-04-17 16:43:17 +05:30
|
|
|
dh_installinit --no-start -p gitlab --name=gitlab-sidekiq -O--package=gitlab
|
|
|
|
dh_installinit --no-start -p gitlab --name=gitlab-puma -O--package=gitlab
|
|
|
|
dh_installinit --no-start -p gitlab --name=gitlab-mailroom -O--package=gitlab
|
|
|
|
dh_installinit --no-start -p gitlab --name=gitlab-workhorse -O--package=gitlab
|
|
|
|
dh_installinit -O--package=gitlab
|
2016-07-17 23:39:23 +05:30
|
|
|
|
|
|
|
override_dh_systemd_start:
|
2021-04-17 16:43:17 +05:30
|
|
|
dh_systemd_start --no-start -O--package=gitlab
|