[arch-commits] Commit in fail2ban/repos/community-staging-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Nov 24 18:33:26 UTC 2020


    Date: Tuesday, November 24, 2020 @ 18:33:25
  Author: felixonmars
Revision: 761002

archrelease: copy trunk to community-staging-any

Added:
  fail2ban/repos/community-staging-any/PKGBUILD
    (from rev 761001, fail2ban/trunk/PKGBUILD)
Deleted:
  fail2ban/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |  145 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 68 insertions(+), 77 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-24 18:33:02 UTC (rev 761001)
+++ PKGBUILD	2020-11-24 18:33:25 UTC (rev 761002)
@@ -1,77 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
-# Contributor: Geoffroy Carrier <geoffroy.carrier at koon.fr>
-# Contributor: michalzxc
-# Contributor: nbags <neilbags at gmail.com>
-
-pkgname=fail2ban
-pkgver=0.11.1
-pkgrel=2
-pkgdesc='Bans IPs after too many failed authentication attempts'
-url='https://www.fail2ban.org/'
-license=('GPL')
-arch=('any')
-depends=('iptables' 'python-pyinotify' 'whois' 'sqlite' 'python-systemd')
-makedepends=('python-setuptools')
-checkdepends=('python-coverage')
-backup=(etc/fail2ban/fail2ban.conf
-        etc/fail2ban/jail.conf
-        etc/logrotate.d/fail2ban)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/fail2ban/$pkgname/archive/$pkgver.tar.gz"
-        fail2ban-fix-nginx-rule.patch::https://github.com/fail2ban/fail2ban/commit/ec37b1942c4da76f7a0f71efe81bea6835466648.patch
-        fail2ban-test-fixes.patch::https://github.com/fail2ban/fail2ban/commit/8dc6f30cdd855c41b80ebdde3fe2bc91cc94e594.patch
-        fail2ban-python3.9.patch::https://github.com/fail2ban/fail2ban/pull/2651.patch)
-sha512sums=('019b088aa6375f98742ed101ef6f65adabca3324444d71d5b8597a8d1d22fa76b9f503660f0498643fe24a3b8e4368de916072a1ab77b8e2ea3eda41c3e0c8c6'
-            '2d57fe7a7e3d1889dfa00ac33f5071069ed62f5fc0edb1e1827aedc47fae3a36d19c568b1721ba3a8e117f4ba6b3756d11942f2320b42864d45203f45761c7b6'
-            '76fa1b43cd082933d06ed2964ebf40799ebea77a5b1c94d1e8668bb3d7bc070361d1a25124169e2d69643056f84767d9c9822a8838f3ea6950b562ce467b242d'
-            '83b2192c6fa45b0fdb230b4e8f9547151462178d771addb013e32712f1560b2e1d70969ae378dfa39de9cf9d84188d073e4dcd1d7812c694e19f4a156d62cc66')
-
-prepare() {
-  cd $pkgname-$pkgver
-  patch -p1 -i ../fail2ban-fix-nginx-rule.patch
-  patch -p1 -i ../fail2ban-test-fixes.patch
-  patch -p1 -i ../fail2ban-python3.9.patch || :
-  sed -i 's|self.install_dir|"/usr/bin"|' setup.py
-  sed -i 's/^before = paths-debian.conf/before = paths-arch.conf/' config/jail.conf
-}
-
-build() {
-  cd $pkgname-$pkgver
-  ./fail2ban-2to3
-  python setup.py build
-}
-
-check() {
-  # make temp copy to run coverage since it messes with file permissions
-  cp -r $pkgname-$pkgver{,-coverage}
-  cd $pkgname-$pkgver-coverage
-  coverage run bin/fail2ban-testcases
-}
-
-package() {
-  cd $pkgname-$pkgver
-  python setup.py install --root "$pkgdir" --optimize=1
-
-  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
-  install -Dm644 files/fail2ban-logrotate \
-    "$pkgdir"/etc/logrotate.d/fail2ban
-  install -Dm644 files/bash-completion \
-    "$pkgdir"/usr/share/bash-completion/completions/fail2ban
-
-  # fix sendmail location
-  sed -i 's/sbin/bin/g' "$pkgdir"/etc/fail2ban/action.d/sendmail*.conf
-
-  install -Dm644 man/fail2ban.1 "$pkgdir"/usr/share/man/man1/fail2ban.1
-  install -Dm644 man/fail2ban-client.1 \
-    "$pkgdir"/usr/share/man/man1/fail2ban-client.1
-  install -Dm644 man/fail2ban-regex.1 \
-    "$pkgdir"/usr/share/man/man1/fail2ban-regex.1
-  install -Dm644 man/fail2ban-server.1 \
-    "$pkgdir"/usr/share/man/man1/fail2ban-server.1
-  install -Dm644 man/jail.conf.5 "$pkgdir"/usr/share/man/man5/jail.conf.5
-
-  rm -r "$pkgdir/run"
-}

