public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Peter Volkov (pva)" <pva@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/denyhosts: ChangeLog denyhosts-2.6-r1.ebuild
Date: Thu, 13 Sep 2007 15:09:18 +0000	[thread overview]
Message-ID: <E1IVqJi-0006T1-9M@stork.gentoo.org> (raw)

pva         07/09/13 15:09:18

  Modified:             ChangeLog
  Added:                denyhosts-2.6-r1.ebuild
  Log:
  Fixes log injection reported by Sune Kloppenborg Jeppesen in bug #181213.
  (Portage version: 2.1.3.9)

Revision  Changes    Path
1.28                 app-admin/denyhosts/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.28&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.28&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/ChangeLog?r1=1.27&r2=1.28

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- ChangeLog	14 Aug 2007 18:10:41 -0000	1.27
+++ ChangeLog	13 Sep 2007 15:09:14 -0000	1.28
@@ -1,6 +1,12 @@
 # ChangeLog for app-admin/denyhosts
 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.27 2007/08/14 18:10:41 strerror Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.28 2007/09/13 15:09:14 pva Exp $
+
+*denyhosts-2.6-r1 (13 Sep 2007)
+
+  13 Sep 2007; <pva@gentoo.org>
+  +files/denyhosts-2.6-log-injection-regex.patch, +denyhosts-2.6-r1.ebuild:
+  Fixes log injection reported by Sune Kloppenborg Jeppesen in bug #181213.
 
   14 Aug 2007; Benjamin Smee <strerror@gentoo.org> files/denyhosts.init:
   fix for bug #174501



1.1                  app-admin/denyhosts/denyhosts-2.6-r1.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r1.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r1.ebuild?rev=1.1&content-type=text/plain

Index: denyhosts-2.6-r1.ebuild
===================================================================
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r1.ebuild,v 1.1 2007/09/13 15:09:14 pva 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 ~hppa ~ppc ~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
	epatch "${FILESDIR}"/${P}-log-injection-regex.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

	elog "You can configure DenyHosts to run as a daemon by running:"
	elog
	elog "rc-update add denyhosts default"
	elog
	elog "or as a cronjob, by adding the following to /etc/crontab"
	elog "# run DenyHosts every 10 minutes"
	elog "*/10  *  * * *	root	python /usr/bin/denyhosts -c /etc/denyhosts.conf"
	elog
	elog "More information can be found at http://denyhosts.sourceforge.net/faq.html"
	elog
	ewarn "Modify /etc/denyhosts.conf to suit your environment system."
}



-- 
gentoo-commits@gentoo.org mailing list



             reply	other threads:[~2007-09-13 15:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-13 15:09 Peter Volkov (pva) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-09-24 18:26 [gentoo-commits] gentoo-x86 commit in app-admin/denyhosts: ChangeLog denyhosts-2.6-r1.ebuild Christian Faulhammer (opfer)
2007-09-25  0:25 Jeroen Roovers (jer)
2007-09-25 14:18 Raul Porcel (armin76)
2007-09-29  2:19 Steve Dibb (beandog)
2009-12-20  4:13 Arfrever Frehtes Taifersar Arahesis (arfrever)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1IVqJi-0006T1-9M@stork.gentoo.org \
    --to=pva@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox