2020-06-17 13:23:27 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
export DH_VERBOSE=1
|
|
|
|
|
2021-09-13 12:11:40 +02:00
|
|
|
HYDRA_VERSION := v1.10.6
|
2020-06-17 13:23:27 +02:00
|
|
|
|
|
|
|
%:
|
|
|
|
dh $@ --with systemd
|
|
|
|
|
|
|
|
override_dh_auto_build: $(GOPATH)
|
|
|
|
./script/install.sh -b bin -d $(HYDRA_VERSION)
|
|
|
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
mkdir -p debian/hydra/usr/bin
|
|
|
|
mkdir -p debian/hydra/etc/hydra
|
|
|
|
|
|
|
|
cp bin/hydra debian/hydra/usr/bin/hydra
|
|
|
|
cp conf/hydra.yml debian/hydra/etc/hydra
|
|
|
|
|
|
|
|
install -d debian/hydra
|
|
|
|
|
|
|
|
override_dh_strip:
|
|
|
|
|
|
|
|
override_dh_auto_test:
|