mirror of https://github.com/sipwise/repoapi.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
684 B
31 lines
684 B
#!/usr/bin/make -f
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
%:
|
|
dh $@ --with systemd
|
|
|
|
override_dh_auto_test:
|
|
|
|
override_dh_auto_build:
|
|
# fake files needed to deploy
|
|
cp debian/secret_key .secret_key
|
|
cp debian/gerrit.ini gerrit.ini
|
|
cp debian/server.ini server.ini
|
|
|
|
override_dh_auto_install:
|
|
VAR_DIR=$(shell pwd) make deploy
|
|
find . -name '__pycache__' -type d -print0 | xargs --no-run-if-empty -0 rm -r
|
|
make clean
|
|
|
|
override_dh_fixperms:
|
|
dh_fixperms
|
|
chown www-data:www-data debian/repoapi/var/lib/repoapi
|
|
|
|
override_dh_systemd_enable:
|
|
dh_systemd_enable --name=repoapi-worker
|
|
dh_systemd_enable --name=repoapi-flower
|
|
dh_systemd_enable --name=repoapi-beat
|
|
|