From 5f2464a9d18d52a46abf88c9230398e8893eb80b Mon Sep 17 00:00:00 2001 From: sebres Date: Fri, 20 Nov 2020 15:25:42 +0100 Subject: [PATCH] debian\rules: better clean-up of non-debian paths includes --- debian/rules | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index 4ff3c39b..a90de81b 100755 --- a/debian/rules +++ b/debian/rules @@ -30,9 +30,7 @@ override_dh_auto_configure: override_dh_install: rm -f $(DESTDIR)/usr/share/doc/fail2ban/README.Solaris - rm -f $(DESTDIR)/etc/fail2ban/paths-fedora.conf - rm -f $(DESTDIR)/etc/fail2ban/paths-freebsd.conf - rm -f $(DESTDIR)/etc/fail2ban/paths-osx.conf + find "$(DESTDIR)/etc/fail2ban/" -type f -name 'paths-*.conf' -not -name 'paths-common.conf' -not -name 'paths-debian.conf' -delete : # Remove explicitly created /var/run/fail2ban : # just to please lintian since init file will : # take care about it anyways