#!/usr/bin/make -f # -*- makefile -*- # $HeadURL$ $LastChangedRevision$ #export DH_VERBOSE=1 PACKAGE=mondsk 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@' 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 MONDSK_PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr MONDSK_ETC_PREFIX=$(CURDIR)/debian/$(PACKAGE)/etc $(MAKE) install rm -f $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/mondsk/COPYING @# *all* the example files are actually used, so there is no point in keeping the examples! rm -fr $(CURDIR)/debian/$(PACKAGE)/usr/share/doc/mondsk/examples @# crontab and config file mkdir -p $(CURDIR)/debian/$(PACKAGE)/etc/cron.d cp doc/examples/cron $(CURDIR)/debian/$(PACKAGE)/etc/cron.d/mondsk cp doc/examples/mondsk.conf $(CURDIR)/debian/$(PACKAGE)/etc/mondsk.conf