summaryrefslogtreecommitdiff
path: root/network/fail2ban/fail2ban.SlackBuild
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2018-04-11 23:06:36 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-14 07:06:28 +0700
commitebba8e9779709a4c5c776fbf4041bb2e59d86533 (patch)
tree49bb81dc2186fed14d0b4e3b8f6035bf0a87774e /network/fail2ban/fail2ban.SlackBuild
parentb905e9a2ca1fe3340328ce1396cd429692f1e234 (diff)
downloadslackbuilds-ebba8e9779709a4c5c776fbf4041bb2e59d86533.tar.gz
network/fail2ban: Updated for version 0.10.3.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/fail2ban/fail2ban.SlackBuild')
-rw-r--r--network/fail2ban/fail2ban.SlackBuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/network/fail2ban/fail2ban.SlackBuild b/network/fail2ban/fail2ban.SlackBuild
index 8cc9857aba..fe0e99be27 100644
--- a/network/fail2ban/fail2ban.SlackBuild
+++ b/network/fail2ban/fail2ban.SlackBuild
@@ -3,7 +3,7 @@
# Slackware Package Build Script for fail2ban
# Git Hub: https://github.com/fail2ban/fail2ban/
-# Copyright (c) 2008-2017, Nishant Limbachia, Hoffman Estates, IL, USA
+# Copyright (c) 2008-2018, Nishant Limbachia, Hoffman Estates, IL, USA
# <nishant _AT_ mnspace _DOT_ net>
# All rights reserved.
@@ -26,7 +26,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM="fail2ban"
-VERSION=${VERSION:-0.10.1}
+VERSION=${VERSION:-0.10.3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -89,6 +89,11 @@ install -D -m 0644 $CWD/config/paths-slackware.conf $PKG/etc/fail2ban/paths-slac
# remove non-slackware specific config files
rm -f $PKG/etc/fail2ban/paths-{arch,debian,fedora,freebsd,osx,opensuse}.conf.new
+# install bash completion script if requested
+if [ "$BASH_COMPLETION" = "yes" ]; then
+ install -D -m 0644 files/bash-completion $PKG/etc/bash_completion.d/fail2ban.new
+fi
+
# install logrotate script
install -D -m 0644 files/fail2ban-logrotate $PKG/etc/logrotate.d/fail2ban.new
@@ -109,11 +114,5 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-# install bash completion script if requested
-if [ "${BASH_COMPLETION:-no}" = "yes" ]; then
- install -D -m 0644 files/bash-completion $PKG/etc/bash_completion.d/fail2ban.new
- echo "config etc/bash_completion.d/fail2ban.new" >> $PKG/install/doinst.sh
-fi
-
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}