mirror of https://github.com/fail2ban/fail2ban
parent
15ad048aa4
commit
a22288b380
|
@ -13,6 +13,8 @@ Build-Depends:
|
||||||
, python3-pyinotify
|
, python3-pyinotify
|
||||||
, sqlite3
|
, sqlite3
|
||||||
, 2to3
|
, 2to3
|
||||||
|
, pkg-config
|
||||||
|
, systemd
|
||||||
Homepage: https://www.fail2ban.org
|
Homepage: https://www.fail2ban.org
|
||||||
Vcs-Git: https://salsa.debian.org/python-team/packages/fail2ban.git
|
Vcs-Git: https://salsa.debian.org/python-team/packages/fail2ban.git
|
||||||
Vcs-Browser: https://salsa.debian.org/python-team/packages/fail2ban
|
Vcs-Browser: https://salsa.debian.org/python-team/packages/fail2ban
|
||||||
|
|
|
@ -16,7 +16,7 @@ export PYBUILD_DISABLE_python2=1
|
||||||
|
|
||||||
DESTDIR=$(CURDIR)/debian/fail2ban
|
DESTDIR=$(CURDIR)/debian/fail2ban
|
||||||
PYVERSION=$(shell py3versions -dv)
|
PYVERSION=$(shell py3versions -dv)
|
||||||
|
SYSTEMD_SYSTEM_UNIT_DIR = $(shell pkg-config --variable=systemdsystemunitdir systemd)
|
||||||
override_dh_clean:
|
override_dh_clean:
|
||||||
rm -rf fail2ban.egg-info
|
rm -rf fail2ban.egg-info
|
||||||
-rm debian/fail2ban.init
|
-rm debian/fail2ban.init
|
||||||
|
@ -45,11 +45,11 @@ override_dh_install:
|
||||||
install -d $(DESTDIR)/usr/share/bash-completion/completions
|
install -d $(DESTDIR)/usr/share/bash-completion/completions
|
||||||
install -m 644 files/bash-completion $(DESTDIR)/usr/share/bash-completion/completions/fail2ban
|
install -m 644 files/bash-completion $(DESTDIR)/usr/share/bash-completion/completions/fail2ban
|
||||||
: # Install systemd files
|
: # Install systemd files
|
||||||
install -d $(DESTDIR)/usr/lib/systemd/system/
|
install -d $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR)
|
||||||
install -d $(DESTDIR)/usr/lib/tmpfiles.d
|
install -d $(DESTDIR)/usr/lib/tmpfiles.d
|
||||||
install -m 644 build/fail2ban.service $(DESTDIR)/usr/lib/systemd/system
|
install -m 644 build/fail2ban.service $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR)
|
||||||
install -m 644 files/fail2ban-tmpfiles.conf $(DESTDIR)/usr/lib/tmpfiles.d
|
install -m 644 files/fail2ban-tmpfiles.conf $(DESTDIR)/usr/lib/tmpfiles.d
|
||||||
install -d $(DESTDIR)/usr/lib/systemd/system
|
install -d $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR)
|
||||||
: # Install default jail enabler
|
: # Install default jail enabler
|
||||||
install -m 644 debian/debian-files/jail.d_defaults-debian.conf $(DESTDIR)/etc/fail2ban/jail.d/defaults-debian.conf
|
install -m 644 debian/debian-files/jail.d_defaults-debian.conf $(DESTDIR)/etc/fail2ban/jail.d/defaults-debian.conf
|
||||||
dh_install
|
dh_install
|
||||||
|
|
Loading…
Reference in New Issue