commit:     0d004546c6f4e86c37ee9555c8d11e0322123747
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 26 08:09:01 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 26 18:55:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d004546

net-analyzer/openbsd-netcat: add 1.234_p1

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

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

diff --git a/net-analyzer/openbsd-netcat/Manifest 
b/net-analyzer/openbsd-netcat/Manifest
index 9d649ed1d187..0335465e67df 100644
--- a/net-analyzer/openbsd-netcat/Manifest
+++ b/net-analyzer/openbsd-netcat/Manifest
@@ -2,3 +2,5 @@ DIST netcat-openbsd_1.218-5.debian.tar.xz 52052 BLAKE2B 
38ccde34bfa6f1873a8e38fa
 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
+DIST netcat-openbsd_1.234-1.debian.tar.xz 52892 BLAKE2B 
82be4c8f944cb8a63805d0ad97cc675ebe46c8510acf14bd68f98c289107615a3ee6f9f1119b3f21fd6c8673c60d95d0c520d9a0917f42aac1f20e367b631836
 SHA512 
481a9617749c02cee3ee0b871eb8f7f364f1514c1c89bf1d1d741bb4c4960ae3279306f233b4edb1c6805f9bb0cc0d056e59003bb35db8ee28aa779540ab4fb9
+DIST netcat-openbsd_1.234.orig.tar.gz 23408 BLAKE2B 
60d43fad746374b18862d53394e7e3d70da242b3ef242730f5dbf124d237e7b6d95139c09e916f0d5b4301bf6d5d10e4548e61a9044075965b3df1c6232dac9e
 SHA512 
81b1cb461cb26d728b0a5d1d07c53624a05c84872a82f3d9cba43c9e8c25581b773cbe7a3467ad91add028f6765d9349c21dafbe0d746806763ae601547a9673

diff --git a/net-analyzer/openbsd-netcat/openbsd-netcat-1.234_p1.ebuild 
b/net-analyzer/openbsd-netcat/openbsd-netcat-1.234_p1.ebuild
new file mode 100644
index 000000000000..debffdb44a5c
--- /dev/null
+++ b/net-analyzer/openbsd-netcat/openbsd-netcat-1.234_p1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2025 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 ~loong ~ppc ~ppc64 ~riscv ~x86 ~amd64-linux 
~arm64-macos ~x64-macos"
+
+RDEPEND="
+       !net-analyzer/netcat
+       !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.219-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() {
+       # gnu99 for bug #943711
+       emake CC="$(tc-getCC) -std=gnu99" CFLAGS="${CFLAGS}" 
LDFLAGS="${LDFLAGS}" PKG_CONFIG="$(tc-getPKG_CONFIG)"
+}
+
+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 via email to