1 |
idl0r 11/12/31 15:46:16 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: denyhosts-2.6-r5.ebuild |
5 |
Removed: denyhosts-2.6-r4.ebuild |
6 |
Log: |
7 |
Revbump. Don't use the deprecated $opts variable, bug 393657. |
8 |
|
9 |
(Portage version: 2.1.10.41/cvs/Linux i686, RepoMan options: --force) |
10 |
|
11 |
Revision Changes Path |
12 |
1.47 app-admin/denyhosts/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.47&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.47&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/ChangeLog?r1=1.46&r2=1.47 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v |
21 |
retrieving revision 1.46 |
22 |
retrieving revision 1.47 |
23 |
diff -u -r1.46 -r1.47 |
24 |
--- ChangeLog 5 Nov 2011 07:46:40 -0000 1.46 |
25 |
+++ ChangeLog 31 Dec 2011 15:46:16 -0000 1.47 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for app-admin/denyhosts |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.46 2011/11/05 07:46:40 lxnay Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.47 2011/12/31 15:46:16 idl0r Exp $ |
31 |
+ |
32 |
+*denyhosts-2.6-r5 (31 Dec 2011) |
33 |
+ |
34 |
+ 31 Dec 2011; Christian Ruppert <idl0r@g.o> -denyhosts-2.6-r4.ebuild, |
35 |
+ +denyhosts-2.6-r5.ebuild, files/denyhosts.init: |
36 |
+ Revbump. Don't use the deprecated $opts variable, bug 393657. |
37 |
|
38 |
05 Nov 2011; Fabio Erculiani <lxnay@g.o> denyhosts-2.6-r4.ebuild: |
39 |
doesn't work with Python 3, restrict dependency |
40 |
|
41 |
|
42 |
|
43 |
1.1 app-admin/denyhosts/denyhosts-2.6-r5.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r5.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r5.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: denyhosts-2.6-r5.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 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-r5.ebuild,v 1.1 2011/12/31 15:46:16 idl0r Exp $ |
53 |
|
54 |
EAPI="2" |
55 |
SUPPORT_PYTHON_ABIS="1" |
56 |
RESTRICT_PYTHON_ABIS="3.*" |
57 |
PYTHON_DEPEND="2" |
58 |
|
59 |
inherit distutils eutils |
60 |
|
61 |
MY_PN="DenyHosts" |
62 |
MY_P="${MY_PN}-${PV}" |
63 |
|
64 |
DESCRIPTION="DenyHosts is a utility to help sys admins thwart ssh hackers" |
65 |
HOMEPAGE="http://www.denyhosts.net" |
66 |
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" |
67 |
|
68 |
LICENSE="GPL-2" |
69 |
SLOT="0" |
70 |
KEYWORDS="alpha amd64 arm hppa ppc sparc x86" |
71 |
IUSE="" |
72 |
|
73 |
DEPEND="" |
74 |
RDEPEND="" |
75 |
|
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 |
} |