summaryrefslogtreecommitdiff
path: root/pkg/openbsd/patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2018-11-07 13:58:29 -0800
committerMichael Forney <mforney@mforney.org>2018-11-07 14:04:38 -0800
commit80770716279ced2795dbdec6b92cc1a06be2ab61 (patch)
treebff34f37cd7bdbc1246d34b22c2dfe94b55d25bd /pkg/openbsd/patch
parent5a0f00b6c147fa44a4c2f2598a14154d8a5c155e (diff)
Build nc from libressl
This way we don't have to maintain the nc linux port patch ourselves. It also avoids a circular dependency between the libressl and openbsd packages.
Diffstat (limited to 'pkg/openbsd/patch')
-rw-r--r--pkg/openbsd/patch/0018-nc-Port-to-linux.patch111
-rw-r--r--pkg/openbsd/patch/0018-yacc-Remove-__unused.patch (renamed from pkg/openbsd/patch/0019-yacc-Remove-__unused.patch)0
-rw-r--r--pkg/openbsd/patch/0019-Add-standalone-freezero.patch (renamed from pkg/openbsd/patch/0020-Add-standalone-freezero.patch)0
-rw-r--r--pkg/openbsd/patch/0020-m4-Use-hand-written-lexer-to-avoid-cycle-in-bootstra.patch (renamed from pkg/openbsd/patch/0021-m4-Use-hand-written-lexer-to-avoid-cycle-in-bootstra.patch)0
-rw-r--r--pkg/openbsd/patch/0021-m4-Use-_Noreturn-instead-of-__dead.patch (renamed from pkg/openbsd/patch/0022-m4-Use-_Noreturn-instead-of-__dead.patch)0
-rw-r--r--pkg/openbsd/patch/0022-m4-Add-missing-includes.patch (renamed from pkg/openbsd/patch/0023-m4-Add-missing-includes.patch)0
-rw-r--r--pkg/openbsd/patch/0023-libutil-Add-missing-includes.patch (renamed from pkg/openbsd/patch/0024-libutil-Add-missing-includes.patch)0
7 files changed, 0 insertions, 111 deletions
diff --git a/pkg/openbsd/patch/0018-nc-Port-to-linux.patch b/pkg/openbsd/patch/0018-nc-Port-to-linux.patch
deleted file mode 100644
index 6c9f5182..00000000
--- a/pkg/openbsd/patch/0018-nc-Port-to-linux.patch
+++ /dev/null
@@ -1,111 +0,0 @@
-From 0d05008cdf8188f66789de23e581d46608ad036b Mon Sep 17 00:00:00 2001
-From: Michael Forney <mforney@mforney.org>
-Date: Fri, 16 Jun 2017 20:32:42 -0700
-Subject: [PATCH] nc: Port to linux
-
----
- usr.bin/nc/netcat.c | 45 +++++++++++++++++++++++++++++++--------------
- 1 file changed, 31 insertions(+), 14 deletions(-)
-
-diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c
-index 3798dc760f1..6cbf346ed10 100644
---- a/usr.bin/nc/netcat.c
-+++ b/usr.bin/nc/netcat.c
-@@ -73,6 +73,31 @@
- #define TLS_CCERT (1 << 3)
- #define TLS_MUSTSTAPLE (1 << 4)
-
-+#ifndef IPTOS_DSCP_CS0
-+# define IPTOS_DSCP_CS0 0x00
-+#endif
-+#ifndef IPTOS_DSCP_CS1
-+# define IPTOS_DSCP_CS1 0x20
-+#endif
-+#ifndef IPTOS_DSCP_CS2
-+# define IPTOS_DSCP_CS2 0x40
-+#endif
-+#ifndef IPTOS_DSCP_CS3
-+# define IPTOS_DSCP_CS3 0x60
-+#endif
-+#ifndef IPTOS_DSCP_CS4
-+# define IPTOS_DSCP_CS4 0x80
-+#endif
-+#ifndef IPTOS_DSCP_CS5
-+# define IPTOS_DSCP_CS5 0xa0
-+#endif
-+#ifndef IPTOS_DSCP_CS6
-+# define IPTOS_DSCP_CS6 0xc0
-+#endif
-+#ifndef IPTOS_DSCP_CS7
-+# define IPTOS_DSCP_CS7 0xe0
-+#endif
-+
- /* Command Line Options */
- int dflag; /* detached, no stdin */
- int Fflag; /* fdpass sock to stdout */
-@@ -95,7 +120,6 @@ int Iflag; /* TCP receive buffer size */
- int Oflag; /* TCP send buffer size */
- int Sflag; /* TCP MD5 signature option */
- int Tflag = -1; /* IP Type of Service */
--int rtableid = -1;
-
- int usetls; /* use TLS */
- char *Cflag; /* Public cert file */
-@@ -267,12 +291,6 @@ main(int argc, char *argv[])
- case 'u':
- uflag = 1;
- break;
-- case 'V':
-- rtableid = (int)strtonum(optarg, 0,
-- RT_TABLEID_MAX, &errstr);
-- if (errstr)
-- errx(1, "rtable %s: %s", errstr, optarg);
-- break;
- case 'v':
- vflag = 1;
- break;
-@@ -345,10 +363,6 @@ main(int argc, char *argv[])
- argc -= optind;
- argv += optind;
-
-- if (rtableid >= 0)
-- if (setrtable(rtableid) == -1)
-- err(1, "setrtable");
--
- /* Cruft to make sure options are clean, and used properly. */
- if (argv[0] && !argv[1] && family == AF_UNIX) {
- host = argv[0];
-@@ -923,8 +937,12 @@ remote_connect(const char *host, const char *port, struct addrinfo hints)
- if (sflag || pflag) {
- struct addrinfo ahints, *ares;
-
-- /* try SO_BINDANY, but don't insist */
-+ /* try SO_BINDANY/IP_TRANSPARENT, but don't insist */
-+#if defined(SO_BINDANY)
- setsockopt(s, SOL_SOCKET, SO_BINDANY, &on, sizeof(on));
-+#elif defined(IP_TRANSPARENT)
-+ setsockopt(s, SOL_IP, IP_TRANSPARENT, &on, sizeof(on));
-+#endif
- memset(&ahints, 0, sizeof(struct addrinfo));
- ahints.ai_family = res->ai_family;
- ahints.ai_socktype = uflag ? SOCK_DGRAM : SOCK_STREAM;
-@@ -1754,7 +1772,6 @@ help(void)
- \t-t Answer TELNET negotiation\n\
- \t-U Use UNIX domain socket\n\
- \t-u UDP mode\n\
-- \t-V rtable Specify alternate routing table\n\
- \t-v Verbose\n\
- \t-W recvlimit Terminate after receiving a number of packets\n\
- \t-w timeout Timeout for connects and final net reads\n\
-@@ -1775,7 +1792,7 @@ usage(int ret)
- "\t [-i interval] [-K keyfile] [-M ttl] [-m minttl] [-O length]\n"
- "\t [-o staplefile] [-P proxy_username] [-p source_port] "
- "[-R CAfile]\n"
-- "\t [-s source] [-T keyword] [-V rtable] [-W recvlimit] "
-+ "\t [-s source] [-T keyword] [-W recvlimit] "
- "[-w timeout]\n"
- "\t [-X proxy_protocol] [-x proxy_address[:port]] "
- "[-Z peercertfile]\n"
---
-2.19.0
-
diff --git a/pkg/openbsd/patch/0019-yacc-Remove-__unused.patch b/pkg/openbsd/patch/0018-yacc-Remove-__unused.patch
index d8e49be7..d8e49be7 100644
--- a/pkg/openbsd/patch/0019-yacc-Remove-__unused.patch
+++ b/pkg/openbsd/patch/0018-yacc-Remove-__unused.patch
diff --git a/pkg/openbsd/patch/0020-Add-standalone-freezero.patch b/pkg/openbsd/patch/0019-Add-standalone-freezero.patch
index 249a3e4d..249a3e4d 100644
--- a/pkg/openbsd/patch/0020-Add-standalone-freezero.patch
+++ b/pkg/openbsd/patch/0019-Add-standalone-freezero.patch
diff --git a/pkg/openbsd/patch/0021-m4-Use-hand-written-lexer-to-avoid-cycle-in-bootstra.patch b/pkg/openbsd/patch/0020-m4-Use-hand-written-lexer-to-avoid-cycle-in-bootstra.patch
index f58f366f..f58f366f 100644
--- a/pkg/openbsd/patch/0021-m4-Use-hand-written-lexer-to-avoid-cycle-in-bootstra.patch
+++ b/pkg/openbsd/patch/0020-m4-Use-hand-written-lexer-to-avoid-cycle-in-bootstra.patch
diff --git a/pkg/openbsd/patch/0022-m4-Use-_Noreturn-instead-of-__dead.patch b/pkg/openbsd/patch/0021-m4-Use-_Noreturn-instead-of-__dead.patch
index c78d504e..c78d504e 100644
--- a/pkg/openbsd/patch/0022-m4-Use-_Noreturn-instead-of-__dead.patch
+++ b/pkg/openbsd/patch/0021-m4-Use-_Noreturn-instead-of-__dead.patch
diff --git a/pkg/openbsd/patch/0023-m4-Add-missing-includes.patch b/pkg/openbsd/patch/0022-m4-Add-missing-includes.patch
index de80afe9..de80afe9 100644
--- a/pkg/openbsd/patch/0023-m4-Add-missing-includes.patch
+++ b/pkg/openbsd/patch/0022-m4-Add-missing-includes.patch
diff --git a/pkg/openbsd/patch/0024-libutil-Add-missing-includes.patch b/pkg/openbsd/patch/0023-libutil-Add-missing-includes.patch
index c441c199..c441c199 100644
--- a/pkg/openbsd/patch/0024-libutil-Add-missing-includes.patch
+++ b/pkg/openbsd/patch/0023-libutil-Add-missing-includes.patch