#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
override_dh_install:
	mkdir -p debian/yandex-so-yasmagent debian/usr/local/yasmagent/core/modules/so
	rm -f debian/yandex-so-yasmagent/* debian/usr/local/yasmagent/core/modules/so/* 2>&1 > /dev/null
	mkdir -p debian/yandex-so-yasmagent/opt/yandex-so-yasmagent debian/yandex-so-yasmagent/var/log/so-logs/yasmagent
	mkdir -p debian/yandex-so-yasmagent/etc/logrotate.d
	cp debian/so-yasmagent.logrotate.d debian/yandex-so-yasmagent/etc/logrotate.d/so-yasmagent
	cp so-yasmagent* *.py *.sh debian/yandex-so-yasmagent/opt/yandex-so-yasmagent/
%:
	dh $@
