Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/denyhosts: ChangeLog denyhosts-2.6-r4.ebuild denyhosts-2.6-r3.ebuild
Date: Thu, 07 Oct 2010 13:03:09
Message-Id: 20101007124533.9782220051@flycatcher.gentoo.org
1 darkside 10/10/07 12:45:33
2
3 Modified: ChangeLog
4 Added: denyhosts-2.6-r4.ebuild
5 Removed: denyhosts-2.6-r3.ebuild
6 Log:
7 Modify init script (in place) to fix bug 244700 affecting baselayout-2 users. Revision bump to force the new file install. Work by Lex Brugman
8
9 (Portage version: 2.1.9.12/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.41 app-admin/denyhosts/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.41&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.41&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/ChangeLog?r1=1.40&r2=1.41
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v
21 retrieving revision 1.40
22 retrieving revision 1.41
23 diff -u -r1.40 -r1.41
24 --- ChangeLog 5 Oct 2010 17:12:38 -0000 1.40
25 +++ ChangeLog 7 Oct 2010 12:45:33 -0000 1.41
26 @@ -1,6 +1,13 @@
27 # ChangeLog for app-admin/denyhosts
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.40 2010/10/05 17:12:38 darkside Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.41 2010/10/07 12:45:33 darkside Exp $
31 +
32 +*denyhosts-2.6-r4 (07 Oct 2010)
33 +
34 + 07 Oct 2010; Jeremy Olexa <darkside@g.o> -denyhosts-2.6-r3.ebuild,
35 + +denyhosts-2.6-r4.ebuild, files/denyhosts.init:
36 + Modify init script (in place) to fix bug 244700 affecting baselayout-2
37 + users. Revision bump to force the new file install. Work by Lex Brugman
38
39 05 Oct 2010; Jeremy Olexa <darkside@g.o> files/denyhosts.init:
40 Add CVS Header for easier troubleshooting
41
42
43
44 1.1 app-admin/denyhosts/denyhosts-2.6-r4.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r4.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r4.ebuild?rev=1.1&content-type=text/plain
48
49 Index: denyhosts-2.6-r4.ebuild
50 ===================================================================
51 # Copyright 1999-2010 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r4.ebuild,v 1.1 2010/10/07 12:45:33 darkside Exp $
54
55 EAPI="2"
56 SUPPORT_PYTHON_ABIS="1"
57
58 inherit distutils eutils
59
60 MY_PN="DenyHosts"
61 MY_P="${MY_PN}-${PV}"
62
63 DESCRIPTION="DenyHosts is a utility to help sys admins thwart ssh hackers"
64 HOMEPAGE="http://www.denyhosts.net"
65 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~sparc ~x86"
70 IUSE=""
71
72 DEPEND=""
73 RDEPEND=""
74
75 RESTRICT_PYTHON_ABIS="3.*"
76 PYTHON_MODNAME="${MY_PN}"
77
78 S="${WORKDIR}/${MY_P}"
79
80 src_prepare() {
81 # changes default file installations
82 epatch "${FILESDIR}"/${P}-gentoo.patch
83 epatch "${FILESDIR}"/${P}-log-injection-regex.patch
84 sed -i -e 's:DENY_THRESHOLD_VALID = 10:DENY_THRESHOLD_VALID = 5:' \
85 denyhosts.cfg-dist || die "sed failed"
86 }
87
88 src_install() {
89 DOCS="CHANGELOG.txt README.txt PKG-INFO"
90 distutils_src_install
91
92 insinto /etc
93 insopts -m0640
94 newins denyhosts.cfg-dist denyhosts.conf || die
95
96 dodir /etc/logrotate.d
97 insinto /etc/logrotate.d
98 newins "${FILESDIR}"/${PN}.logrotate ${PN} || die
99
100 newinitd "${FILESDIR}"/denyhosts.init denyhosts || die
101
102 # build system installs docs that we installed above
103 rm -f "${D}"/usr/share/denyhosts/*.txt
104
105 keepdir /var/lib/denyhosts
106 }
107
108 pkg_postinst() {
109 distutils_pkg_postinst
110
111 if [[ ! -f "${ROOT}etc/hosts.deny" ]]; then
112 touch "${ROOT}etc/hosts.deny"
113 fi
114
115 elog "You can configure DenyHosts to run as a daemon by running:"
116 elog
117 elog "rc-update add denyhosts default"
118 elog
119 elog "or as a cronjob, by adding the following to /etc/crontab"
120 elog "# run DenyHosts every 10 minutes"
121 elog "*/10 * * * * root /usr/bin/denyhosts.py -c /etc/denyhosts.conf"
122 elog
123 elog "More information can be found at http://denyhosts.sourceforge.net/faq.html"
124 elog
125 ewarn "Modify /etc/denyhosts.conf to suit your environment system."
126 }