summaryrefslogtreecommitdiff
path: root/network/fail2ban
diff options
context:
space:
mode:
Diffstat (limited to 'network/fail2ban')
-rw-r--r--network/fail2ban/README.SBo4
-rw-r--r--network/fail2ban/fail2ban.SlackBuild16
-rw-r--r--network/fail2ban/fail2ban.info6
-rw-r--r--network/fail2ban/fail2ban.logrotate7
4 files changed, 20 insertions, 13 deletions
diff --git a/network/fail2ban/README.SBo b/network/fail2ban/README.SBo
index 349ab8c357..90db1bc871 100644
--- a/network/fail2ban/README.SBo
+++ b/network/fail2ban/README.SBo
@@ -43,4 +43,6 @@ Simplified rc.fail2ban start. Removed check for executable bit on rc.fail2ban d
Upgraded to new version 0.8.6
03/16/2013
Upgraded to new version 0.8.8
-
+05/23/2013
+Upgraded to new version 0.8.9, updated logrotate script. There have been quite a few
+new features and changes to conf files.
diff --git a/network/fail2ban/fail2ban.SlackBuild b/network/fail2ban/fail2ban.SlackBuild
index 57f62b4233..b90cdf6635 100644
--- a/network/fail2ban/fail2ban.SlackBuild
+++ b/network/fail2ban/fail2ban.SlackBuild
@@ -1,7 +1,6 @@
#!/bin/sh
# Slackware Package Build Script for fail2ban
-# Home Page http://www.fail2ban.org/wiki/index.php/Main_Page
# Git Hub: https://github.com/fail2ban/fail2ban/
# Copyright (c) 2008-2013, Nishant Limbachia, Hoffman Estates, IL, USA
@@ -27,7 +26,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="fail2ban"
-VERSION=${VERSION:-0.8.8}
+VERSION=${VERSION:-0.8.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -43,7 +42,7 @@ set -e
rm -fr $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $PKG $TMP $OUTPUT
cd $TMP
-tar xvf $CWD/${PRGNAM}-${VERSION}.tar.?z* || tar xvf $CWD/$VERSION.tar.?z
+tar xvf $CWD/${PRGNAM}-${VERSION}.tar.?z* || tar xvf $CWD/${VERSION}.tar.?z*
cd $TMP/$PRGNAM-$VERSION
chown -R root.root .
find . \
@@ -55,9 +54,10 @@ find . \
python setup.py install --root=$PKG
# installing man pages
-mkdir -p $PKG/usr/man/man1
+mkdir -p $PKG/usr/man/{man1,man5}
install -m 0644 man/fail2ban-client.1 man/fail2ban-regex.1 \
- man/fail2ban-server.1 $PKG/usr/man/man1
+ man/fail2ban-server.1 man/fail2ban.1 $PKG/usr/man/man1
+install -m 0644 man/jail.conf.5 $PKG/usr/man/man5
# move config files to .new
( cd $PKG/etc/fail2ban
@@ -78,8 +78,12 @@ install -D -m 0644 $CWD/fail2ban.logrotate $PKG/etc/logrotate.d/fail2ban.new
# make directory for socket and pid file
mkdir -p $PKG/var/run/fail2ban
+# remove /usr/share/doc
+rm -fr $PKG/usr/share/doc
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING ChangeLog README THANKS TODO doc/run-rootless.txt $PKG/usr/doc/$PRGNAM-$VERSION
+ cp -a COPYING ChangeLog README.md THANKS TODO DEVELOP \
+ doc/run-rootless.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# building package
diff --git a/network/fail2ban/fail2ban.info b/network/fail2ban/fail2ban.info
index 54e840b349..3050d374da 100644
--- a/network/fail2ban/fail2ban.info
+++ b/network/fail2ban/fail2ban.info
@@ -1,8 +1,8 @@
PRGNAM="fail2ban"
-VERSION="0.8.8"
+VERSION="0.8.9"
HOMEPAGE="https://github.com/fail2ban/fail2ban/"
-DOWNLOAD="https://github.com/fail2ban/fail2ban/archive/0.8.8.tar.gz"
-MD5SUM="f0019454591b2bb89de40f7581544f1b"
+DOWNLOAD="https://github.com/fail2ban/fail2ban/archive/0.8.9.tar.gz"
+MD5SUM="e0207f2127cbe7455147ceb77aad0081"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
diff --git a/network/fail2ban/fail2ban.logrotate b/network/fail2ban/fail2ban.logrotate
index 2c973a26de..8af6099887 100644
--- a/network/fail2ban/fail2ban.logrotate
+++ b/network/fail2ban/fail2ban.logrotate
@@ -1,10 +1,11 @@
+# 5/23/2013 - updated logrotate script based on suggestion by Sebastian Arcus
+# and official github documentation.
/var/log/fail2ban.log {
weekly
- rotate 4
+ rotate 7
missingok
nocompress
postrotate
- /etc/rc.d/rc.fail2ban reload 1> /dev/null || true
+ /usr/bin/fail2ban-client set logtarget /var/log/fail2ban.log 1>/dev/null || true
endscript
}
-