debian-mirror-gitlab/debian/rules
2018-02-23 00:00:41 +05:30

58 lines
3.5 KiB
Makefile
Executable file

#!/usr/bin/make -f
%:
dh $@ --with=systemd
override_dh_install:
dh_install -XLICENSE
# Make sure we are installing all required files in debian/install
sh debian/upstream-file-count-check.sh
rm -rf debian/gitlab/usr/share/gitlab/tmp/*
mv debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale \
debian/gitlab/usr/share/gitlab/app/assets/javascripts/locale.static
mv debian/gitlab/var/lib/gitlab/db/schema.rb debian/gitlab/var/lib/gitlab/db/schema.rb.template
override_dh_installinit:
dh_installinit --no-start -p gitlab --name=gitlab-sidekiq
dh_installinit --no-start -p gitlab --name=gitlab-unicorn
dh_installinit --no-start -p gitlab --name=gitlab-mailroom
dh_installinit --no-start -p gitlab --name=gitlab-workhorse
dh_installinit
override_dh_systemd_start:
dh_systemd_start --no-start
override_dh_fixperms:
dh_fixperms
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/env_setup.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/gitlab_flow.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/additional_resources.md
chmod -x debian/gitlab/usr/share/gitlab/app/views/shared/icons/_icon_status_success.svg
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/agile_git.md
chmod -x debian/gitlab/usr/share/gitlab/app/views/shared/icons/_icon_status_skipped.svg
chmod -x debian/gitlab/usr/share/gitlab/app/views/shared/icons/_icon_status_created.svg
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/unstage.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/explore_gitlab.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/tags.md
chmod -x debian/gitlab/usr/share/gitlab/app/views/shared/icons/_icon_status_failed.svg
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/getting_started.md
chmod -x debian/gitlab/usr/share/gitlab/app/views/shared/icons/_icon_status_warning.svg
chmod -x debian/gitlab/usr/share/gitlab/app/views/shared/icons/_icon_status_canceled.svg
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/git_add.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/cherry_picking.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/bisect.md
chmod -x debian/gitlab/usr/share/gitlab/app/views/shared/icons/_icon_status_manual.svg
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/feature_branching.md
chmod -x debian/gitlab/usr/share/gitlab/app/assets/images/favicon-blue.ico
chmod -x debian/gitlab/usr/share/gitlab/app/views/shared/icons/_icon_status_running.svg
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/subtree.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/user_training.md
chmod -x debian/gitlab/usr/share/gitlab/app/views/shared/icons/_icon_status_pending.svg
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/index.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/git_intro.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/rollback_commits.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/git_log.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/merge_conflicts.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/gitlab_flow.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/stash.md
chmod -x debian/gitlab/usr/share/gitlab/doc/university/training/topics/merge_requests.md