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

Bartłomiej Piotrowski bpiotrowski at nymeria.archlinux.org
Sun May 12 06:18:57 UTC 2013


    Date: Sunday, May 12, 2013 @ 08:18:57
  Author: bpiotrowski
Revision: 90382

archrelease: copy trunk to community-any

Added:
  fail2ban/repos/community-any/PKGBUILD
    (from rev 90381, fail2ban/trunk/PKGBUILD)
  fail2ban/repos/community-any/fail2ban.install
    (from rev 90381, fail2ban/trunk/fail2ban.install)
  fail2ban/repos/community-any/service
    (from rev 90381, fail2ban/trunk/service)
  fail2ban/repos/community-any/tmpfiles.conf
    (from rev 90381, fail2ban/trunk/tmpfiles.conf)
Deleted:
  fail2ban/repos/community-any/PKGBUILD
  fail2ban/repos/community-any/rc.d
  fail2ban/repos/community-any/service
  fail2ban/repos/community-any/tmpfiles.conf

------------------+
 PKGBUILD         |   67 ++++++++++++++++++++++++++---------------------------
 fail2ban.install |    3 ++
 rc.d             |   40 -------------------------------
 service          |   26 ++++++++++----------
 tmpfiles.conf    |    2 -
 5 files changed, 50 insertions(+), 88 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-12 06:18:45 UTC (rev 90381)
+++ PKGBUILD	2013-05-12 06:18:57 UTC (rev 90382)
@@ -1,34 +0,0 @@
-# $Id$
-# Maintainer:  Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
-# Contributor: Geoffroy Carrier <geoffroy.carrier at koon.fr>
-# Contributor: michalzxc
-# Contributor: nbags <neilbags at gmail.com>
-
-pkgname=fail2ban
-pkgver=0.8.8
-pkgrel=1
-pkgdesc='Bans IPs after too many failed authentification attempts against common daemons'
-url='http://www.fail2ban.org/'
-license=('GPL')
-arch=('any')
-depends=('python2' 'iptables')
-backup=(etc/fail2ban/fail2ban.conf
-        etc/fail2ban/jail.conf)
-source=($pkgname-$pkgver.tar.gz::https://nodeload.github.com/$pkgname/$pkgname/legacy.tar.gz/$pkgver
-		rc.d service tmpfiles.conf)
-md5sums=('352f41692cc731297b078923e46d3aea'
-         '70caa58e130a13a505d63a35b9aecfb6'
-         'b4af226eb2d3029241a70e005ec7b3ac'
-         '78b42dea76c6c824b813dad9edc37377')
-
-package() {
-  cd $srcdir/$pkgname-$pkgname-*/
-  python2 setup.py install --root $pkgdir
-
-  install -Dm755 $srcdir/rc.d $pkgdir/etc/rc.d/$pkgname
-  install -Dm644 $srcdir/service $pkgdir/usr/lib/systemd/system/$pkgname.service
-  install -Dm644 $srcdir/tmpfiles.conf $pkgdir/usr/lib/tmpfiles.d/$pkgname.conf
-
-  # avoid conflict with filesystem>=2012.06
-  rm -r $pkgdir/var/run
-}

