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-r2.ebuild
Date: Tue, 04 May 2010 02:53:56
Message-Id: 20100504025351.727F52C3E8@corvid.gentoo.org
1 darkside 10/05/04 02:53:50
2
3 Modified: ChangeLog
4 Added: denyhosts-2.6-r2.ebuild
5 Log:
6 Revision bump to not install dupicate docs and install log rotate file, bug 274253 by Michael
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.38 app-admin/denyhosts/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.38&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.38&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/ChangeLog?r1=1.37&r2=1.38
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v
19 retrieving revision 1.37
20 retrieving revision 1.38
21 diff -u -r1.37 -r1.38
22 --- ChangeLog 20 Dec 2009 04:13:49 -0000 1.37
23 +++ ChangeLog 4 May 2010 02:53:50 -0000 1.38
24 @@ -1,6 +1,13 @@
25 # ChangeLog for app-admin/denyhosts
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.37 2009/12/20 04:13:49 arfrever Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.38 2010/05/04 02:53:50 darkside Exp $
30 +
31 +*denyhosts-2.6-r2 (04 May 2010)
32 +
33 + 04 May 2010; Jeremy Olexa <darkside@g.o> +denyhosts-2.6-r2.ebuild,
34 + +files/denyhosts.logrotate:
35 + Revision bump to not install dupicate docs and install log rotate file,
36 + bug 274253 by Michael
37
38 20 Dec 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
39 denyhosts-2.6-r1.ebuild:
40
41
42
43 1.1 app-admin/denyhosts/denyhosts-2.6-r2.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: denyhosts-2.6-r2.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-r2.ebuild,v 1.1 2010/05/04 02:53:50 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 }