diff options
author | Raphaël Marichez <falco@gentoo.org> | 2007-09-25 13:17:17 +0000 |
---|---|---|
committer | Raphaël Marichez <falco@gentoo.org> | 2007-09-25 13:17:17 +0000 |
commit | dfe27aef0185cab22b18cbd694c8ef97569626fd (patch) | |
tree | 4dd86a0d0101b1957a1ea07053ad39e874c42e83 /net-analyzer/fail2ban | |
parent | fixed ChangeLog headers (diff) | |
download | gentoo-2-dfe27aef0185cab22b18cbd694c8ef97569626fd.tar.gz gentoo-2-dfe27aef0185cab22b18cbd694c8ef97569626fd.tar.bz2 gentoo-2-dfe27aef0185cab22b18cbd694c8ef97569626fd.zip |
Add logrotate script file as from upstream documentation (bug 193745)
(Portage version: 2.1.2.12)
Diffstat (limited to 'net-analyzer/fail2ban')
-rw-r--r-- | net-analyzer/fail2ban/ChangeLog | 6 | ||||
-rw-r--r-- | net-analyzer/fail2ban/fail2ban-0.8.1.ebuild | 7 | ||||
-rw-r--r-- | net-analyzer/fail2ban/files/fail2ban-logrotate | 9 |
3 files changed, 20 insertions, 2 deletions
diff --git a/net-analyzer/fail2ban/ChangeLog b/net-analyzer/fail2ban/ChangeLog index 39a04e0a7957..c2f9351c26ef 100644 --- a/net-analyzer/fail2ban/ChangeLog +++ b/net-analyzer/fail2ban/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-analyzer/fail2ban # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fail2ban/ChangeLog,v 1.36 2007/09/06 16:34:20 jokey Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fail2ban/ChangeLog,v 1.37 2007/09/25 13:17:16 falco Exp $ + + 25 Sep 2007; Raphael Marichez <falco@gentoo.org> + +files/fail2ban-logrotate, fail2ban-0.8.1.ebuild: + Add logrotate script file as from upstream documentation (bug 193745) 06 Sep 2007; Markus Ullmann <jokey@gentoo.org> -fail2ban-0.7.9.ebuild, -fail2ban-0.8.0.ebuild: diff --git a/net-analyzer/fail2ban/fail2ban-0.8.1.ebuild b/net-analyzer/fail2ban/fail2ban-0.8.1.ebuild index 155499d76e3c..f584b55ce9dc 100644 --- a/net-analyzer/fail2ban/fail2ban-0.8.1.ebuild +++ b/net-analyzer/fail2ban/fail2ban-0.8.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fail2ban/fail2ban-0.8.1.ebuild,v 1.1 2007/08/31 15:06:17 falco Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fail2ban/fail2ban-0.8.1.ebuild,v 1.2 2007/09/25 13:17:16 falco Exp $ inherit distutils @@ -24,6 +24,11 @@ src_install() { newinitd files/gentoo-initd fail2ban dodoc CHANGELOG README TODO || die "dodoc failed" doman man/*.1 || die "doman failed" + + # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d. + # See http://thread.gmane.org/gmane.linux.gentoo.devel/35675 + insinto /etc/logrotate.d + newins ${FILESDIR}/${PN}-logrotate ${PN} || die } pkg_postinst() { diff --git a/net-analyzer/fail2ban/files/fail2ban-logrotate b/net-analyzer/fail2ban/files/fail2ban-logrotate new file mode 100644 index 000000000000..a3e60e6acc6d --- /dev/null +++ b/net-analyzer/fail2ban/files/fail2ban-logrotate @@ -0,0 +1,9 @@ +/var/log/fail2ban.log { + daily + rotate 7 + missingok + compress + postrotate + /usr/local/bin/fail2ban-client reload 1>/dev/null || true + endscript +} |