Initial import. Thanks to Rene Zbinden and Mike Kelly for initial ebuild
authorBenjamin Smee <strerror@gentoo.org>
Fri, 7 Oct 2005 20:36:37 +0000 (20:36 +0000)
committerBenjamin Smee <strerror@gentoo.org>
Fri, 7 Oct 2005 20:36:37 +0000 (20:36 +0000)
Package-Manager: portage-2.0.51.22-r3

app-admin/denyhosts/ChangeLog [new file with mode: 0644]
app-admin/denyhosts/Manifest [new file with mode: 0644]
app-admin/denyhosts/denyhosts-1.1.2.ebuild [new file with mode: 0644]
app-admin/denyhosts/files/denyhosts-gentoo.patch [new file with mode: 0644]
app-admin/denyhosts/files/denyhosts.init [new file with mode: 0644]
app-admin/denyhosts/files/digest-denyhosts-1.1.2 [new file with mode: 0644]
app-admin/denyhosts/metadata.xml [new file with mode: 0644]

diff --git a/app-admin/denyhosts/ChangeLog b/app-admin/denyhosts/ChangeLog
new file mode 100644 (file)
index 0000000..b5789b1
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for app-admin/denyhosts
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.1 2005/10/07 20:36:37 strerror Exp $
+
+*denyhosts-1.1.2 (07 Oct 2005)
+
+  07 Oct 2005; Benjamin Smee <strerror@gentoo.org> +files/denyhosts.init,
+  +files/denyhosts-gentoo.patch, +metadata.xml, +denyhosts-1.1.2.ebuild:
+  Initial import. Thanks to Rene Zbinden and Mike Kelly for initial ebuild
+
diff --git a/app-admin/denyhosts/Manifest b/app-admin/denyhosts/Manifest
new file mode 100644 (file)
index 0000000..807f018
--- /dev/null
@@ -0,0 +1,6 @@
+MD5 0015cea517edcd1b57cb5b6c1ace0d61 denyhosts-1.1.2.ebuild 1527
+MD5 98d82c02eea0fd1ce5b0e03328b52d98 ChangeLog 468
+MD5 82c6f940fc1a08d481d8d46de563bce7 metadata.xml 203
+MD5 de49bade96ff5bfa9d27a281c17a3e3e files/digest-denyhosts-1.1.2 66
+MD5 90c425b8fbcfa5fc084063999c2e3b9a files/denyhosts-gentoo.patch 2395
+MD5 6fc356bc1e3fc84f327ac4c822ac531b files/denyhosts.init 346
diff --git a/app-admin/denyhosts/denyhosts-1.1.2.ebuild b/app-admin/denyhosts/denyhosts-1.1.2.ebuild
new file mode 100644 (file)
index 0000000..96e4ebb
--- /dev/null
@@ -0,0 +1,61 @@
+# 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."
+}
+
diff --git a/app-admin/denyhosts/files/denyhosts-gentoo.patch b/app-admin/denyhosts/files/denyhosts-gentoo.patch
new file mode 100644 (file)
index 0000000..94a89b8
--- /dev/null
@@ -0,0 +1,74 @@
+--- 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="""
diff --git a/app-admin/denyhosts/files/denyhosts.init b/app-admin/denyhosts/files/denyhosts.init
new file mode 100644 (file)
index 0000000..6a7b5f6
--- /dev/null
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+
+opts="depend start stop"
+
+depend() {
+       need logger sshd
+}
+
+start() {
+       ebegin "Starting DenyHosts daemon"
+       start-stop-daemon --start --exec /usr/bin/denyhosts -- --daemon -c /etc/denyhosts.conf
+       eend $?
+}
+
+stop() {
+       ebegin "Stopping DenyHosts daemon"
+       start-stop-daemon --quiet --stop --pidfile /var/run/denyhosts.pid
+       eend $?
+}
diff --git a/app-admin/denyhosts/files/digest-denyhosts-1.1.2 b/app-admin/denyhosts/files/digest-denyhosts-1.1.2
new file mode 100644 (file)
index 0000000..e8578af
--- /dev/null
@@ -0,0 +1 @@
+MD5 d2c6f00243c0fcd0f4498c3c71a1074e DenyHosts-1.1.2.tar.gz 31000
diff --git a/app-admin/denyhosts/metadata.xml b/app-admin/denyhosts/metadata.xml
new file mode 100644 (file)
index 0000000..e193c95
--- /dev/null
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+  <email>strerror@gentoo.org</email>
+</maintainer>
+</pkgmetadata>