debian-mirror-gitlab/debian/rules

21 lines
591 B
Text
Raw Normal View History

2014-09-02 17:59:05 +05:30
#!/usr/bin/make -f
%:
2015-09-12 15:02:55 +05:30
dh $@
2016-02-04 16:22:17 +05:30
override_dh_install:
dh_install
dh_systemd_enable gitlab-unicorn.service
dh_systemd_enable gitlab-sidekiq.service
dh_systemd_enable gitlab-workhorse.service
dh_systemd_enable gitlab.target
dh_systemd_start gitlab.target
2016-02-13 19:11:17 +05:30
# Make sure we are installing all required files in debian/install
2016-02-13 19:16:45 +05:30
a=$(ls -1 | wc -l); b=$(cat debian/install |cut -d' '\
-f1|grep -v debian |wc -l); if ! [ $(echo "$a" - "$b"|bc) -eq 5 ];\
then echo "Install newly added files or adjust the count in\
debian/rules"; exit 1;fi
2016-02-04 16:22:17 +05:30
override_dh_installinit:
dh_installinit --no-start