#!/usr/bin/make -f
%:
	dh $@

execute_after_dh_installdeb:
	# Do not mark any of the templates as conffiles, we always want them
	# to be overwritten.
	for cf in debian/*/DEBIAN/conffiles; do \
	  sed -i -e '/\/etc\/ngcp-config\/templates/d' "$$cf"; \
	  if [ ! -s "$$cf" ]; then \
	    rm -f "$$cf"; \
	  fi; \
	done

D = debian/ngcp-system-tests

execute_after_dh_fixperms:
	# The file generated from this template will contain passwords.
	chmod 0600 $(D)/etc/ngcp-config/templates/etc/ngcp-system-tests/900_service-ngcp-api.yaml.tt2