public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/openbsd-netcat/
Date: Thu, 19 Jan 2023 01:39:07 +0000 (UTC)	[thread overview]
Message-ID: <1674092249.76187ed1090f22f49a7b7cdfe368ae7098ac7992.sam@gentoo> (raw)

commit:     76187ed1090f22f49a7b7cdfe368ae7098ac7992
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 19 01:37:29 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan 19 01:37:29 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76187ed1

net-analyzer/openbsd-netcat: add 1.219_p1

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/openbsd-netcat/Manifest               |  2 +
 .../openbsd-netcat/openbsd-netcat-1.219_p1.ebuild  | 69 ++++++++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/net-analyzer/openbsd-netcat/Manifest b/net-analyzer/openbsd-netcat/Manifest
index 8d8c74dd8b1d..178bb8f48191 100644
--- a/net-analyzer/openbsd-netcat/Manifest
+++ b/net-analyzer/openbsd-netcat/Manifest
@@ -4,3 +4,5 @@ DIST netcat-openbsd_1.195-2.debian.tar.xz 35984 BLAKE2B eedac24eedc243ad1d58576b
 DIST netcat-openbsd_1.195.orig.tar.gz 22480 BLAKE2B 53c750c168d7ea5dc2ca653598e42700e2b3ee888d946a09503a22fa3bcbc2c73658f38787314bef628d609ad370223f6889b7019760bf51817f73fc570e1dcc SHA512 ea95cda028f2759835ea8832db0174c178b002d5a917f4c51594445a5377a30d6114ac261071eea98d3d0b60ae1ec72102609db1625dbc5a6e57c67e28d2ff51
 DIST netcat-openbsd_1.218-5.debian.tar.xz 52052 BLAKE2B 38ccde34bfa6f1873a8e38fa7355f94bc74cdeb125fd4081fd68819a685d49a4c8a6cc7ed243d49df2d38c7536f4ac680d598bd4c28a938bc4750c89376d2961 SHA512 a230eb143e32fe80ee108325bb81c4e163d48982b484bf4a93ef266e9eed12890e7e294c2fe3dd2ce91fe5aec7de2f1407bf25dc938c2565bfb3e0759555dddc
 DIST netcat-openbsd_1.218.orig.tar.gz 22964 BLAKE2B 2dba29cc93ef5295ec24db7632454564fa640fba139116d2732aff465c9a4b37238f65d51ad727f9b29d304b73ce05282b82ec468444c63f5611a90a1384ac62 SHA512 a830f0e3efdff01ba1bb0b344f49d545b9c184001cd641e523a6d24670b97d52dc723318660a5ec8f3215cb57ebe62ca4c06387000b6c8b6495a5c653a4206c6
+DIST netcat-openbsd_1.219-1.debian.tar.xz 52048 BLAKE2B 62c2e4a6446fbdb01ea34a70c10dc72a980e62b4d8e06e4564f05932b9fb291be73558a1b8c11f448c509b0fc3c5fe42381a1a9f0a14bba0c2e087dd1e6da9f1 SHA512 badc1afbe8a467c068fa1d3bf12817d568eae5bb9774f9f11d3b30c065eb3a8b39724bb456329d7153ea3160cd10fab159a6756f7eeafd9bfc8c5d78114f7da6
+DIST netcat-openbsd_1.219.orig.tar.gz 22940 BLAKE2B 4e871124a22fec2ba572f2a614b7eb5134565acd5d952973f7e7f76ead6b22d0811efcc916726da1e7719c5d3014f94ea53ad09804a77b55c4b15fc571bf0e95 SHA512 9f6d531d33410457b8f1e6a3eb0d105dbd819d5e4fe9753d32d7fd4583680ceba102a60307a8b5ef26b47047492b207388742b725da3708d30d360d4a196f115

