diff options
author | Benjamin Smee <strerror@gentoo.org> | 2005-10-07 20:36:37 +0000 |
---|---|---|
committer | Benjamin Smee <strerror@gentoo.org> | 2005-10-07 20:36:37 +0000 |
commit | f8685d76879d90e75eca568217efb86a9d45507e (patch) | |
tree | 0e025e70205771d176598b663c9135edfffa6210 /app-admin | |
parent | Stable on sparc (diff) | |
download | gentoo-2-f8685d76879d90e75eca568217efb86a9d45507e.tar.gz gentoo-2-f8685d76879d90e75eca568217efb86a9d45507e.tar.bz2 gentoo-2-f8685d76879d90e75eca568217efb86a9d45507e.zip |
Initial import. Thanks to Rene Zbinden and Mike Kelly for initial ebuild
(Portage version: 2.0.51.22-r3)
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/denyhosts/ChangeLog | 10 | ||||
-rw-r--r-- | app-admin/denyhosts/Manifest | 4 | ||||
-rw-r--r-- | app-admin/denyhosts/denyhosts-1.1.2.ebuild | 61 | ||||
-rw-r--r-- | app-admin/denyhosts/files/denyhosts-gentoo.patch | 74 | ||||
-rw-r--r-- | app-admin/denyhosts/files/denyhosts.init | 19 | ||||
-rw-r--r-- | app-admin/denyhosts/files/digest-denyhosts-1.1.2 | 1 | ||||
-rw-r--r-- | app-admin/denyhosts/metadata.xml | 7 |
7 files changed, 176 insertions, 0 deletions
diff --git a/app-admin/denyhosts/ChangeLog b/app-admin/denyhosts/ChangeLog new file mode 100644 index 000000000000..b5789b1c52d7 --- /dev/null +++ b/app-admin/denyhosts/ChangeLog @@ -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 index 000000000000..b118f093e6f4 --- /dev/null +++ b/app-admin/denyhosts/Manifest @@ -0,0 +1,4 @@ +MD5 6c632298b1c741a17ec6315c4f6f061e denyhosts-1.1.2.ebuild 1422 +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 index 000000000000..96e4ebb2bad2 --- /dev/null +++ b/app-admin/denyhosts/denyhosts-1.1.2.ebuild @@ -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 index 000000000000..94a89b81c37c --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts-gentoo.patch @@ -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 index 000000000000..6a7b5f6fa8d4 --- /dev/null +++ b/app-admin/denyhosts/files/denyhosts.init @@ -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 index 000000000000..e8578af757c9 --- /dev/null +++ b/app-admin/denyhosts/files/digest-denyhosts-1.1.2 @@ -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 index 000000000000..e193c95f79c2 --- /dev/null +++ b/app-admin/denyhosts/metadata.xml @@ -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> |