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 230FF1382C5 for ; Sun, 25 Apr 2021 06:19:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 70A91E085A; Sun, 25 Apr 2021 06:19:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52AE5E0855 for ; Sun, 25 Apr 2021 06:19:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5CABF3413DA for ; Sun, 25 Apr 2021 06:19:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B95C259C for ; Sun, 25 Apr 2021 06:19:27 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1619331516.7ac379aa5c5599085c69e4e4d197cd73fc6eadb7.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/knock/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/knock/Manifest net-misc/knock/knock-0.8.ebuild X-VCS-Directories: net-misc/knock/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7ac379aa5c5599085c69e4e4d197cd73fc6eadb7 X-VCS-Branch: master Date: Sun, 25 Apr 2021 06:19:27 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 43b29284-9253-4dc8-9b29-a7824be54b9f X-Archives-Hash: 967efd8ebfc7ef90671556b60b8f835a commit: 7ac379aa5c5599085c69e4e4d197cd73fc6eadb7 Author: Sam James gentoo org> AuthorDate: Sun Apr 25 05:27:41 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sun Apr 25 06:18:36 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ac379aa net-misc/knock: add 0.8 Signed-off-by: Sam James gentoo.org> net-misc/knock/Manifest | 1 + net-misc/knock/knock-0.8.ebuild | 47 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/net-misc/knock/Manifest b/net-misc/knock/Manifest index 136bf879588..87dc877813a 100644 --- a/net-misc/knock/Manifest +++ b/net-misc/knock/Manifest @@ -1 +1,2 @@ DIST knock-0.7.tar.gz 110791 BLAKE2B 19e63854800f4ef77199fb4005dabd749f16681068d205a924fa0bc926d2cc31a69c1f62ffa8ec335209cfa987e7db92d9332b43e971f71528f69740ced06391 SHA512 eab5d855f7111d9411e84a56a15e8ea74f41c5bd9dee27ab49f0d8d509eeeb96a60c508928c92916dc0ec9b737c447ca8ca5ed4db6479b389549d60e76a85aa7 +DIST knock-0.8.tar.gz 377107 BLAKE2B 1397ed04b1a202db08b0bd3a8a26745cd2e8390604c9dde7d18182e7ad4ddd19da074b1b54ea1ed59b1576f3110e21bac722c90a2cd3820910bdaa0026eec395 SHA512 6511e29f604cebc4a4048f5e49c1b73db0bbe0041a88f7c8559fa1a60ea894aadb72a608c423f867a5a4dddb06d00a0713863473981e42273662a77364c260ec diff --git a/net-misc/knock/knock-0.8.ebuild b/net-misc/knock/knock-0.8.ebuild new file mode 100644 index 00000000000..f4a62261898 --- /dev/null +++ b/net-misc/knock/knock-0.8.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Simple port-knocking daemon" +HOMEPAGE="https://www.zeroflux.org/projects/knock" +SRC_URI="https://www.zeroflux.org/proj/knock/files/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="+server" + +DEPEND="server? ( net-libs/libpcap )" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + sed -e "/^AM_CFLAGS/s: -g : :" \ + -e "/dist_doc_DATA/s:COPYING::" \ + -i Makefile.in || die + + sed -e "s:/usr/sbin/iptables:/sbin/iptables:g" \ + -i knockd.conf || die +} + +src_configure() { + econf $(use_enable server knockd) +} + +src_install() { + emake DESTDIR="${D}" docdir="${EPREFIX}/usr/share/doc/${PF}" install + + if use server ; then + newinitd "${FILESDIR}"/knockd.initd.2 knock + newconfd "${FILESDIR}"/knockd.confd.2 knock + fi +} + +pkg_postinst() { + if use server && ! has_version net-firewall/iptables ; then + elog "You're really encouraged to install net-firewall/iptables to" + elog "actually modify your firewall and use the example configuration." + fi +}