diff --git a/net-analyzer/openbsd-netcat/openbsd-netcat-1.219_p1.ebuild b/net-analyzer/openbsd-netcat/openbsd-netcat-1.219_p1.ebuild
new file mode 100644
index 000000000000..df4845a47877
--- /dev/null
+++ b/net-analyzer/openbsd-netcat/openbsd-netcat-1.219_p1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MY_PV=$(ver_cut 1-2)
+DESCRIPTION="The OpenBSD network swiss army knife"
+HOMEPAGE="https://cvsweb.openbsd.org/src/usr.bin/nc/ https://salsa.debian.org/debian/netcat-openbsd"
+SRC_URI="
+	mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_${MY_PV}.orig.tar.gz
+	mirror://debian/pool/main/n/netcat-openbsd/netcat-openbsd_${MY_PV}-$(ver_cut 4).debian.tar.xz
+"
+S="${WORKDIR}"/netcat-openbsd-${MY_PV}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux ~x64-macos"
+
+RDEPEND="
+	!net-analyzer/netcat
+	!net-analyzer/netcat6
+	!elibc_Darwin? ( dev-libs/libbsd )
+"
+BDEPEND="virtual/pkgconfig"
+
+src_prepare() {
+	local i
+	for i in $(<"${WORKDIR}"/debian/patches/series) ; do
+		PATCHES+=( "${WORKDIR}"/debian/patches/${i} )
+	done
+
+	if [[ ${CHOST} == *-darwin* ]] ; then
+		# This undoes some of the Debian/Linux changes
+		PATCHES+=( "${FILESDIR}"/${PN}-1.195-darwin.patch )
+
+		if [[ ${CHOST##*-darwin} -lt 20 ]] ; then
+			PATCHES+=( "${FILESDIR}"/${PN}-1.190-darwin13.patch )
+		fi
+	fi
+
+	if use elibc_musl ; then
+		PATCHES+=( "${FILESDIR}"/${PN}-1.105-musl-b64_ntop.patch )
+	fi
+
+	default
+}
+
+src_compile() {
+	emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+	dobin nc
+	doman nc.1
+
+	cd "${WORKDIR}"/debian || die
+	newdoc netcat-openbsd.README.Debian README
+	dodoc -r examples
+}
+
+pkg_postinst() {
+	if use kernel_linux ; then
+		ewarn "SO_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
+}


             reply	other threads:[~2023-01-19  1:39 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-19  1:39 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-09  2:20 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/openbsd-netcat/ Sam James
2024-08-02 11:25 James Le Cuirot
2023-09-29 18:36 WANG Xuerui
2023-05-06 14:48 Arthur Zamarin
2023-05-06 14:30 Sam James
2023-05-06 13:50 Arthur Zamarin
2023-05-06 12:11 Sam James
2023-05-01 13:19 Sam James
2023-01-19  2:27 Sam James
2023-01-19  2:27 Sam James
2023-01-19  2:27 Sam James
2023-01-19  2:27 Sam James
2023-01-19  1:39 Sam James
2022-09-25  1:15 Sam James
2022-08-12 10:33 Agostino Sarubbo
2022-08-12 10:17 Agostino Sarubbo
2022-08-10 10:56 Arthur Zamarin
2022-08-10  9:42 Agostino Sarubbo
2022-06-24 20:57 Jakov Smolić
2022-03-20 18:43 Sam James
2022-01-03 23:26 David Seifert
2021-09-27 14:53 Marek Szuba
2021-08-09  1:18 Sam James
2021-04-19  0:23 Sam James
2021-04-03 15:57 Sam James
2020-10-25 23:42 Thomas Deutschmann
2020-10-25 23:17 Sam James
2020-08-20 13:20 Sam James
2020-05-13  4:00 Benda XU
2019-04-08 23:18 Aaron Bauman
2019-03-13 13:42 Mikle Kolyada
2019-03-13 13:19 Michał Górny
2017-09-13 15:05 Fabian Groffen
2016-07-04 12:25 Fabian Groffen
2016-05-23 19:37 Fabian Groffen
2016-05-17  8:29 Fabian Groffen
2016-05-13  8:11 Benda XU

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1674092249.76187ed1090f22f49a7b7cdfe368ae7098ac7992.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox