# SliTaz package receipt. PACKAGE="fail2ban" VERSION="0.8.4" CATEGORY="network" SHORT_DESC="Scans log files to bans IP that makes too many password failures." MAINTAINER="pascal.bellard@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.fail2ban.org/wiki/index.php/Main_Page" DEPENDS="iptables" BUILD_DEPENDS="python" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" TAGS="monitor network" CONFIG_FILES="/etc/fail2ban" # Rules to configure and make the package. compile_rules() { cd $src python setup.py install --root=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/etc/logrotate.d cp -a $_pkg/* $fs sed -i -e 's|127.0.0.1|& 192.168.0.0/16|;s|sshd.log|messages|' \ -e '/ssh-iptables/{nn;s/false/true/}' $fs/etc/fail2ban/jail.conf cat >> $fs/etc/fail2ban/jail.conf < $fs/etc/logrotate.d/fail2ban </dev/null || true endscript } EOT }