--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/denyhosts-1.1.2.ebuild,v 1.1 2005/10/07 20:36:37 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://denyhosts.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${my_P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+DEPEND=">=dev-lang/python-2.3"
+S="${WORKDIR}/${my_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ # changes default file installations
+ epatch "${FILESDIR}"/${PN}-gentoo.patch
+}
+
+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."
+}
+
--- /dev/null
+--- denyhosts.cfg-dist 2005-09-29 02:18:45.000000000 +0200
++++ denyhosts.cfg-dist 2005-10-06 15:28:38.000000000 +0200
+@@ -9,13 +9,16 @@
+ # argument
+ #
+ # Redhat:
+-SECURE_LOG = /var/log/secure
++#SECURE_LOG = /var/log/secure
+ #
+ # Mandrake or FreeBSD:
+ #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
+ #
+ ########################################################################
+
+@@ -115,7 +118,7 @@
+ # Note: when run in daemon mode, this directory should be specified
+ # as an absolute path name (eg. /home/foo/denyhosts/data)
+ #
+-WORK_DIR = denyhosts
++WORK_DIR = /var/lib/denyhosts
+ #
+ #######################################################################
+
+@@ -157,11 +160,13 @@
+ # 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
+ #
+--- setup.py 2005-07-23 00:39:17.000000000 +0200
++++ setup.py 2005-10-06 15:30:51.000000000 +0200
+@@ -17,17 +17,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"],
+ ##py_modules=["denyhosts_version"],
+- data_files=[(libpath, glob("denyhosts.cfg-dist")),
+- (libpath, glob("denyhosts-daemon-initscript")),
+- (libpath, glob("setup.py")),
+- (libpath, glob("daemon-control-dist")),
+- (libpath, glob("CHANGELOG.txt")),
+- (libpath, glob("README.txt")),
+- (libpath, glob("LICENSE.txt"))],
++## data_files=[(libpath, glob("denyhosts.cfg-dist")),
++## (libpath, glob("denyhosts-daemon-initscript")),
++## (libpath, glob("setup.py")),
++## (libpath, glob("daemon-control-dist")),
++## (libpath, glob("CHANGELOG.txt")),
++## (libpath, glob("README.txt")),
++## (libpath, glob("LICENSE.txt"))],
+ license="GPL",
+ ##extra_path='denyhosts',
+ long_description="""