mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
network/fail2ban: Fix some rotated filenames/bash_competion stuff.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
3e0d337a82
commit
074263c0f5
2 changed files with 8 additions and 5 deletions
|
@ -24,4 +24,3 @@ preserve_perms() {
|
|||
|
||||
preserve_perms etc/rc.d/rc.fail2ban.new
|
||||
config etc/logrotate.d/fail2ban.new
|
||||
config etc/bash_completion.d/fail2ban.new
|
||||
|
|
|
@ -30,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd)
|
|||
|
||||
PRGNAM="fail2ban"
|
||||
VERSION=${VERSION:-1.0.2}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -72,7 +72,7 @@ sed -i 's|self.install_dir|"/usr/bin"|' setup.py
|
|||
sed -i 's/^before = paths-debian.conf/before = paths-slackware.conf/' config/jail.conf
|
||||
|
||||
./fail2ban-2to3
|
||||
python setup.py install --root=$PKG
|
||||
python3 setup.py install --root=$PKG
|
||||
|
||||
# installing man pages
|
||||
mkdir -p $PKG/usr/man/{man1,man5}
|
||||
|
@ -87,14 +87,18 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r
|
|||
install -D -m 0644 $CWD/rc.fail2ban $PKG/etc/rc.d/rc.fail2ban.new
|
||||
|
||||
# install slackware specific config file
|
||||
install -D -m 0644 $CWD/config/paths-slackware.conf $PKG/etc/fail2ban/paths-slackware.conf.new
|
||||
install -D -m 0644 $CWD/config/paths-slackware.conf $PKG/etc/fail2ban/paths-slackware.conf
|
||||
|
||||
# remove non-slackware specific config files
|
||||
rm -f $PKG/etc/fail2ban/paths-{arch,debian,fedora,freebsd,osx,opensuse}.conf.new
|
||||
rm -f $PKG/etc/fail2ban/paths-{arch,debian,fedora,freebsd,osx,opensuse}.conf
|
||||
|
||||
# install bash completion script if requested
|
||||
if [ "$BASH_COMPLETION" = "yes" ]; then
|
||||
install -D -m 0644 files/bash-completion $PKG/usr/share/bash-completion/completions/fail2ban
|
||||
( cd $PKG/usr/share/bash-completion/completions ; ln -sf fail2ban fail2ban-client )
|
||||
( cd $PKG/usr/share/bash-completion/completions ; ln -sf fail2ban fail2ban-python )
|
||||
( cd $PKG/usr/share/bash-completion/completions ; ln -sf fail2ban fail2ban-regex )
|
||||
( cd $PKG/usr/share/bash-completion/completions ; ln -sf fail2ban fail2ban-server )
|
||||
fi
|
||||
|
||||
# install logrotate script
|
||||
|
|
Loading…
Reference in a new issue