#!/usr/bin/make -f

export GOCACHE := $(CURDIR)/build/go-cache

%:
	dh $@ --with bash-completion

override_dh_installsystemd-arch:
	dh_installsystemd -p anonsurf --no-enable --no-start anonsurfd.service
	dh_installsystemd -p anonsurf --no-enable --no-start anonsurf-identity.service
	dh_installsystemd -p anonsurf anonsurf-recovery.service

override_dh_auto_build-arch:
	make build

override_dh_auto_test-arch:
	make check

override_dh_fixperms-arch:
	dh_fixperms
	chmod +x debian/anonsurf/usr/lib/anonsurf/anondaemon
	chmod +x debian/anonsurf/usr/lib/anonsurf/make-torrc
	chmod +x debian/anonsurf/usr/lib/anonsurf/safekill
	chmod 600 debian/anonsurf/etc/anonsurf/anonsurf.cfg

override_dh_auto_build-indep override_dh_auto_test-indep:

override_dh_auto_install:
