Date: Thursday, October 6, 2022 @ 10:04:17
  Author: foutrelis
Revision: 1321869

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |  127 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 66 insertions(+), 61 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-06 10:04:13 UTC (rev 1321868)
+++ PKGBUILD    2022-10-06 10:04:17 UTC (rev 1321869)
@@ -1,61 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-# Maintainer: Daniel M. Capella <[email protected]>
-# Contributor: BartÅ‚omiej Piotrowski <[email protected]>
-# Contributor: Geoffroy Carrier <[email protected]>
-# Contributor: michalzxc
-# Contributor: nbags <[email protected]>
-
-pkgname=fail2ban
-pkgver=1.0.1
-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')
-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=('a4d0ee5405225b1ec950f3209bc304c1168c644d06309a187d77119f6bea12c382db046130a86411aad4210b458a16ee092269dc7953400950969a34550c6da5')
-
-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
-}
-
-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-any/PKGBUILD (from rev 1321868, 
fail2ban/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-10-06 10:04:17 UTC (rev 1321869)
@@ -0,0 +1,66 @@
+# Maintainer: Felix Yan <[email protected]>
+# Maintainer: Daniel M. Capella <[email protected]>
+# Contributor: BartÅ‚omiej Piotrowski <[email protected]>
+# Contributor: Geoffroy Carrier <[email protected]>
+# Contributor: michalzxc
+# Contributor: nbags <[email protected]>
+
+pkgname=fail2ban
+pkgver=1.0.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')
+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";
+        
"$pkgname-dovecot-regex.patch::https://github.com/fail2ban/fail2ban/commit/ca2b94c5229b.patch";)
+sha512sums=('a4d0ee5405225b1ec950f3209bc304c1168c644d06309a187d77119f6bea12c382db046130a86411aad4210b458a16ee092269dc7953400950969a34550c6da5'
+            
'71709c0bf9448ae3fd9115b130f052f4823c362b0ddea18cd846a82143c1216bfb373ce878ad8c54f700e87719e8ca19bba53308c6e145f2f8754aec9c2ac07e')
+
+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
+
+  # https://github.com/fail2ban/fail2ban/issues/3370
+  patch -Np1 -i ../$pkgname-dovecot-regex.patch || [[ $pkgver == 1.0.1  ]]
+}
+
+build() {
+  cd $pkgname-$pkgver
+  ./fail2ban-2to3
+  python setup.py build
+}
+
+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"
+}

Reply via email to