[arch-commits] Commit in fail2ban/trunk (PKGBUILD failban-0.9.0-fix-indentation.patch)

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Mon Mar 17 07:53:49 UTC 2014


    Date: Monday, March 17, 2014 @ 08:53:49
  Author: bpiotrowski
Revision: 107356

upgpkg: fail2ban 0.9.0-1

new upstream release

Added:
  fail2ban/trunk/failban-0.9.0-fix-indentation.patch
Modified:
  fail2ban/trunk/PKGBUILD

-------------------------------------+
 PKGBUILD                            |   19 +++++++++++-----
 failban-0.9.0-fix-indentation.patch |   39 ++++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-03-17 07:38:39 UTC (rev 107355)
+++ PKGBUILD	2014-03-17 07:53:49 UTC (rev 107356)
@@ -5,8 +5,8 @@
 # Contributor: nbags <neilbags at gmail.com>
 
 pkgname=fail2ban
-pkgver=0.8.12
-pkgrel=2
+pkgver=0.9.0
+pkgrel=1
 pkgdesc='Bans IPs after too many failed authentication attempts'
 url='http://www.fail2ban.org/'
 license=('GPL')
@@ -16,11 +16,18 @@
         etc/fail2ban/jail.conf)
 install=fail2ban.install
 source=(https://github.com/fail2ban/$pkgname/archive/$pkgver.tar.gz
-        service tmpfiles.conf)
-sha256sums=('4844d17296861c39647c6053b1dc146fe80691f3833dd116ea9197059946f467'
-            '1bce54ad435b7dd3547baceea050a1d66745010b28a4ded269f6707cebdc99b1'
-            'ce8922c4734a56c88f22ffa4f2ad5819d113c7d4e439b142c984816599ebc1f4')
+        service tmpfiles.conf
+        failban-0.9.0-fix-indentation.patch)
+md5sums=('c8e0df39cbc32ee8646b82be9b7b5e53'
+         'b4af226eb2d3029241a70e005ec7b3ac'
+         '88d51ecc760ad2e017a165c632f49892'
+         '3b22b9d826c82a503df31a24f10d58a6')
 
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../failban-0.9.0-fix-indentation.patch
+}
+
 package() {
   cd $pkgname-$pkgver
   python2 setup.py install --root "$pkgdir"

Added: failban-0.9.0-fix-indentation.patch
===================================================================
--- failban-0.9.0-fix-indentation.patch	                        (rev 0)
+++ failban-0.9.0-fix-indentation.patch	2014-03-17 07:53:49 UTC (rev 107356)
@@ -0,0 +1,39 @@
+From e193e67718b77a1603a91079d7ab4d2307570a8e Mon Sep 17 00:00:00 2001
+From: Steven Hiscocks <steven at hiscocks.me.uk>
+Date: Sun, 16 Mar 2014 18:25:16 +0000
+Subject: [PATCH] BF: fail2ban-regex mix of tabs and spaces
+
+---
+ bin/fail2ban-regex | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/bin/fail2ban-regex b/bin/fail2ban-regex
+index 270b70d..4317d06 100755
+--- a/bin/fail2ban-regex
++++ b/bin/fail2ban-regex
+@@ -395,7 +395,7 @@ class Fail2banRegex(object):
+ 				if lines < self._maxlines or getattr(self, '_print_all_' + ltype):
+ 					ans = [[]]
+ 					for arg in [l, regexlist]:
+-					    ans = [ x + [y] for x in ans for y in arg ]
++						ans = [ x + [y] for x in ans for y in arg ]
+ 					b = map(lambda a: a[0] +  ' | ' + a[1].getFailRegex() + ' |  ' + debuggexURL(a[0], a[1].getFailRegex()), ans)
+ 					pprint_list([x.rstrip() for x in b], header)
+ 				else:
+@@ -466,11 +466,11 @@ if __name__ == "__main__":
+ 	if opts.print_no_missed and opts.print_all_missed:
+ 		sys.stderr.write("ERROR: --print-no-missed and --print-all-missed are mutually exclusive.\n\n")
+ 		parser.print_help()
+-	        sys.exit(-1)
++		sys.exit(-1)
+ 	if opts.print_no_ignored and opts.print_all_ignored:
+ 		sys.stderr.write("ERROR: --print-no-ignored and --print-all-ignored are mutually exclusive.\n\n")
+ 		parser.print_help()
+-	        sys.exit(-1)
++		sys.exit(-1)
+ 
+ 	print
+ 	print "Running tests"
+-- 
+1.8.5.5
+




More information about the arch-commits mailing list