network/fail2ban: Updated for version 0.8.9.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Nishant Limbachia 2013-06-03 01:56:51 -05:00 committed by Robby Workman
parent ec5e235a80
commit 99e12a62ef
4 changed files with 20 additions and 13 deletions

View file

@ -43,4 +43,6 @@ Simplified rc.fail2ban start. Removed check for executable bit on rc.fail2ban d
Upgraded to new version 0.8.6 Upgraded to new version 0.8.6
03/16/2013 03/16/2013
Upgraded to new version 0.8.8 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.

View file

@ -1,7 +1,6 @@
#!/bin/sh #!/bin/sh
# Slackware Package Build Script for fail2ban # Slackware Package Build Script for fail2ban
# Home Page http://www.fail2ban.org/wiki/index.php/Main_Page
# Git Hub: https://github.com/fail2ban/fail2ban/ # Git Hub: https://github.com/fail2ban/fail2ban/
# Copyright (c) 2008-2013, Nishant Limbachia, Hoffman Estates, IL, USA # Copyright (c) 2008-2013, Nishant Limbachia, Hoffman Estates, IL, USA
@ -27,7 +26,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="fail2ban" PRGNAM="fail2ban"
VERSION=${VERSION:-0.8.8} VERSION=${VERSION:-0.8.9}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -43,7 +42,7 @@ set -e
rm -fr $PKG $TMP/$PRGNAM-$VERSION rm -fr $PKG $TMP/$PRGNAM-$VERSION
mkdir -p $PKG $TMP $OUTPUT mkdir -p $PKG $TMP $OUTPUT
cd $TMP 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 cd $TMP/$PRGNAM-$VERSION
chown -R root.root . chown -R root.root .
find . \ find . \
@ -55,9 +54,10 @@ find . \
python setup.py install --root=$PKG python setup.py install --root=$PKG
# installing man pages # 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 \ 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 # move config files to .new
( cd $PKG/etc/fail2ban ( 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 # make directory for socket and pid file
mkdir -p $PKG/var/run/fail2ban mkdir -p $PKG/var/run/fail2ban
# remove /usr/share/doc
rm -fr $PKG/usr/share/doc
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# building package # building package

View file

@ -1,8 +1,8 @@
PRGNAM="fail2ban" PRGNAM="fail2ban"
VERSION="0.8.8" VERSION="0.8.9"
HOMEPAGE="https://github.com/fail2ban/fail2ban/" HOMEPAGE="https://github.com/fail2ban/fail2ban/"
DOWNLOAD="https://github.com/fail2ban/fail2ban/archive/0.8.8.tar.gz" DOWNLOAD="https://github.com/fail2ban/fail2ban/archive/0.8.9.tar.gz"
MD5SUM="f0019454591b2bb89de40f7581544f1b" MD5SUM="e0207f2127cbe7455147ceb77aad0081"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""

View file

@ -1,10 +1,11 @@
# 5/23/2013 - updated logrotate script based on suggestion by Sebastian Arcus
# and official github documentation.
/var/log/fail2ban.log { /var/log/fail2ban.log {
weekly weekly
rotate 4 rotate 7
missingok missingok
nocompress nocompress
postrotate 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 endscript
} }