mirror of https://github.com/fail2ban/fail2ban
51 lines
1.5 KiB
Makefile
Executable File
51 lines
1.5 KiB
Makefile
Executable File
#!/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
|
|
|
|
%:
|
|
dh $@ --with python2,systemd
|
|
|
|
DESTDIR=$(CURDIR)/debian/fail2ban
|
|
|
|
override_dh_clean:
|
|
rm -rf fail2ban.egg-info
|
|
dh_clean
|
|
|
|
override_dh_install:
|
|
rm -f $(DESTDIR)/usr/share/doc/fail2ban/README.Solaris
|
|
# Remove explicitely created /var/run/fail2ban
|
|
# just to please lintian since init file will
|
|
# take care about it anyways
|
|
rm -rf $(DESTDIR)/var/run/
|
|
# Install bash completion
|
|
install -d $(DESTDIR)/etc/bash_completion.d
|
|
install -m 644 files/bash-completion $(DESTDIR)/etc/bash_completion.d/fail2ban
|
|
# Install systemd files
|
|
install -d $(DESTDIR)/lib/systemd/system
|
|
install -d $(DESTDIR)/usr/lib/tmpfiles.d
|
|
install -m 644 files/fail2ban.service $(DESTDIR)/lib/systemd/system
|
|
install -m 644 files/fail2ban-tmpfiles.conf $(DESTDIR)/usr/lib/tmpfiles.d
|
|
|
|
dh_install
|
|
|
|
override_dh_auto_test:
|
|
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
|
|
./fail2ban-testcases-all || :
|
|
endif
|
|
|
|
override_dh_installexamples:
|
|
dh_installexamples config/jail.conf files/ipmasq-*
|
|
|
|
override_dh_installinit:
|
|
dh_installinit -- defaults 99
|
|
|
|
override_dh_installman:
|
|
dh_installman man/*.[15]
|