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