From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1F8E3138262 for ; Mon, 23 May 2016 19:37:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 895A3141E3; Mon, 23 May 2016 19:37:53 +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 38DB8141E3 for ; Mon, 23 May 2016 19:37:53 +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 084ED340CA5 for ; Mon, 23 May 2016 19:37:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 59E35336 for ; Mon, 23 May 2016 19:37:43 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1464032251.095a727d0ba5c3a703a501dc71d7ddaf80e83041.grobian@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/openbsd-netcat/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/openbsd-netcat/openbsd-netcat-1.105-r1.ebuild X-VCS-Directories: net-analyzer/openbsd-netcat/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 095a727d0ba5c3a703a501dc71d7ddaf80e83041 X-VCS-Branch: master Date: Mon, 23 May 2016 19:37:43 +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: b0bea7b8-f911-4b32-b71a-48aff4fa9e0a X-Archives-Hash: 835ef10377db63e403a583841f1dbea9 commit: 095a727d0ba5c3a703a501dc71d7ddaf80e83041 Author: Fabian Groffen gentoo org> AuthorDate: Mon May 23 19:37:20 2016 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Mon May 23 19:37:31 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=095a727d net-analyzer/openbsd-netcat: revbump to install as nc (blocking netcat), bug #582884, respect CC, CFLAGS and LDFLAGS Package-Manager: portage-2.2.28 .../openbsd-netcat/openbsd-netcat-1.105-r1.ebuild | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/net-analyzer/openbsd-netcat/openbsd-netcat-1.105-r1.ebuild b/net-analyzer/openbsd-netcat/openbsd-netcat-1.105-r1.ebuild new file mode 100644 index 0000000..c4d9efa --- /dev/null +++ b/net-analyzer/openbsd-netcat/openbsd-netcat-1.105-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="The OpenBSD network swiss army knife" +HOMEPAGE="http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/" +SRC_URI="http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}.orig.tar.gz + http://http.debian.net/debian/pool/main/n/netcat-openbsd/netcat-openbsd_${PV}-7.debian.tar.gz" +LICENSE="BSD" +SLOT="0" + +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x64-macos" + +DEPEND="virtual/pkgconfig" +RDEPEND="dev-libs/libbsd + !net-analyzer/netcat + !net-analyzer/netcat6 +" + +S=${WORKDIR}/netcat-openbsd-${PV} + +PATCHES=( "${WORKDIR}/debian/patches" ) + +src_compile() { + emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" || die +} + +src_install() { + dobin nc + doman nc.1 + cd "${WORKDIR}/debian" + newdoc netcat-openbsd.README.Debian README + dodoc -r examples +} + +pkg_postinst() { + if [[ ${KERNEL} = "linux" ]]; then + ewarn "FO_REUSEPORT is introduced in linux 3.9. If your running kernel is older" + ewarn "and kernel header is newer, nc will not listen correctly. Matching the header" + ewarn "to the running kernel will do. See bug #490246 for details." + fi +}