From dfe27aef0185cab22b18cbd694c8ef97569626fd Mon Sep 17 00:00:00 2001 From: Raphaƫl Marichez Date: Tue, 25 Sep 2007 13:17:17 +0000 Subject: Add logrotate script file as from upstream documentation (bug 193745) (Portage version: 2.1.2.12) --- net-analyzer/fail2ban/ChangeLog | 6 +++++- net-analyzer/fail2ban/fail2ban-0.8.1.ebuild | 7 ++++++- net-analyzer/fail2ban/files/fail2ban-logrotate | 9 +++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 net-analyzer/fail2ban/files/fail2ban-logrotate (limited to 'net-analyzer/fail2ban') 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 + +files/fail2ban-logrotate, fail2ban-0.8.1.ebuild: + Add logrotate script file as from upstream documentation (bug 193745) 06 Sep 2007; Markus Ullmann -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 +} -- cgit v1.2.3-65-gdbad