diff options
author | Nishant Limbachia <nishant@mnspace.net> | 2013-06-03 01:56:51 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-06-04 00:11:29 -0500 |
commit | 99e12a62efe2dd838dc94d7e5bee76ab5ea3ecbe (patch) | |
tree | a168938d167fd13ee884675982fca58247278335 /network/fail2ban | |
parent | ec5e235a801a1afbfdd913352b670da131041469 (diff) |
network/fail2ban: Updated for version 0.8.9.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/fail2ban')
-rw-r--r-- | network/fail2ban/README.SBo | 4 | ||||
-rw-r--r-- | network/fail2ban/fail2ban.SlackBuild | 16 | ||||
-rw-r--r-- | network/fail2ban/fail2ban.info | 6 | ||||
-rw-r--r-- | network/fail2ban/fail2ban.logrotate | 7 |
4 files changed, 20 insertions, 13 deletions
diff --git a/network/fail2ban/README.SBo b/network/fail2ban/README.SBo index 349ab8c35777f..90db1bc871126 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 57f62b42335d6..b90cdf6635174 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 54e840b349629..3050d374daa0b 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 2c973a26de716..8af60998873d6 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 } - |