proxmox-spamassassin/debian/rules
Stoiko Ivanov 5a982e3d26 buildsys: drop two configfiles we ship as templates
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2023-03-13 21:13:26 +01:00

45 lines
1.3 KiB
Makefile
Executable File

#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# If set to a true value then MakeMaker's prompt function will
# always return the default without waiting for user input.
export PERL_MM_USE_DEFAULT=1
PACKAGE=$(shell dh_listpackages)
TMP =$(CURDIR)/debian/$(PACKAGE)
%:
dh $@
# implicit rules are skipped for phony targets and SA has a 'build' directory
# in the source
.PHONY: build
build:
dh $@
override_dh_auto_test:
dh_auto_test -- TEST_VERBOSE=0
override_dh_auto_install:
dh_auto_install
# rm example local.cf
rm $(TMP)/etc/mail/spamassassin/local.cf
# rm config files rendered by PMG templates
rm $(TMP)/etc/mail/spamassassin/init.pre
rm $(TMP)/etc/mail/spamassassin/v310.pre
rm $(TMP)/etc/mail/spamassassin/v320.pre
rm $(TMP)/etc/mail/spamassassin/v342.pre
rm $(TMP)/etc/mail/spamassassin/v400.pre
# As this is a architecture dependent package, we are not
# supposed to install stuff to /usr/share. MakeMaker creates
# the dirs, we delete them from the deb:
rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/share/perl5
override_dh_installdocs:
dh_installdocs README t/README sql/README.awl sql/README.bayes sql/README spamd/README.vpopmail spamd/README spamd/OSXStartup/README spamc/README.win spamc/README.qmail spamd-apache2/README.apache ldap/README ldap/README.testing