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 C53A5138334 for ; Fri, 3 Jan 2020 10:35:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1B998E0AC2; Fri, 3 Jan 2020 10:35:49 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 04ED5E0AC2 for ; Fri, 3 Jan 2020 10:35:49 +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 0B1B834DE67 for ; Fri, 3 Jan 2020 10:35:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BCC2B3E for ; Fri, 3 Jan 2020 10:35:45 +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: <1578047743.a3e6e55df70c95004b330fb5f530e4e0d1d9456c.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/netselect/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/netselect/netselect-9999.ebuild X-VCS-Directories: net-analyzer/netselect/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: a3e6e55df70c95004b330fb5f530e4e0d1d9456c X-VCS-Branch: master Date: Fri, 3 Jan 2020 10:35:45 +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: 87fd3986-52ec-4e96-94bf-3b7b9fd53c6a X-Archives-Hash: ae4f95692e0cc580e484cbe7b072afa4 commit: a3e6e55df70c95004b330fb5f530e4e0d1d9456c Author: Jeroen Roovers gentoo org> AuthorDate: Fri Jan 3 10:32:58 2020 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Fri Jan 3 10:35:43 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3e6e55d net-analyzer/netselect: Add live ebuild Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Jeroen Roovers gentoo.org> net-analyzer/netselect/netselect-9999.ebuild | 52 ++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/net-analyzer/netselect/netselect-9999.ebuild b/net-analyzer/netselect/netselect-9999.ebuild new file mode 100644 index 00000000000..de08fdebbdf --- /dev/null +++ b/net-analyzer/netselect/netselect-9999.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit git-r3 toolchain-funcs + +DESCRIPTION="Ultrafast implementation of ping" +HOMEPAGE="http://apenwarr.ca/netselect/" +EGIT_REPO_URI=" + https://github.com/apenwarr/${PN} +" +SRC_URI=" + ipv6? ( https://dev.gentoo.org/~jer/${PN}-0.4-ipv6.patch.xz ) +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="" +IUSE="ipv6" + +PATCHES=( + "${FILESDIR}"/${PN}-0.4-bsd.patch + "${FILESDIR}"/${PN}-0.4-flags.patch +) + +src_unpack() { + use ipv6 && unpack ${A} + git-r3_src_unpack +} + +src_prepare() { + use ipv6 && PATCHES+=( "${WORKDIR}"/${PN}-0.4-ipv6.patch ) + + default +} + +src_compile() { + emake CC="$(tc-getCC)" LDFLAGS="${CFLAGS} ${LDFLAGS}" +} + +src_install () { + dobin netselect + + if ! use prefix ; then + fowners root:wheel /usr/bin/netselect + fperms 4711 /usr/bin/netselect + fi + + dodoc HISTORY README + + doman netselect.1 +}