#!/usr/bin/make -f # -*- makefile -*- # $HeadURL$ $LastChangedRevision$ #export DH_VERBOSE=1 PACKAGE=paa SHELL=/bin/bash #ADETEST_FLAGS=-vk get-orig-source: uscan --noconf --force-download --rename --repack --download-current-version --destdir=. %: dh $@ override_dh_auto_build: env -i $(MAKE) -s override_dh_auto_test: @# In order for the tests to run successfully in the pre-installed-build-environment, some env vars are needed. env -i ADETEST_FLAGS=$(ADETEST_FLAGS) PAA_INCLUDE_PREFIX=$(CURDIR)/include PAA_ETC_PREFIX=$(CURDIR)/etc LOGNAME=$$LOGNAME $(MAKE) -s tests override_dh_auto_install: env -i PAA_PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr $(MAKE) install @# missing directories mkdir -p $(CURDIR)/debian/$(PACKAGE)/var/lib/paa @# example config files we use @# example config files we used and don't want as examples @# dh will take care of installing ChangeLog as changelog.gz rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/paa/ChangeLog rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/paa/COPYING @# Install the apache files and the crontab. mkdir -p $(CURDIR)/debian/$(PACKAGE)/etc/cron.d/ perl -0777 -pe 's/#[^\n]*HeadURL[^\n]*\n+//' $(CURDIR)/doc/examples/cron > $(CURDIR)/debian/$(PACKAGE)/etc/cron.d/paa mkdir -p $(CURDIR)/debian/$(PACKAGE)/etc/apache2/conf-available/ perl -0777 -pe 's/#[^\n]*HeadURL[^\n]*\n+//' $(CURDIR)/doc/examples/apache > $(CURDIR)/debian/$(PACKAGE)/etc/apache2/conf-available/paa.conf override_dh_compress: dh_compress --exclude=autopaa