mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
netcat-openbsd: openbsd netcat with debian and other patches (#13565)
This commit is contained in:
committed by
GitHub
parent
78574333f5
commit
9bef77757b
53
net-analyzer/netcat-openbsd/netcat_openbsd-7.5.1a.recipe
Normal file
53
net-analyzer/netcat-openbsd/netcat_openbsd-7.5.1a.recipe
Normal file
@@ -0,0 +1,53 @@
|
||||
SUMMARY="A utility to read and write to network connections"
|
||||
DESCRIPTION="Netcat is a simple utility which reads and writes data across \
|
||||
network connections, using the TCP or UDP protocol.
|
||||
|
||||
This is the OpenBSD netcat with Debian and other patches."
|
||||
HOMEPAGE="https://github.com/duncan-roe/netcat-openbsd"
|
||||
COPYRIGHT="2001 Eric Jackson
|
||||
1996 David Sacerdote
|
||||
2006 Damien Miller
|
||||
2005 Anil Madhavapeddy
|
||||
1995,1999 Theo de Raadt
|
||||
1999 Niklas Hallqvist
|
||||
2004, 2005 Damien Miller
|
||||
The OpenBSD project"
|
||||
LICENSE="BSD (3-clause)
|
||||
BSD (2-clause)"
|
||||
REVISION="1"
|
||||
srcGitRev="19366e25d99290a6f3e76893a7196356ceed4cc2"
|
||||
SOURCE_URI="https://github.com/duncan-roe/netcat-openbsd/archive/$srcGitRev.zip"
|
||||
CHECKSUM_SHA256="8f4c18b2345c3ea46e71abe9f8185c59addb1e33838ccbd76176396b64e02954"
|
||||
SOURCE_DIR="netcat-openbsd-$srcGitRev"
|
||||
PATCHES="netcat-openbsd-7.5.1a.patchset"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
|
||||
PROVIDES="
|
||||
netcat_openbsd = $portVersion
|
||||
cmd:nc = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make LIBS="-lbsd -lnetwork"
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $binDir $manDir/man1
|
||||
install -s nc $binDir/
|
||||
install nc.1 $manDir/man1/
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
From 9b15294448d4aae4e5de0a855987fd42ef67b9fe Mon Sep 17 00:00:00 2001
|
||||
From: Christof Meerwald <cmeerw@cmeerw.org>
|
||||
Date: Mon, 22 Dec 2025 11:48:07 +0000
|
||||
Subject: [PATCH] conditionally support IPTOS options
|
||||
|
||||
|
||||
diff --git a/netcat-openbsd-19366e25d99290a6f3e76893a7196356ceed4cc2/netcat.c b/netcat-openbsd-19366e25d99290a6f3e76893a7196356ceed4cc2/netcat.c
|
||||
index 8cc37f6..4df7d7f 100644
|
||||
--- a/netcat-openbsd-19366e25d99290a6f3e76893a7196356ceed4cc2/netcat.c
|
||||
+++ b/netcat-openbsd-19366e25d99290a6f3e76893a7196356ceed4cc2/netcat.c
|
||||
@@ -1721,7 +1721,9 @@ process_tos_opt(char *s, int *val)
|
||||
{ "af41", IPTOS_DSCP_AF41 },
|
||||
{ "af42", IPTOS_DSCP_AF42 },
|
||||
{ "af43", IPTOS_DSCP_AF43 },
|
||||
+#ifdef IPTOS_PREC_CRITIC_ECP
|
||||
{ "critical", IPTOS_PREC_CRITIC_ECP },
|
||||
+#endif
|
||||
{ "cs0", IPTOS_DSCP_CS0 },
|
||||
{ "cs1", IPTOS_DSCP_CS1 },
|
||||
{ "cs2", IPTOS_DSCP_CS2 },
|
||||
@@ -1731,10 +1733,16 @@ process_tos_opt(char *s, int *val)
|
||||
{ "cs6", IPTOS_DSCP_CS6 },
|
||||
{ "cs7", IPTOS_DSCP_CS7 },
|
||||
{ "ef", IPTOS_DSCP_EF },
|
||||
+#ifdef IPTOS_PREC_INTERNETCONTROL
|
||||
{ "inetcontrol", IPTOS_PREC_INTERNETCONTROL },
|
||||
+#endif
|
||||
+#ifdef IPTOS_LOWCOST
|
||||
{ "lowcost", IPTOS_LOWCOST },
|
||||
+#endif
|
||||
{ "lowdelay", IPTOS_LOWDELAY },
|
||||
+#ifdef IPTOS_PREC_NETCONTROL
|
||||
{ "netcontrol", IPTOS_PREC_NETCONTROL },
|
||||
+#endif
|
||||
{ "reliability", IPTOS_RELIABILITY },
|
||||
{ "throughput", IPTOS_THROUGHPUT },
|
||||
{ NULL, -1 },
|
||||
--
|
||||
2.51.0
|
||||
|
||||
Reference in New Issue
Block a user