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.

36 lines
952 B

#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# 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
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