mirror of https://github.com/fail2ban/fail2ban
Added lucid-dsc-patch to use pycentral on systems without dh_python2
parent
1187253b6e
commit
3754a48b24
|
@ -1,3 +1,9 @@
|
||||||
|
fail2ban (0.8.8-1+lucid0) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* Added lucid-dsc-patch to use pycentral on systems without dh_python2
|
||||||
|
|
||||||
|
-- Yaroslav Halchenko <debian@onerussian.com> Thu, 06 Dec 2012 12:52:30 -0500
|
||||||
|
|
||||||
fail2ban (0.8.8-1) experimental; urgency=low
|
fail2ban (0.8.8-1) experimental; urgency=low
|
||||||
|
|
||||||
* Primarily a bugfix upstream release
|
* Primarily a bugfix upstream release
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
From: Yaroslav Halchenko <debian@onerussian.com>
|
||||||
|
Date: Thu, 6 Dec 2012 12:50:12 -0500
|
||||||
|
Subject: [PATCH] Patch for elderly Debian/Ubuntu (e.g. 10.04) releases without dh_python2
|
||||||
|
|
||||||
|
Use again pycentral etc
|
||||||
|
|
||||||
|
crafted post 0.8.8-1 release when a user complained about inability to upgrade
|
||||||
|
|
||||||
|
---
|
||||||
|
debian/control | 2 ++
|
||||||
|
debian/rules | 12 +++++-------
|
||||||
|
2 files changed, 7 insertions(+), 7 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/debian/control b/debian/control
|
||||||
|
index ab39c88..7fa076d 100644
|
||||||
|
--- a/debian/control
|
||||||
|
+++ b/debian/control
|
||||||
|
@@ -3,6 +3,8 @@ Section: net
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Yaroslav Halchenko <debian@onerussian.com>
|
||||||
|
Build-Depends: debhelper (>= 5.0.37.2), python (>= 2.5.4-1~)
|
||||||
|
+Build-Depends-Indep: python-central (>= 0.5.6)
|
||||||
|
+XS-Python-Version: current, >= 2.4
|
||||||
|
Homepage: http://www.fail2ban.org
|
||||||
|
Vcs-Git: git://github.com/fail2ban/fail2ban.git
|
||||||
|
Vcs-Browser: http://github.com/fail2ban/fail2ban
|
||||||
|
diff --git a/debian/rules b/debian/rules
|
||||||
|
index 5eccf9f..0aea805 100755
|
||||||
|
--- a/debian/rules
|
||||||
|
+++ b/debian/rules
|
||||||
|
@@ -62,14 +62,12 @@ binary-indep: install
|
||||||
|
dh_installdocs
|
||||||
|
dh_installexamples config/jail.conf files/ipmasq-*
|
||||||
|
dh_installlogrotate
|
||||||
|
- dh_python2 /usr/share/fail2ban
|
||||||
|
+ dh_pycentral
|
||||||
|
dh_installinit -- defaults 99
|
||||||
|
-
|
||||||
|
- # perform swap of order of calls to init and pycentral (or even
|
||||||
|
- # bleedingly new dh_python2) in prerm to close #422655 --
|
||||||
|
- # python-cleanup section is cut and placed at the end of the file
|
||||||
|
- # since .init script would trigger their compilation again
|
||||||
|
- sed -i -e '/^#.*ed by dh_python2/,/# End auto/{H;d};$$G' \
|
||||||
|
+ # perform swap of order of calls to init and pycentral in prerm
|
||||||
|
+ # to close #422655 -- pycentral section is cut and placed at
|
||||||
|
+ # the end of the file
|
||||||
|
+ sed -i -e '/^#.*ed by dh_pycentral/,/# End auto/{H;d};$$G' \
|
||||||
|
debian/fail2ban.prerm.debhelper
|
||||||
|
|
||||||
|
dh_installman man/*.1
|
||||||
|
--
|
||||||
|
1.8.0
|
||||||
|
|
Loading…
Reference in New Issue