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 D84371382C5 for ; Sun, 21 Jun 2020 18:49:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 186D1E08C9; Sun, 21 Jun 2020 18:49:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 EF8D0E08C9 for ; Sun, 21 Jun 2020 18:49:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 C2AEC34FEAA for ; Sun, 21 Jun 2020 18:49:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8E8ED253 for ; Sun, 21 Jun 2020 18:49:42 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1592765049.ea7a05e6988b68c628d6ead1f3adf830d17c3a83.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/knock/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/knock/knock-0.7-r1.ebuild X-VCS-Directories: net-misc/knock/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: ea7a05e6988b68c628d6ead1f3adf830d17c3a83 X-VCS-Branch: master Date: Sun, 21 Jun 2020 18:49:42 +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: d47f7547-4c71-4e2e-90ba-d634a73946f7 X-Archives-Hash: 187fe252fe6d6f6431dc8698ed9c8864 commit: ea7a05e6988b68c628d6ead1f3adf830d17c3a83 Author: Michael Mair-Keimberger gmail com> AuthorDate: Sun Jun 21 17:52:30 2020 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jun 21 18:44:09 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea7a05e6 net-misc/knock: EAPI7, use HTTPS, fix LICENSE Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Michael Mair-Keimberger gmail.com> Closes: https://github.com/gentoo/gentoo/pull/16365 Signed-off-by: Andreas Sturmlechner gentoo.org> net-misc/knock/knock-0.7-r1.ebuild | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/net-misc/knock/knock-0.7-r1.ebuild b/net-misc/knock/knock-0.7-r1.ebuild new file mode 100644 index 00000000000..c27abd8fac2 --- /dev/null +++ b/net-misc/knock/knock-0.7-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 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 + https://github.com/jvinet/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="${EROOT}/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 +}