fail2ban/debian/rules

49 lines
1.4 KiB
Plaintext
Raw Normal View History

#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
2014-03-15 11:44:55 +00:00
%:
dh $@ --with python2
2014-03-15 11:44:55 +00:00
DESTDIR=$(CURDIR)/debian/fail2ban
2014-03-15 11:44:55 +00:00
override_dh_clean:
rm -rf fail2ban.egg-info
dh_clean
2014-03-15 11:44:55 +00:00
override_dh_install:
rm -f $(DESTDIR)/usr/share/doc/fail2ban/README.Solaris
# Install Debian shipped jail file in 1 piece (instead of patching
# the shipped one since there are too many changes)
install -m 644 debian/jail.conf $(DESTDIR)/etc/fail2ban
# Remove explicitely created /var/run/fail2ban
# just to please lintian since init file will
# take care about it anyways
2014-03-15 11:44:55 +00:00
rm -rf $(DESTDIR)/var/run/
2013-05-13 15:06:52 +00:00
# Install bash completion
install -d $(DESTDIR)/etc/bash_completion.d
2013-05-13 15:06:52 +00:00
install -m 644 files/bash-completion $(DESTDIR)/etc/bash_completion.d/fail2ban
2014-03-15 11:44:55 +00:00
dh_install
2006-03-11 06:02:22 +00:00
2014-03-15 11:44:55 +00:00
override_dh_auto_test:
2013-05-13 15:33:36 +00:00
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
./fail2ban-testcases-all || :
2013-05-13 15:33:36 +00:00
endif
2014-03-15 11:44:55 +00:00
override_dh_installexamples:
dh_installexamples config/jail.conf files/ipmasq-*
2014-03-15 11:44:55 +00:00
override_dh_installinit:
dh_installinit -- defaults 99
2014-03-15 11:44:55 +00:00
override_dh_installman:
2013-03-27 15:28:25 +00:00
dh_installman man/*.[15]