From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 55C6A13832E for ; Wed, 10 Aug 2016 07:20:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37F32E09C5; Wed, 10 Aug 2016 07:20:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BBA9AE09C5 for ; Wed, 10 Aug 2016 07:20:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 342293408CF for ; Wed, 10 Aug 2016 07:20:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CF7687DD for ; Wed, 10 Aug 2016 07:20:08 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1470813606.7d9d29f963006724f6f008652b6788d9642c47c0.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/sshguard/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/sshguard/Manifest app-admin/sshguard/sshguard-1.7.0.ebuild X-VCS-Directories: app-admin/sshguard/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 7d9d29f963006724f6f008652b6788d9642c47c0 X-VCS-Branch: master Date: Wed, 10 Aug 2016 07:20:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 50efca4a-1baf-4e35-97a3-676ced4e62ed X-Archives-Hash: b414d19ddbd7c2e8e9a947ffb9ca51ee commit: 7d9d29f963006724f6f008652b6788d9642c47c0 Author: Jeroen Roovers gentoo org> AuthorDate: Wed Aug 10 07:19:36 2016 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Wed Aug 10 07:20:06 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d9d29f9 app-admin/sshguard: Version bump. Package-Manager: portage-2.3.0 app-admin/sshguard/Manifest | 1 + app-admin/sshguard/sshguard-1.7.0.ebuild | 67 ++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/app-admin/sshguard/Manifest b/app-admin/sshguard/Manifest index e28853d..2ac4e66 100644 --- a/app-admin/sshguard/Manifest +++ b/app-admin/sshguard/Manifest @@ -1,3 +1,4 @@ DIST sshguard-1.5.tar.bz2 303767 SHA256 b537f8765455fdf8424f87d4bd695e5b675b88e5d164865452137947093e7e19 SHA512 6d17abccd94af9e7fb04a54477ff5686caa64dc36e2f2cbc4a8cd7bc293923daf2fee87fa7f2e247eba1b310abe68549e652ab3224c2d19822d2e8a0306e49e6 WHIRLPOOL 7d579f5c9a03d79f7cc7b51b537b91b053faa56653ba7c5182550ddab41c0fbcd12a6cd7a6dfb2d1e2323905ef3e35aaef9ca8175d97e26cb953d57403f46562 DIST sshguard-1.6.2.tar.xz 405092 SHA256 57f56724f475e81bbe5fc75dfcb573213bf7e446d7dd039dcf5ba8fa5bc2cb2b SHA512 2819ef9270474c8b3f1d4c997818cf654aaf06089f3112a24a840df7708822a3d66189f5c7a4e4dba06d7c25bf011c43377f3f9aa97de4f9e664fe97464a5c57 WHIRLPOOL b25ae60deadb771623a6d09a75844fb42815dcdeba239a65c565942bd70586ea661428b38e76e413ff1305aa39387c0117c4d205a8b4a8694575a811cab23799 DIST sshguard-1.6.4.tar.gz 546934 SHA256 654d5412ed010e500e2715ddeebfda57ab23c47a2bd30dfdc1e68c4f04c912a9 SHA512 ac8eeb7c303757cfd8ebfa69425afa1a1c6f07998cbb49ee91649c23ff2693f66f315ca6cd04b2011a4d1951f10d69be0db9bbc05b8814d85376eeb3a3f294ee WHIRLPOOL bc4e678d1f2a9d153d105308bd70bd5801560ada691596601c6358145cd1684ff4403913a63af023a62c590b4a9bdde6bc2afe547d93e58dcc1e43ae347e26b6 +DIST sshguard-1.7.0.tar.gz 769779 SHA256 5ce784bc25dc9801fbfadc4117669ee02397526c420170ae1145ada96df8cd59 SHA512 876789ee0a457b656f9d9488043f0d4f59cb2ba5a6fc3243f6f05e64995c6cf719bffa01bea7f96897b7092946e441507f2ced4f372fb475dfd7ec0cd70bda55 WHIRLPOOL 7ade8de747f398c7552b17bc3b6ce8c9400e169757072cd10147b2f0ca2e67c427a09e4761a63d9bcc24caca499464301388b4d8b709a4f8cc4325e57dbb312d diff --git a/app-admin/sshguard/sshguard-1.7.0.ebuild b/app-admin/sshguard/sshguard-1.7.0.ebuild new file mode 100644 index 0000000..aeed93f --- /dev/null +++ b/app-admin/sshguard/sshguard-1.7.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit flag-o-matic + +DESCRIPTION="protects hosts from brute force attacks against ssh" +HOMEPAGE="http://sshguard.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-fbsd" +IUSE="ipfilter kernel_FreeBSD kernel_linux" + +CDEPEND=" + kernel_linux? ( net-firewall/iptables ) + kernel_FreeBSD? ( !ipfilter? ( sys-freebsd/freebsd-pf ) ) +" +DEPEND=" + ${CDEPEND} + sys-devel/flex +" +RDEPEND=" + ${CDEPEND} + sys-apps/openrc + virtual/logger +" + +DOCS=( + CHANGELOG.rst + README.rst + examples/sshguard.service + examples/whitelistfile.example +) + +src_prepare() { + default + + sed -i -e '/OPTIMIZER_CFLAGS=/d' configure || die +} + +src_configure() { + # Needed for usleep(3), see "nasty" in src/sshguard_logsuck.c + append-cppflags -D_DEFAULT_SOURCE + + local myconf + if use kernel_linux; then + myconf="--with-firewall=iptables" + elif use kernel_FreeBSD; then + if use ipfilter; then + myconf="--with-firewall=ipfw" + else + myconf="--with-firewall=pf" + fi + fi + + econf ${myconf} +} + +src_install() { + default + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} +}