Revision bump to not install dupicate docs and install log rotate file, bug 274253...
authorJeremy Olexa <darkside@gentoo.org>
Tue, 4 May 2010 02:53:51 +0000 (02:53 +0000)
committerJeremy Olexa <darkside@gentoo.org>
Tue, 4 May 2010 02:53:51 +0000 (02:53 +0000)
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64

app-admin/denyhosts/ChangeLog
app-admin/denyhosts/Manifest
app-admin/denyhosts/denyhosts-2.6-r2.ebuild [new file with mode: 0644]
app-admin/denyhosts/files/denyhosts.logrotate [new file with mode: 0644]

index a1e68d17840f70a68f71873ebfbc88eda2667eea..c0fa59c5b237d048956a46f2130ee1f0105d73d1 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for app-admin/denyhosts
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.37 2009/12/20 04:13:49 arfrever Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/ChangeLog,v 1.38 2010/05/04 02:53:50 darkside Exp $
+
+*denyhosts-2.6-r2 (04 May 2010)
+
+  04 May 2010; Jeremy Olexa <darkside@gentoo.org> +denyhosts-2.6-r2.ebuild,
+  +files/denyhosts.logrotate:
+  Revision bump to not install dupicate docs and install log rotate file,
+  bug 274253 by Michael
 
   20 Dec 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
   denyhosts-2.6-r1.ebuild:
index a68ba9115d8efc230196cd27aea19f26bfaffd40..abe7859209cfc9ff3036a2afb1c5111a6a036ee0 100644 (file)
@@ -1,7 +1,9 @@
 AUX denyhosts-2.6-gentoo.patch 1072 RMD160 e396870f65e7cd512996229d901c6c19bd403b8b SHA1 c1d913cc632a6dd4ae3b557d0c8a5321987bc6b8 SHA256 9a8aa093691efd23a0f34f7dd6ec8716eaeb266ceb96f851f7b2eb12dad44a5a
 AUX denyhosts-2.6-log-injection-regex.patch 1142 RMD160 0fee22c97c27bcd7c3fa40c0ae1377d8c1cabb66 SHA1 92d9cb6e69179e0e0d49b78db1fdceec4cc4bbf5 SHA256 836bbec93f10e6314afc63a98c0312c1ba7ec95ba0bb857807f3dd9131f79df8
 AUX denyhosts.init 368 RMD160 438b37f82d01bea71c2b481b204cfb3a2995fd54 SHA1 4238bcdbc3dce2370fd9d6830ed98098be6cbe31 SHA256 1a50fa6d7f444755e4de9e486af0d5dfb6e005eeb1a5021d2d9b1a9c2aa6eb6f
+AUX denyhosts.logrotate 200 RMD160 7558be5d4d20e44ded089188e92efd3d96a72132 SHA1 7ab688a60efb30dbef0e2ac4c615cb90cf0ae7dd SHA256 93c3f7829a518192e693d184db93016883a0764544bde4be4779131bec2efa20
 DIST DenyHosts-2.6.tar.gz 42667 RMD160 cab4206af992f5405ed1c9b302341c7b5649c71a SHA1 02143843cb7c37c986c222b7acc11f7b75eb7373 SHA256 5190ead13a7238e3ccf328cb3b71b16716e1c73939909a4f3fa6904ba58ddf7d
 EBUILD denyhosts-2.6-r1.ebuild 1750 RMD160 db3f737fe1bc92ff4f19035cef86a55709631c83 SHA1 7059b039b1739dc174d1c09419f224a69f32a3d7 SHA256 5460b226902117cdea59134ae5f9ec38188ff3ab1d28fdd414b778b6a20ad4b3
-MISC ChangeLog 5057 RMD160 2e44fd1af4c08f6f852166902e3af9a12b49bece SHA1 ea8e8411c8883ed031c2e7292de9fc5dbb26f5bd SHA256 58372516f45186633a963b0cffdf0cd01f7a7d57cc688d3078988ed4170634b7
+EBUILD denyhosts-2.6-r2.ebuild 1975 RMD160 9114720f0ea01f1a52d4213bcc906db4c4fcaa6e SHA1 5f0c265961750b5e26a020a32e4c974e5a0c49a0 SHA256 38d4a820f02254fc39f1a474af40fdbdb3609978b88c06d1771f06d433b27352
+MISC ChangeLog 5295 RMD160 7cf200353084e33094808ec4776581314ba96e01 SHA1 b17d468cdc5487c782cc6ae6d14f19b64f225afd SHA256 736bc2230084dcc0b8801c0c68f6d2c5fd4adc3462e155fc7e39600ff5dab513
 MISC metadata.xml 263 RMD160 dd1b85d4f890983eb0b90536a72e6299bf4d9002 SHA1 425ee1fb8b6081a768597d05be1a47592d066b59 SHA256 221461ce2d32c3e8dafdc5c3c4bbdf8676abb0ac28cc72cb2a145b150255b17e
diff --git a/app-admin/denyhosts/denyhosts-2.6-r2.ebuild b/app-admin/denyhosts/denyhosts-2.6-r2.ebuild
new file mode 100644 (file)
index 0000000..5afa5d8
--- /dev/null
@@ -0,0 +1,76 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/denyhosts/denyhosts-2.6-r2.ebuild,v 1.1 2010/05/04 02:53:50 darkside Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+
+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 ~arm ~hppa ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+RESTRICT_PYTHON_ABIS="3.*"
+PYTHON_MODNAME="${MY_PN}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+       # changes default file installations
+       epatch "${FILESDIR}"/${P}-gentoo.patch
+       epatch "${FILESDIR}"/${P}-log-injection-regex.patch
+       sed -i -e 's:DENY_THRESHOLD_VALID = 10:DENY_THRESHOLD_VALID = 5:' \
+               denyhosts.cfg-dist || die "sed failed"
+}
+
+src_install() {
+       DOCS="CHANGELOG.txt README.txt PKG-INFO"
+       distutils_src_install
+
+       insinto /etc
+       insopts -m0640
+       newins denyhosts.cfg-dist denyhosts.conf || die
+
+       dodir /etc/logrotate.d
+       insinto /etc/logrotate.d
+       newins "${FILESDIR}"/${PN}.logrotate ${PN} || die
+
+       newinitd "${FILESDIR}"/denyhosts.init denyhosts || die
+
+       # build system installs docs that we installed above
+       rm -f "${D}"/usr/share/denyhosts/*.txt
+
+       keepdir /var/lib/denyhosts
+}
+
+pkg_postinst() {
+       distutils_pkg_postinst
+
+       if [[ ! -f "${ROOT}etc/hosts.deny" ]]; then
+               touch "${ROOT}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    /usr/bin/denyhosts.py -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."
+}
diff --git a/app-admin/denyhosts/files/denyhosts.logrotate b/app-admin/denyhosts/files/denyhosts.logrotate
new file mode 100644 (file)
index 0000000..4f1249d
--- /dev/null
@@ -0,0 +1,12 @@
+/var/log/denyhosts {\r
+       missingok\r
+       notifempty\r
+       create 0640 root root\r
+       sharedscripts\r
+       prerotate\r
+               /etc/init.d/denyhosts stop\r
+       endscript\r
+       postrotate\r
+               /etc/init.d/denyhosts start\r
+       endscript\r
+}\r