#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_CONFIGURE_EXTRA_FLAGS += --with-idl=/usr/share/idl/fred/EPP.idl

makebuilddir/libapache2-mod-eppd::
	autoreconf -vfi

build/libapache2-mod-eppd::
	$(MAKE) doc

install/libapache2-mod-eppd::
	chrpath -d debian/libapache2-mod-eppd/usr/lib/apache2/modules/mod_eppd.so
	rm -rf debian/libapache2-mod-eppd//usr/share/fred-mod-eppd/schemas/{README,Changelog}
	#rm -rf debian/libapache2-mod-eppd//usr/share/fred-mod-eppd/ssl/
	#rm -rf debian/libapache2-mod-eppd//usr/share/fred-mod-eppd/02-fred-mod-eppd-apache.conf