Copied: fail2ban/repos/community-any/PKGBUILD (from rev 90381, fail2ban/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2013-05-12 06:18:57 UTC (rev 90382)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer:  Bartłomiej Piotrowski <nospam at bpiotrowski.pl>
+# Contributor: Geoffroy Carrier <geoffroy.carrier at koon.fr>
+# Contributor: michalzxc
+# Contributor: nbags <neilbags at gmail.com>
+
+pkgname=fail2ban
+pkgver=0.8.8
+pkgrel=2
+pkgdesc='Bans IPs after too many failed authentification attempts against common daemons'
+url='http://www.fail2ban.org/'
+license=('GPL')
+arch=('any')
+depends=('python2' 'iptables')
+backup=(etc/fail2ban/fail2ban.conf
+        etc/fail2ban/jail.conf)
+install=fail2ban.install
+source=(https://nodeload.github.com/$pkgname/$pkgname/legacy.tar.gz/$pkgver
+        service tmpfiles.conf)
+md5sums=('352f41692cc731297b078923e46d3aea'
+         'b4af226eb2d3029241a70e005ec7b3ac'
+         '88d51ecc760ad2e017a165c632f49892')
+
+package() {
+  cd $pkgname-$pkgname-*
+  python2 setup.py install --root "$pkgdir"
+
+  install -Dm644 "$srcdir"/service "$pkgdir"/usr/lib/systemd/system/$pkgname.service
+  install -Dm644 "$srcdir"/tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/$pkgname.conf
+
+  # avoid conflict with filesystem>=2012.06
+  rm -r "$pkgdir"/var/run
+}

Copied: fail2ban/repos/community-any/fail2ban.install (from rev 90381, fail2ban/trunk/fail2ban.install)
===================================================================
--- fail2ban.install	                        (rev 0)
+++ fail2ban.install	2013-05-12 06:18:57 UTC (rev 90382)
@@ -0,0 +1,3 @@
+post_install() {
+  usr/bin/systemd-tmpfiles --create fail2ban.conf
+}

Deleted: rc.d
===================================================================
--- rc.d	2013-05-12 06:18:45 UTC (rev 90381)
+++ rc.d	2013-05-12 06:18:57 UTC (rev 90382)
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-FAIL2BAN="/usr/bin/fail2ban-client"
-
-case "$1" in
-  start)
-    stat_busy "Starting fail2ban"
-
-    [ -d /var/run/fail2ban ] || mkdir -p /var/run/fail2ban
-    [ -f /var/run/fail2ban/fail2ban.pid ] && rm -f /var/run/fail2ban/fail2ban.pid
-    $FAIL2BAN start >/dev/null
-    if [ $? -gt 0 ]; then
-      stat_fail
-    else
-      add_daemon fail2ban
-      stat_done
-    fi
-    ;;
-  stop)
-    stat_busy "Stopping fail2ban"
-    if [ "`$FAIL2BAN stop`" == "Shutdown successful" ]; then
-      rm -f /var/run/fail2ban/fail2ban.pid &> /dev/null
-      rm_daemon fail2ban
-      stat_done
-    else
-          stat_fail
-    fi
-    ;;
-  restart)
-    $0 stop
-    sleep 3
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac
-exit 0

Deleted: service
===================================================================
--- service	2013-05-12 06:18:45 UTC (rev 90381)
+++ service	2013-05-12 06:18:57 UTC (rev 90382)
@@ -1,13 +0,0 @@
-[Unit]
-Description=Ban IPs that make too many password failures
-After=syslog.target network.target
-
-[Service]
-Type=forking
-ExecStart=/usr/bin/fail2ban-client start
-ExecReload=/usr/bin/fail2ban-client reload
-ExecStop=/usr/bin/fail2ban-client stop
-PIDFile=/var/run/fail2ban/fail2ban.pid
-
-[Install]
-WantedBy=multi-user.target

Copied: fail2ban/repos/community-any/service (from rev 90381, fail2ban/trunk/service)
===================================================================
--- service	                        (rev 0)
+++ service	2013-05-12 06:18:57 UTC (rev 90382)
@@ -0,0 +1,13 @@
+[Unit]
+Description=Ban IPs that make too many password failures
+After=syslog.target network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/fail2ban-client start
+ExecReload=/usr/bin/fail2ban-client reload
+ExecStop=/usr/bin/fail2ban-client stop
+PIDFile=/var/run/fail2ban/fail2ban.pid
+
+[Install]
+WantedBy=multi-user.target

Deleted: tmpfiles.conf
===================================================================
--- tmpfiles.conf	2013-05-12 06:18:45 UTC (rev 90381)
+++ tmpfiles.conf	2013-05-12 06:18:57 UTC (rev 90382)
@@ -1 +0,0 @@
-d /var/run/fail2ban 0755 root root - -

Copied: fail2ban/repos/community-any/tmpfiles.conf (from rev 90381, fail2ban/trunk/tmpfiles.conf)
===================================================================
--- tmpfiles.conf	                        (rev 0)
+++ tmpfiles.conf	2013-05-12 06:18:57 UTC (rev 90382)
@@ -0,0 +1 @@
+d /run/fail2ban 0755 root root - -




More information about the arch-commits mailing list