[arch-commits] Commit in fail2ban/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Fri Nov 3 08:31:42 UTC 2017


    Date: Friday, November 3, 2017 @ 08:31:37
  Author: felixonmars
Revision: 265264

upgpkg: fail2ban 0.10.1-1

Modified:
  fail2ban/trunk/PKGBUILD

----------+
 PKGBUILD |   12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-03 08:26:07 UTC (rev 265263)
+++ PKGBUILD	2017-11-03 08:31:37 UTC (rev 265264)
@@ -6,7 +6,7 @@
 # Contributor: nbags <neilbags at gmail.com>
 
 pkgname=fail2ban
-pkgver=0.10.0
+pkgver=0.10.1
 pkgrel=1
 pkgdesc='Bans IPs after too many failed authentication attempts'
 url='http://www.fail2ban.org/'
@@ -19,8 +19,14 @@
         etc/fail2ban/jail.conf
         etc/logrotate.d/fail2ban)
 source=($pkgname-$pkgver.tar.gz::https://github.com/fail2ban/$pkgname/archive/$pkgver.tar.gz)
-sha512sums=('4906d54a761a6f053928613f091b3228c28f9d1dc2f24a3f1f6904f8141ef811a394692b8808e810524e73ecbf2f40b5da827c7fb05e8aefdf1d783abf88781f')
+sha512sums=('556e071e439454ef369e7e323cae9652bbfb8e43d697e9b6c19d710e9d59838db489ffe07125443c86837b0a9f0688b7567135178591d1817caaab954ce40366')
 
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i 's|self.install_dir|"/usr/bin"|' setup.py
+  sed -i 's/^before = paths-debian.conf/before = paths-arch.conf/' config/jail.conf
+}
+
 check() {
   cd $pkgname-$pkgver
   ./fail2ban-2to3
@@ -33,7 +39,7 @@
 
   chmod 644 "$pkgdir/usr/lib/python3.6/site-packages/fail2ban-$pkgver-py3.6.egg-info"/*
 
-  install -Dm644 files/fail2ban.service \
+  install -Dm644 build/fail2ban.service \
     "$pkgdir"/usr/lib/systemd/system/$pkgname.service
   install -Dm644 files/fail2ban-tmpfiles.conf \
     "$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf



More information about the arch-commits mailing list