From eb33925609c209ce4370a6406f014eb9d6c81722 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 20 Apr 2011 16:45:50 +0000 Subject: main/fail2ban: moved from testing fixes #525 --- testing/fail2ban/APKBUILD | 48 ---------------------- testing/fail2ban/fail2ban.confd | 8 ---- testing/fail2ban/fail2ban.logrotate | 9 ---- testing/fail2ban/gentoo-initd_create_run_dir.patch | 19 --------- 4 files changed, 84 deletions(-) delete mode 100644 testing/fail2ban/APKBUILD delete mode 100644 testing/fail2ban/fail2ban.confd delete mode 100644 testing/fail2ban/fail2ban.logrotate delete mode 100644 testing/fail2ban/gentoo-initd_create_run_dir.patch (limited to 'testing') diff --git a/testing/fail2ban/APKBUILD b/testing/fail2ban/APKBUILD deleted file mode 100644 index 8a770f60ef..0000000000 --- a/testing/fail2ban/APKBUILD +++ /dev/null @@ -1,48 +0,0 @@ -# Contributor: Jeff Bilyk -# Maintainer: Natanael Copa -pkgname=fail2ban -pkgver=0.8.4 -pkgrel=1 -pkgdesc="Scans log files for login failures then updates iptables to reject originating ip address" -url="http://www.fail2ban.org" -arch="noarch" -license="GPLv2" -depends="python iptables logrotate" -makedepends="python-dev" -install="" -source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2 - gentoo-initd_create_run_dir.patch - fail2ban.confd - fail2ban.logrotate - " - -_builddir="$srcdir/$pkgname-$pkgver" -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - -build() { - cd "$_builddir" -} - -package() { - cd "$_builddir" - python setup.py install --root "$pkgdir" || return 1 - install -Dm755 files/gentoo-initd "$pkgdir"/etc/init.d/fail2ban \ - || return 1 - install -Dm644 "$srcdir"/fail2ban.confd "$pkgdir"/etc/conf.d/fail2ban \ - || return 1 - install -Dm644 "$srcdir"/fail2ban.logrotate \ - "$pkgdir"/etc/logrotate.d/fail2ban || return 1 -} - -md5sums="df94335a5d12b4750869e5fe350073fa fail2ban-0.8.4.tar.bz2 -61580eb6d8d9a4d187e97bc27f2fcb1e gentoo-initd_create_run_dir.patch -b209a04f9314dd064a4aa0ee505c8a4d fail2ban.confd -6d1af6ceebd15c8ae3938bc675efe553 fail2ban.logrotate" diff --git a/testing/fail2ban/fail2ban.confd b/testing/fail2ban/fail2ban.confd deleted file mode 100644 index 3c957b9221..0000000000 --- a/testing/fail2ban/fail2ban.confd +++ /dev/null @@ -1,8 +0,0 @@ -# Config file for /etc/init.d/fail2ban - -# For information on options, see "/usr/bin/fail2ban-client -h". - -FAIL2BAN_OPTIONS="" - -# Force execution of the server even if the socket already exists: -#FAIL2BAN_OPTIONS="-x" diff --git a/testing/fail2ban/fail2ban.logrotate b/testing/fail2ban/fail2ban.logrotate deleted file mode 100644 index 5d22bd0395..0000000000 --- a/testing/fail2ban/fail2ban.logrotate +++ /dev/null @@ -1,9 +0,0 @@ -/var/log/fail2ban.log { - daily - rotate 7 - missingok - compress - postrotate - /usr/bin/fail2ban-client set logtarget /var/log/fail2ban.log 1>/dev/null || true - endscript -} diff --git a/testing/fail2ban/gentoo-initd_create_run_dir.patch b/testing/fail2ban/gentoo-initd_create_run_dir.patch deleted file mode 100644 index 79a947956e..0000000000 --- a/testing/fail2ban/gentoo-initd_create_run_dir.patch +++ /dev/null @@ -1,19 +0,0 @@ -Index: fail2ban-0.8.4/files/gentoo-initd -=================================================================== ---- fail2ban-0.8.4.orig/files/gentoo-initd -+++ fail2ban-0.8.4/files/gentoo-initd -@@ -31,6 +31,14 @@ depend() { - - start() { - ebegin "Starting fail2ban" -+ if [ ! -d /var/run/fail2ban ]; then -+ mkdir /var/run/fail2ban || return 1 -+ fi -+ if [ -e /var/run/fail2ban/fail2ban.sock ]; then -+ # remove stalled sock file after system crash -+ # bug 347477 -+ rm -rf /var/run/fail2ban/fail2ban.sock || return 1 -+ fi - ${FAIL2BAN} start &> /dev/null - eend $? "Failed to start fail2ban" - } -- cgit v1.2.3