#!/usr/bin/make -f # -*- makefile -*- # $HeadURL$ $LastChangedRevision$ #export DH_VERBOSE=1 PACKAGE=srf SHELL=/bin/bash #ADETEST_FLAGS=-vk get-orig-source: uscan --noconf --force-download --rename --repack --download-current-version --destdir=. %: dh $@ override_dh_auto_configure: perl -pi -e 's@(_ETC_PREFIX)=.*@$$1=/etc/srf@' bin/*-config.sh override_dh_auto_build: env -i $(MAKE) -s override_dh_auto_test: env -i ADETEST_FLAGS=$(ADETEST_FLAGS) $(MAKE) -s tests override_dh_auto_install: env -i SRF_PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr SRF_ETC_PREFIX=$(CURDIR)/debian/$(PACKAGE)/etc/srf $(MAKE) -s install @# missing directories mkdir -p $(CURDIR)/debian/$(PACKAGE)/{etc/srf,etc/cron.d,var/lib/srf,var/log/srf,var/spool/srf} @# example config files we use cp doc/examples/*.conf $(CURDIR)/debian/$(PACKAGE)/etc/srf grep -v '^#' doc/examples/cron-server > $(CURDIR)/debian/$(PACKAGE)/etc/cron.d/srf-server grep -v '^#' doc/examples/cron-client > $(CURDIR)/debian/$(PACKAGE)/etc/cron.d/srf-client grep -v '^#' doc/examples/forward > $(CURDIR)/debian/$(PACKAGE)/var/lib/srf/.forward @# example config files we used and don't want as examples rm -fr $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/srf/examples @# dh will take care of installing ChangeLog as changelog.gz rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/srf/ChangeLog rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/srf/COPYING