diff options
author | Benjamin Smee <strerror@gentoo.org> | 2006-04-18 15:36:51 +0000 |
---|---|---|
committer | Benjamin Smee <strerror@gentoo.org> | 2006-04-18 15:36:51 +0000 |
commit | ad4c3b4bd41eb25ec4e5d8c023e0c540d46d706b (patch) | |
tree | eccd2cc662e6161da2731a66f48d280a268dfb50 /app-admin/denyhosts | |
parent | Add vorbis-psy flag for speex. (diff) | |
download | historical-ad4c3b4bd41eb25ec4e5d8c023e0c540d46d706b.tar.gz historical-ad4c3b4bd41eb25ec4e5d8c023e0c540d46d706b.tar.bz2 historical-ad4c3b4bd41eb25ec4e5d8c023e0c540d46d706b.zip |
Version bump and small config change for possible security issue
Package-Manager: portage-2.0.54
Diffstat (limited to 'app-admin/denyhosts')
-rw-r--r-- | app-admin/denyhosts/ChangeLog | 8 | ||||
-rw-r--r-- | app-admin/denyhosts/Manifest | 5 | ||||
-rw-r--r-- | app-admin/denyhosts/denyhosts-2.4.ebuild | 65 | ||||
-rw-r--r-- | app-admin/denyhosts/files/denyhosts-2.4-gentoo.patch | 77 | ||||
-rw-r--r-- | app-admin/denyhosts/files/digest-denyhosts-2.4 | 1 |
5 files changed, 154 insertions, 2 deletions
diff --git a/app-admin/denyhosts/ChangeLog b/app-admin/denyhosts/ChangeLog index f17cdc782a9c..fbbdf74134f6 100644 --- a/app-admin/denyhosts/ChangeLog +++ b/app-admin/denyhosts/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-admin/denyhosts # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.7 2006/03/30 10:11:56 strerror Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.8 2006/04/18 15:36:51 strerror Exp $ + +*denyhosts-2.4 (18 Apr 2006) + + 18 Apr 2006; Benjamin Smee <strerror@gentoo.org> + +files/denyhosts-2.4-gentoo.patch, +denyhosts-2.4.ebuild: + Version bump and small config change for possible security issue *denyhosts-2.2 (30 Mar 2006) diff --git a/app-admin/denyhosts/Manifest b/app-admin/denyhosts/Manifest index 1cbdb6858b99..14234bd4cf4d 100644 --- a/app-admin/denyhosts/Manifest +++ b/app-admin/denyhosts/Manifest @@ -1,10 +1,13 @@ -MD5 1cf8a018badd11d1f1803da6fd2aa409 ChangeLog 1326 +MD5 b7622d7b1475fde350ac4513c42aeb61 ChangeLog 1535 MD5 b6719ec83d25e68281fa96fec6c23808 denyhosts-2.1.ebuild 1629 MD5 5c3d16636c8d5a8bdcdecfcb12dd0077 denyhosts-2.2.ebuild 1629 +MD5 53bece3c612bbcd1c15d69df7d2fb9e9 denyhosts-2.4.ebuild 1739 MD5 8bce87b9401354b35dd371bacb0039f3 files/denyhosts-2.1-gentoo.patch 2584 MD5 ba9675b34ddb94cbaecceff353ec6156 files/denyhosts-2.2-gentoo.patch 2584 +MD5 ba9675b34ddb94cbaecceff353ec6156 files/denyhosts-2.4-gentoo.patch 2584 MD5 90c425b8fbcfa5fc084063999c2e3b9a files/denyhosts-gentoo.patch 2395 MD5 4e9d8193a9efd5714debeec451b6b777 files/denyhosts.init 345 MD5 37e8683acb49f4b997aae081137a2d81 files/digest-denyhosts-2.1 64 MD5 2cc6534ceb9ab501d97b2a297e60ce2b files/digest-denyhosts-2.2 64 +MD5 881dafb3f5e2e92f94c7009a2abd6f04 files/digest-denyhosts-2.4 64 MD5 82c6f940fc1a08d481d8d46de563bce7 metadata.xml 203 diff --git a/app-admin/denyhosts/denyhosts-2.4.ebuild b/app-admin/denyhosts/denyhosts-2.4.ebuild new file mode 100644 index 000000000000..2a1393a2dee8 --- /dev/null +++ b/app-admin/denyhosts/denyhosts-2.4.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/denyhosts-2.4.ebuild,v 1.1 2006/04/18 15:36:51 strerror Exp $ + +inherit distutils eutils + +my_PN="DenyHosts" +my_P="${my_PN}-${PV}" +DESCRIPTION="DenyHosts is a utility to help sys admins thwart ssh hackers" +HOMEPAGE="http://www.denyhosts.net" +SRC_URI="mirror://sourceforge/${PN}/${my_P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~sparc ~x86" +IUSE="" +DEPEND=">=dev-lang/python-2.3" +S="${WORKDIR}/${my_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + # changes default file installations + epatch "${FILESDIR}"/${P}-gentoo.patch + sed -i -e 's:#!/usr/bin/env python:#!/usr/bin/python:' \ + denyhosts.py || die "sed failed" + sed -i -e 's:DENY_THRESHOLD_VALID = 10:DENY_THRESHOLD_VALID = 5:' \ + denyhosts.cfg-dist || die "sed failed" +} + +src_install() { + distutils_src_install + + insinto /etc + insopts -m0640 + newins denyhosts.cfg-dist denyhosts.conf + + newinitd "${FILESDIR}"/denyhosts.init denyhosts + + exeinto /usr/bin + newexe denyhosts.py denyhosts + + dodoc CHANGELOG.txt README.txt + + keepdir /var/lib/denyhosts +} + +pkg_postinst() { + if [ ! -f /etc/hosts.deny ] + then + touch /etc/hosts.deny + fi + + einfo "You can configure DenyHosts to run as a daemon by running:" + einfo + einfo "rc-update add denyhosts default" + einfo + einfo "or as a cronjob, by adding the following to /etc/crontab" + einfo "# run DenyHosts every 10 minutes" + einfo "*/10 * * * * root python /usr/bin/denyhosts -c /etc/denyhosts.conf" + einfo + einfo "More information can be found at http://denyhosts.sourceforge.net/faq.html" + einfo + ewarn "Modify /etc/denyhosts.conf to suit your environment system." +} + diff --git a/app-admin/denyhosts/files/denyhosts-2.4-gentoo.patch b/app-admin/denyhosts/files/denyhosts-2.4-gentoo.patch new file mode 100644 index 000000000000..d33467bf625a --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts-2.4-gentoo.patch @@ -0,0 +1,77 @@ +--- DenyHosts-2.2/denyhosts.cfg-dist 2006-02-28 10:28:21.000000000 +0000 ++++ DenyHosts-2.2-new/denyhosts.cfg-dist 2006-02-28 10:42:13.000000000 +0000 +@@ -9,13 +9,16 @@ + # argument + # + # Redhat or Fedora Core: +-SECURE_LOG = /var/log/secure ++#SECURE_LOG = /var/log/secure + # + # Mandrake, FreeBSD or OpenBSD: + #SECURE_LOG = /var/log/auth.log + # +-# SuSE: +-#SECURE_LOG = /var/log/messages ++# Gentoo/SuSE: ++SECURE_LOG = /var/log/messages ++# ++# Metalog: ++#SECURE_LOG = /var/log/sshd/current + # + ######################################################################## + +@@ -126,7 +129,7 @@ + # Note: it is recommended that you use an absolute pathname + # for this value (eg. /home/foo/denyhosts/data) + # +-WORK_DIR = /usr/share/denyhosts/data ++WORK_DIR = /var/lib/denyhosts + # + ####################################################################### + +@@ -168,11 +171,14 @@ + # running at a time. + # + # Redhat/Fedora: +-LOCK_FILE = /var/lock/subsys/denyhosts ++#LOCK_FILE = /var/lock/subsys/denyhosts + # + # Debian + #LOCK_FILE = /var/run/denyhosts.pid + # ++# Gentoo ++LOCK_FILE = /var/run/denyhosts.pid ++# + # Misc + #LOCK_FILE = /tmp/denyhosts.lock + # +diff -urN DenyHosts-2.1/setup.py DenyHosts-2.1-new/setup.py +--- DenyHosts-2.1/setup.py 2006-02-10 01:03:39.000000000 +0000 ++++ DenyHosts-2.1-new/setup.py 2006-02-13 11:03:08.000000000 +0000 +@@ -20,17 +20,17 @@ + author="Phil Schwartz", + author_email="phil_schwartz@users.sourceforge.net", + url="http://denyhosts.sourceforge.net", +- scripts=['denyhosts.py'], ++## scripts=['denyhosts.py'], + package_dir={'DenyHosts': 'DenyHosts'}, + packages=["DenyHosts"], +- data_files=[(libpath, glob("denyhosts.cfg-dist")), +- (libpath, glob("setup.py")), +- (libpath, glob("daemon-control-dist")), +- (libpath, glob("CHANGELOG.txt")), +- (libpath, glob("README.txt")), +- (scriptspath, glob("scripts/*")), +- (pluginspath, glob("plugins/*")), +- (libpath, glob("LICENSE.txt"))], ++## data_files=[(libpath, glob("denyhosts.cfg-dist")), ++## (libpath, glob("setup.py")), ++## (libpath, glob("daemon-control-dist")), ++## (libpath, glob("CHANGELOG.txt")), ++## (libpath, glob("README.txt")), ++## (scriptspath, glob("scripts/*")), ++## (pluginspath, glob("plugins/*")), ++## (libpath, glob("LICENSE.txt"))], + license="GPL v2", + ##extra_path='denyhosts', + long_description=""" diff --git a/app-admin/denyhosts/files/digest-denyhosts-2.4 b/app-admin/denyhosts/files/digest-denyhosts-2.4 new file mode 100644 index 000000000000..a26d0a545de4 --- /dev/null +++ b/app-admin/denyhosts/files/digest-denyhosts-2.4 @@ -0,0 +1 @@ +MD5 2f58d764148c788eeea3fb487f8b0c05 DenyHosts-2.4.tar.gz 42172 |