#!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 include /usr/share/quilt/quilt.make ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}') configure: configure-stamp configure-stamp: dh_testdir touch configure-stamp build: $(QUILT_STAMPFN) configure-stamp build-stamp build-stamp: dh_testdir perl Makefile.PL INSTALLDIRS=vendor $(MAKE) pod2text Changes > changelog touch build-stamp clean: unpatch dh_testdir dh_testroot rm -f build-stamp configure-stamp [ ! -f Makefile ] || $(MAKE) realclean rm -f changelog dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) install DESTDIR=$(CURDIR)/debian/razor echo "# See razor-agent.conf (5)" > $(CURDIR)/debian/razor/etc/razor/razor-agent.conf echo "# Change this to 5 for safer classification of MIME attachments. This will let more spam through" >> $(CURDIR)/debian/razor/etc/razor/razor-agent.conf echo "logic_method = 4" >> $(CURDIR)/debian/razor/etc/razor/razor-agent.conf echo "# Change the next line to a file to stop using syslog" >> $(CURDIR)/debian/razor/etc/razor/razor-agent.conf echo "logfile = /var/log/razor-agent.log" >> $(CURDIR)/debian/razor/etc/razor/razor-agent.conf cp $(CURDIR)/debian/razor-client.1p $(CURDIR)/debian/razor/usr/share/man/man1 mv $(CURDIR)/debian/razor/$(ARCHLIB)/Razor2/* $(CURDIR)/debian/razor/usr/share/perl5/Razor2/ rmdir $(CURDIR)/debian/razor/$(ARCHLIB)/Razor2 binary-indep: build install binary-arch: build install dh_testdir dh_testroot dh_installdocs dh_installexamples dh_installmenu dh_installcron dh_installman dh_installinfo dh_installchangelogs changelog dh_installlogrotate dh_installlogcheck dh_link dh_strip dh_compress dh_fixperms dh_installdeb dh_perl dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install configure