wok-next diff fail2ban/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | e19ff076dc63 |
children |
line diff
1.1 --- a/fail2ban/receipt Mon Dec 31 17:23:40 2018 +0200 1.2 +++ b/fail2ban/receipt Sat Nov 21 14:32:44 2020 +0100 1.3 @@ -1,15 +1,16 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="fail2ban" 1.7 -VERSION="0.9.0" 1.8 +VERSION="0.11.1" 1.9 CATEGORY="network" 1.10 -SHORT_DESC="Scans log files to bans IP that makes too many password failures" 1.11 +TAGS="monitor network" 1.12 +SHORT_DESC="Scans log files to ban IP that makes too many password failures" 1.13 MAINTAINER="pascal.bellard@slitaz.org" 1.14 LICENSE="GPL2" 1.15 +WEB_SITE="http://www.fail2ban.org/wiki/index.php/Main_Page" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 -WEB_SITE="http://www.fail2ban.org/wiki/index.php/Main_Page" 1.19 WGET_URL="https://codeload.github.com/$PACKAGE/$PACKAGE/tar.gz/$VERSION" 1.20 -TAGS="monitor network" 1.21 CONFIG_FILES="/etc/fail2ban" 1.22 1.23 COOKOPTS="force-arch" # different .egg-info (file/dir) ? 1.24 @@ -17,19 +18,25 @@ 1.25 DEPENDS="iptables" 1.26 BUILD_DEPENDS="python" 1.27 1.28 -compile_rules() { 1.29 +compile_rules() 1.30 +{ 1.31 python -B setup.py install --root=$install 1.32 } 1.33 1.34 -genpkg_rules() { 1.35 - mkdir -p $fs/etc/logrotate.d $fs/etc/init.d 1.36 - cp -a $install/* $fs 1.37 - sed -i 's/= \\s\*(/= \\s*\\S+\\s\*(/' $fs/etc/fail2ban/filter.d/common.conf 1.38 - sed -i -e 's|127.0.0.1|& 192.168.0.0/16|;s|sshd.log|messages|' \ 1.39 - -e '/ssh-iptables/{nn;s/false/true/}' $fs/etc/fail2ban/jail.conf 1.40 +genpkg_rules() 1.41 +{ 1.42 + mkdir -p $fs/etc/logrotate.d 1.43 + mkdir -p $fs/etc/init.d 1.44 1.45 - cp -a $stuff/etc/fail2ban/ $fs/etc/ 1.46 - cp -a $stuff/etc/init.d $fs/etc/ 1.47 + cp -a $install/* $fs 1.48 + sed -i 's/= \\s\*(/= \\s*\\S+\\s\*(/' \ 1.49 + $fs/etc/fail2ban/filter.d/common.conf 1.50 + sed -i -e 's|127.0.0.1|& 192.168.0.0/16|;s|sshd.log|messages|' \ 1.51 + -e '/ssh-iptables/{nn;s/false/true/}' \ 1.52 + $fs/etc/fail2ban/jail.conf 1.53 + 1.54 + cp -a $stuff/etc/fail2ban $fs/etc 1.55 + cp -a $stuff/etc/init.d $fs/etc 1.56 1.57 cat >> $fs/etc/fail2ban/jail.conf <<EOT 1.58 [apache-noscript]