Copied: fail2ban/repos/community-staging-any/PKGBUILD (from rev 761001, fail2ban/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-11-24 18:33:25 UTC (rev 761002)
@@ -0,0 +1,68 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Geoffroy Carrier <geoffroy.carrier at koon.fr>
+# Contributor: michalzxc
+# Contributor: nbags <neilbags at gmail.com>
+
+pkgname=fail2ban
+pkgver=0.11.2
+pkgrel=1
+pkgdesc='Bans IPs after too many failed authentication attempts'
+url='https://www.fail2ban.org/'
+license=('GPL')
+arch=('any')
+depends=('iptables' 'python-pyinotify' 'whois' 'sqlite' 'python-systemd')
+makedepends=('python-setuptools')
+checkdepends=('python-coverage')
+backup=(etc/fail2ban/fail2ban.conf
+        etc/fail2ban/jail.conf
+        etc/logrotate.d/fail2ban)
+source=("$pkgname-$pkgver.tar.gz::https://github.com/fail2ban/$pkgname/archive/$pkgver.tar.gz")
+sha512sums=('46b27abd947b00ea64106dbac563ef8afef38eec86684024d47d9a0e8c1969ff864ad6df7f4f8de2aa3eb1af6d769fb6796592d9f0e35521d5f95f17b8cade97')
+
+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
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./fail2ban-2to3
+  python setup.py build
+}
+
+check() {
+  # make temp copy to run coverage since it messes with file permissions
+  cp -r $pkgname-$pkgver{,-coverage}
+  cd $pkgname-$pkgver-coverage
+  coverage run bin/fail2ban-testcases
+}
+
+package() {
+  cd $pkgname-$pkgver
+  python setup.py install --root "$pkgdir" --optimize=1
+
+  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
+  install -Dm644 files/fail2ban-logrotate \
+    "$pkgdir"/etc/logrotate.d/fail2ban
+  install -Dm644 files/bash-completion \
+    "$pkgdir"/usr/share/bash-completion/completions/fail2ban
+
+  # fix sendmail location
+  sed -i 's/sbin/bin/g' "$pkgdir"/etc/fail2ban/action.d/sendmail*.conf
+
+  install -Dm644 man/fail2ban.1 "$pkgdir"/usr/share/man/man1/fail2ban.1
+  install -Dm644 man/fail2ban-client.1 \
+    "$pkgdir"/usr/share/man/man1/fail2ban-client.1
+  install -Dm644 man/fail2ban-regex.1 \
+    "$pkgdir"/usr/share/man/man1/fail2ban-regex.1
+  install -Dm644 man/fail2ban-server.1 \
+    "$pkgdir"/usr/share/man/man1/fail2ban-server.1
+  install -Dm644 man/jail.conf.5 "$pkgdir"/usr/share/man/man5/jail.conf.5
+
+  rm -r "$pkgdir/run"
+}



More information about the arch-commits mailing list