Use systemd for correct /lib/systemd/system path

Closes: #1034230
debian
Pirate Praveen 2023-04-21 21:52:36 +02:00 committed by Jochen Sprickerhof
parent 15ad048aa4
commit a22288b380
No known key found for this signature in database
GPG Key ID: 5BFFDCC258E69433
2 changed files with 6 additions and 4 deletions

2
debian/control vendored
View File

@ -13,6 +13,8 @@ Build-Depends:
, python3-pyinotify
, sqlite3
, 2to3
, pkg-config
, systemd
Homepage: https://www.fail2ban.org
Vcs-Git: https://salsa.debian.org/python-team/packages/fail2ban.git
Vcs-Browser: https://salsa.debian.org/python-team/packages/fail2ban

8
debian/rules vendored
View File

@ -16,7 +16,7 @@ export PYBUILD_DISABLE_python2=1
DESTDIR=$(CURDIR)/debian/fail2ban
PYVERSION=$(shell py3versions -dv)
SYSTEMD_SYSTEM_UNIT_DIR = $(shell pkg-config --variable=systemdsystemunitdir systemd)
override_dh_clean:
rm -rf fail2ban.egg-info
-rm debian/fail2ban.init
@ -45,11 +45,11 @@ override_dh_install:
install -d $(DESTDIR)/usr/share/bash-completion/completions
install -m 644 files/bash-completion $(DESTDIR)/usr/share/bash-completion/completions/fail2ban
: # 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 -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 -d $(DESTDIR)/usr/lib/systemd/system
install -d $(DESTDIR)$(SYSTEMD_SYSTEM_UNIT_DIR)
: # Install default jail enabler
install -m 644 debian/debian-files/jail.d_defaults-debian.conf $(DESTDIR)/etc/fail2ban/jail.d/defaults-debian.conf
dh_install