ottxor 14/05/14 23:22:00 Modified: ChangeLog Added: denyhosts-2.6-r10.ebuild Log: provide logrotate.d entry that works with systemd (bug #508524) (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key C2000586)
Revision Changes Path 1.79 app-admin/denyhosts/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.79&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/ChangeLog?rev=1.79&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/ChangeLog?r1=1.78&r2=1.79 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v retrieving revision 1.78 retrieving revision 1.79 diff -u -r1.78 -r1.79 --- ChangeLog 9 Jan 2014 01:11:32 -0000 1.78 +++ ChangeLog 14 May 2014 23:22:00 -0000 1.79 @@ -1,6 +1,12 @@ # ChangeLog for app-admin/denyhosts # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.78 2014/01/09 01:11:32 ottxor Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.79 2014/05/14 23:22:00 ottxor Exp $ + +*denyhosts-2.6-r10 (14 May 2014) + + 14 May 2014; Christoph Junghans <[email protected]> +denyhosts-2.6-r10.ebuild, + +files/denyhosts.logrotate-r2: + provide logrotate.d entry that works with systemd (bug #508524) 09 Jan 2014; Christoph Junghans <[email protected]> -files/denyhosts.init: clean up unneeded files 1.1 app-admin/denyhosts/denyhosts-2.6-r10.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r10.ebuild?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r10.ebuild?rev=1.1&content-type=text/plain Index: denyhosts-2.6-r10.ebuild =================================================================== # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r10.ebuild,v 1.1 2014/05/14 23:22:00 ottxor Exp $ EAPI=5 PYTHON_COMPAT=( python{2_6,2_7} ) inherit distutils-r1 eutils readme.gentoo systemd 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 ~arm ~hppa ~ppc ~sparc ~x86" IUSE="" DEPEND="" RDEPEND="" PYTHON_MODNAME="${MY_PN}" S="${WORKDIR}/${MY_P}" DISABLE_AUTOFORMATTING="yes" DOC_CONTENTS=" You can configure DenyHosts to run as a daemon by running: # rc-update add denyhosts default or: # systemctl enable denyhosts.service (if you use systemd) To run DenyHosts as a cronjob instead of a daemon add the following to /etc/crontab # run DenyHosts every 10 minutes */10 * * * * root /usr/bin/denyhosts.py -c /etc/denyhosts.conf More information can be found at http://denyhosts.sourceforge.net/faq.html" src_prepare() { # changes default file installations epatch "${FILESDIR}"/${P}-gentoo.patch epatch "${FILESDIR}"/${P}-log-injection-regex.patch # Multiple patches from Fedora and Debian epatch "${FILESDIR}"/${P}-daemon-control.patch epatch "${FILESDIR}"/${P}-defconffile.patch epatch "${FILESDIR}"/${P}-foreground_mode.patch epatch "${FILESDIR}"/${P}-hostname.patch epatch "${FILESDIR}"/${P}-plugin_deny.patch epatch "${FILESDIR}"/${P}-single_config_switch.patch epatch "${FILESDIR}"/${P}-cve-2013-6890.patch sed -i -e 's:DENY_THRESHOLD_VALID = 10:DENY_THRESHOLD_VALID = 5:' \ denyhosts.cfg-dist || die "sed failed" distutils-r1_src_prepare } src_install() { readme.gentoo_create_doc dodoc CHANGELOG.txt README.txt PKG-INFO distutils-r1_src_install insinto /etc insopts -m0640 newins denyhosts.cfg-dist denyhosts.conf dodir /etc/logrotate.d insinto /etc/logrotate.d newins "${FILESDIR}"/${PN}.logrotate-r2 ${PN} newinitd "${FILESDIR}"/denyhosts.init-r2 denyhosts systemd_dounit "${FILESDIR}"/${PN}.service # build system installs docs that we installed above rm -f "${D}"/usr/share/denyhosts/*.txt keepdir /var/lib/denyhosts } pkg_postinst() { if [[ ! -f "${ROOT}etc/hosts.deny" ]]; then touch "${ROOT}etc/hosts.deny" fi readme.gentoo_print_elog }
