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

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DESTDIR=$(CURDIR)/debian/pluxml

%:
	dh $@

override_dh_fixperms:
	dh_fixperms
	# Remove inappropriate exec rights on a PHP file
	chmod -x $(DESTDIR)/usr/share/pluxml/core/lib/class.plx.show.php
	# Allow www-data to write data files
	chown -R www-data:root $(DESTDIR)/var/lib/pluxml/data/*
	# Allow www-data to read configuration files
	chown -R root:www-data $(DESTDIR)/etc/pluxml

override_dh_installchangelogs:
	dh_installchangelogs readme/CHANGELOG
