1
From: Yaroslav Halchenko <debian@onerussian.com>
2
Date: Thu, 6 Dec 2012 12:50:12 -0500
3
Subject: [PATCH] Patch for elderly Debian/Ubuntu (e.g. 10.04) releases without dh_python2
5
Use again pycentral etc
7
crafted post 0.8.8-1 release when a user complained about inability to upgrade
11
debian/rules | 12 +++++-------
12
2 files changed, 7 insertions(+), 7 deletions(-)
16
@@ -3,6 +3,8 @@ Section: net
18
Maintainer: Yaroslav Halchenko <debian@onerussian.com>
19
Build-Depends: debhelper (>= 5.0.37.2), python (>= 2.5.4-1~), python-pyinotify
20
+Build-Depends-Indep: python-central (>= 0.5.6)
21
+XS-Python-Version: current, >= 2.4
22
Homepage: http://www.fail2ban.org
23
Vcs-Git: git://github.com/fail2ban/fail2ban.git
24
Vcs-Browser: http://github.com/fail2ban/fail2ban
27
@@ -72,14 +72,12 @@ binary-indep: install
29
dh_installexamples config/jail.conf files/ipmasq-*
31
- dh_python2 /usr/share/fail2ban
33
dh_installinit -- defaults 99
35
- # perform swap of order of calls to init and pycentral (or even
36
- # bleedingly new dh_python2) in prerm to close #422655 --
37
- # python-cleanup section is cut and placed at the end of the file
38
- # since .init script would trigger their compilation again
39
- sed -i -e '/^#.*ed by dh_python2/,/# End auto/{H;d};$$G' \
40
+ # perform swap of order of calls to init and pycentral in prerm
41
+ # to close #422655 -- pycentral section is cut and placed at
42
+ # the end of the file
43
+ sed -i -e '/^#.*ed by dh_pycentral/,/# End auto/{H;d};$$G' \
44
debian/fail2ban.prerm.debhelper
46
dh_installman man/*.[15]