[arch-commits] Commit in fail2ban/repos/community-any (4 files)

Felix Yan fyan at archlinux.org
Fri Jul 10 13:17:02 UTC 2015


    Date: Friday, July 10, 2015 @ 15:17:02
  Author: fyan
Revision: 136621

archrelease: copy trunk to community-any

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

------------------+
 PKGBUILD         |   97 ++++++++++++++++++++++++++++-------------------------
 fail2ban.install |    6 +--
 2 files changed, 56 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2015-07-10 13:16:47 UTC (rev 136620)
+++ PKGBUILD	2015-07-10 13:17:02 UTC (rev 136621)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer:  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.9.1
-pkgrel=1
-pkgdesc='Bans IPs after too many failed authentication attempts'
-url='http://www.fail2ban.org/'
-license=('GPL')
-arch=('any')
-depends=('python' 'iptables' 'python-pyinotify' 'whois' 'sqlite')
-backup=(etc/fail2ban/fail2ban.conf)
-install=fail2ban.install
-source=(https://github.com/fail2ban/$pkgname/archive/$pkgver.tar.gz)
-md5sums=('3554cc3de3f06ddfd7f90f8305b765b8')
-
-package() {
-  cd $pkgname-$pkgver
-  python setup.py install --prefix /usr --root "$pkgdir" --optimize=1
-
-  install -Dm644 files/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
-}

Copied: fail2ban/repos/community-any/PKGBUILD (from rev 136620, fail2ban/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2015-07-10 13:17:02 UTC (rev 136621)
@@ -0,0 +1,53 @@
+# $Id$
+# 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.9.2
+pkgrel=1
+pkgdesc='Bans IPs after too many failed authentication attempts'
+url='http://www.fail2ban.org/'
+license=('GPL')
+arch=('any')
+depends=('python' 'iptables' 'python-pyinotify' 'whois' 'sqlite')
+makedepends=('python-setuptools')
+checkdepends=('python-setuptools' 'python-coverage')
+backup=(etc/fail2ban/fail2ban.conf)
+install=fail2ban.install
+source=($pkgname-$pkgver.tar.gz::https://github.com/fail2ban/$pkgname/archive/$pkgver.tar.gz)
+md5sums=('bcdc9ef9f02c6fe8e43bb391835c65d6')
+
+check() {
+  cd $pkgname-$pkgver
+  ./fail2ban-2to3
+  coverage run bin/fail2ban-testcases || warning "Tests failed"
+}
+
+package() {
+  cd $pkgname-$pkgver
+  python setup.py install --prefix /usr --root "$pkgdir" --optimize=1
+
+  install -Dm644 files/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
+}

Deleted: fail2ban.install
===================================================================
--- fail2ban.install	2015-07-10 13:16:47 UTC (rev 136620)
+++ fail2ban.install	2015-07-10 13:17:02 UTC (rev 136621)
@@ -1,3 +0,0 @@
-post_install() {
-  usr/bin/systemd-tmpfiles --create fail2ban.conf
-}

Copied: fail2ban/repos/community-any/fail2ban.install (from rev 136620, fail2ban/trunk/fail2ban.install)
===================================================================
--- fail2ban.install	                        (rev 0)
+++ fail2ban.install	2015-07-10 13:17:02 UTC (rev 136621)
@@ -0,0 +1,3 @@
+post_install() {
+  usr/bin/systemd-tmpfiles --create fail2ban.conf
+}



More information about the arch-commits mailing list