Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/fail2ban: fail2ban-0.8.6.ebuild ChangeLog
Date: Fri, 30 Dec 2011 10:19:02
Message-Id: 20111230101851.D78E42004B@flycatcher.gentoo.org
1 hwoarang 11/12/30 10:18:51
2
3 Modified: ChangeLog
4 Added: fail2ban-0.8.6.ebuild
5 Log:
6 Version bump. Bug #392481
7
8 (Portage version: 2.2.0_alpha82/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.75 net-analyzer/fail2ban/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/fail2ban/ChangeLog?rev=1.75&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/fail2ban/ChangeLog?rev=1.75&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/fail2ban/ChangeLog?r1=1.74&r2=1.75
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/fail2ban/ChangeLog,v
20 retrieving revision 1.74
21 retrieving revision 1.75
22 diff -u -r1.74 -r1.75
23 --- ChangeLog 15 Dec 2011 08:50:08 -0000 1.74
24 +++ ChangeLog 30 Dec 2011 10:18:51 -0000 1.75
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-analyzer/fail2ban
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fail2ban/ChangeLog,v 1.74 2011/12/15 08:50:08 scarabeus Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/fail2ban/ChangeLog,v 1.75 2011/12/30 10:18:51 hwoarang Exp $
30 +
31 +*fail2ban-0.8.6 (30 Dec 2011)
32 +
33 + 30 Dec 2011; Markos Chandras <hwoarang@g.o> +fail2ban-0.8.6.ebuild,
34 + +files/fail2ban-0.8.6-sshd-breakin.patch:
35 + Version bump. Bug #392481
36
37 *fail2ban-0.8.4-r4 (15 Dec 2011)
38
39
40
41
42 1.1 net-analyzer/fail2ban/fail2ban-0.8.6.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/fail2ban/fail2ban-0.8.6.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/fail2ban/fail2ban-0.8.6.ebuild?rev=1.1&content-type=text/plain
46
47 Index: fail2ban-0.8.6.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/fail2ban/fail2ban-0.8.6.ebuild,v 1.1 2011/12/30 10:18:51 hwoarang Exp $
52
53 EAPI="3"
54 PYTHON_DEPEND="2"
55
56 inherit distutils eutils
57
58 DESCRIPTION="Bans IP that make too many password failures"
59 HOMEPAGE="http://fail2ban.sourceforge.net/"
60 SRC_URI="https://github.com/${PN}/${PN}/tarball/${PV} -> ${P}.tar.gz"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
65 IUSE="selinux"
66
67 DEPEND="selinux? ( sec-policy/selinux-fail2ban )"
68 RDEPEND="net-misc/whois
69 virtual/mta
70 net-firewall/iptables
71 selinux? ( sec-policy/selinux-fail2ban )"
72
73 S="${WORKDIR}"/${PN}-${PN}-a20d1f8
74
75 pkg_setup() {
76 python_set_active_version 2
77 python_pkg_setup
78 }
79
80 src_prepare() {
81 epatch "${FILESDIR}"/${P}-sshd-breakin.patch
82 distutils_src_prepare
83 }
84
85 src_install() {
86 distutils_src_install
87
88 newconfd files/gentoo-confd fail2ban || die
89 newinitd files/gentoo-initd fail2ban || die
90 dodoc ChangeLog README TODO || die "dodoc failed"
91 doman man/*.1 || die "doman failed"
92
93 # Use INSTALL_MASK if you do not want to touch /etc/logrotate.d.
94 # See http://thread.gmane.org/gmane.linux.gentoo.devel/35675
95 insinto /etc/logrotate.d
96 newins "${FILESDIR}"/${PN}-logrotate ${PN} || die
97 }
98
99 pkg_preinst() {
100 has_version "<${CATEGORY}/${PN}-0.7"
101 previous_less_than_0_7=$?
102 }
103
104 pkg_postinst() {
105 distutils_pkg_postinst
106
107 if [[ $previous_less_than_0_7 = 0 ]] ; then
108 elog
109 elog "Configuration files are now in /etc/fail2ban/"
110 elog "You probably have to manually update your configuration"
111 elog "files before restarting Fail2ban!"
112 elog
113 elog "Fail2ban is not installed under /usr/lib anymore. The"
114 elog "new location is under /usr/share."
115 elog
116 elog "You are upgrading from version 0.6.x, please see:"
117 elog "http://www.fail2ban.org/wiki/index.php/HOWTO_Upgrade_from_0.6_to_0.8"
118 fi
119 }