Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/denyhosts: ChangeLog denyhosts-2.6-r1.ebuild
Date: Thu, 13 Sep 2007 15:18:26
Message-Id: E1IVqJi-0006T1-9M@stork.gentoo.org
1 pva 07/09/13 15:09:18
2
3 Modified: ChangeLog
4 Added: denyhosts-2.6-r1.ebuild
5 Log:
6 Fixes log injection reported by Sune Kloppenborg Jeppesen in bug #181213.
7 (Portage version: 2.1.3.9)
8
9 Revision Changes Path
10 1.28 app-admin/denyhosts/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.28&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.28&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/ChangeLog?r1=1.27&r2=1.28
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v
19 retrieving revision 1.27
20 retrieving revision 1.28
21 diff -u -r1.27 -r1.28
22 --- ChangeLog 14 Aug 2007 18:10:41 -0000 1.27
23 +++ ChangeLog 13 Sep 2007 15:09:14 -0000 1.28
24 @@ -1,6 +1,12 @@
25 # ChangeLog for app-admin/denyhosts
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.27 2007/08/14 18:10:41 strerror Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.28 2007/09/13 15:09:14 pva Exp $
29 +
30 +*denyhosts-2.6-r1 (13 Sep 2007)
31 +
32 + 13 Sep 2007; <pva@g.o>
33 + +files/denyhosts-2.6-log-injection-regex.patch, +denyhosts-2.6-r1.ebuild:
34 + Fixes log injection reported by Sune Kloppenborg Jeppesen in bug #181213.
35
36 14 Aug 2007; Benjamin Smee <strerror@g.o> files/denyhosts.init:
37 fix for bug #174501
38
39
40
41 1.1 app-admin/denyhosts/denyhosts-2.6-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: denyhosts-2.6-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r1.ebuild,v 1.1 2007/09/13 15:09:14 pva Exp $
51
52 inherit distutils eutils
53
54 my_PN="DenyHosts"
55 my_P="${my_PN}-${PV}"
56 DESCRIPTION="DenyHosts is a utility to help sys admins thwart ssh hackers"
57 HOMEPAGE="http://www.denyhosts.net"
58 SRC_URI="mirror://sourceforge/${PN}/${my_P}.tar.gz"
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
62 IUSE=""
63 DEPEND=">=dev-lang/python-2.3"
64 S="${WORKDIR}/${my_P}"
65
66 src_unpack() {
67 unpack ${A}
68 cd "${S}"
69 # changes default file installations
70 epatch "${FILESDIR}"/${P}-gentoo.patch
71 epatch "${FILESDIR}"/${P}-log-injection-regex.patch
72 sed -i -e 's:#!/usr/bin/env python:#!/usr/bin/python:' \
73 denyhosts.py || die "sed failed"
74 sed -i -e 's:DENY_THRESHOLD_VALID = 10:DENY_THRESHOLD_VALID = 5:' \
75 denyhosts.cfg-dist || die "sed failed"
76 }
77
78 src_install() {
79 distutils_src_install
80
81 insinto /etc
82 insopts -m0640
83 newins denyhosts.cfg-dist denyhosts.conf
84
85 newinitd "${FILESDIR}"/denyhosts.init denyhosts
86
87 exeinto /usr/bin
88 newexe denyhosts.py denyhosts
89
90 dodoc CHANGELOG.txt README.txt
91
92 keepdir /var/lib/denyhosts
93 }
94
95 pkg_postinst() {
96 if [ ! -f /etc/hosts.deny ]
97 then
98 touch /etc/hosts.deny
99 fi
100
101 elog "You can configure DenyHosts to run as a daemon by running:"
102 elog
103 elog "rc-update add denyhosts default"
104 elog
105 elog "or as a cronjob, by adding the following to /etc/crontab"
106 elog "# run DenyHosts every 10 minutes"
107 elog "*/10 * * * * root python /usr/bin/denyhosts -c /etc/denyhosts.conf"
108 elog
109 elog "More information can be found at http://denyhosts.sourceforge.net/faq.html"
110 elog
111 ewarn "Modify /etc/denyhosts.conf to suit your environment system."
112 }
113
114
115
116 --
117 gentoo-commits@g.o mailing list