summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/ucspi-udp/DESCR3
-rw-r--r--net/ucspi-udp/Makefile19
-rw-r--r--net/ucspi-udp/PLIST6
-rw-r--r--net/ucspi-udp/distinfo8
-rw-r--r--net/ucspi-udp/patches/patch-Makefile42
-rw-r--r--net/ucspi-udp/patches/patch-hier.c14
-rw-r--r--net/ucspi-udp/patches/patch-udpconnect.c11
7 files changed, 103 insertions, 0 deletions
diff --git a/net/ucspi-udp/DESCR b/net/ucspi-udp/DESCR
new file mode 100644
index 00000000000..c1901a0d532
--- /dev/null
+++ b/net/ucspi-udp/DESCR
@@ -0,0 +1,3 @@
+ucspi-udp is a set of command-line tools for building UDP-based
+client/server applications. They are derived from Dan Bernstein's
+ucspi-tcp 0.88.
diff --git a/net/ucspi-udp/Makefile b/net/ucspi-udp/Makefile
new file mode 100644
index 00000000000..67c646a1b90
--- /dev/null
+++ b/net/ucspi-udp/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2021/11/15 10:08:17 schmonz Exp $
+
+GITHUB_PROJECT= tsi-ucspi-udp
+GITHUB_TAG= ea972137e1da3189237aecc954bff2377398cb36
+DISTNAME= ea972137e1da3189237aecc954bff2377398cb36
+PKGNAME= ucspi-udp-0.88.1
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GITHUB:=tempestsecurity/}
+DIST_SUBDIR= ${GITHUB_PROJECT}
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= https://github.com/tempestsecurity/tsi-ucspi-udp/
+COMMENT= Unix Client-Server interface utilities for UDP
+LICENSE= public-domain
+
+MAKE_JOBS_SAFE= no
+
+.include "../../mk/djbware.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/ucspi-udp/PLIST b/net/ucspi-udp/PLIST
new file mode 100644
index 00000000000..c6766cd839c
--- /dev/null
+++ b/net/ucspi-udp/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2021/11/15 10:08:17 schmonz Exp $
+bin/udpcat
+bin/udpconnect
+bin/udplisten
+bin/udprules
+bin/udprulescheck
diff --git a/net/ucspi-udp/distinfo b/net/ucspi-udp/distinfo
new file mode 100644
index 00000000000..c5246234e85
--- /dev/null
+++ b/net/ucspi-udp/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2021/11/15 10:08:17 schmonz Exp $
+
+BLAKE2s (tsi-ucspi-udp/ea972137e1da3189237aecc954bff2377398cb36-ea972137e1da3189237aecc954bff2377398cb36.tar.gz) = ca0ee4bb86ad92a438af53f86edb5edeeb576c4e0afd1387f9179066509da276
+SHA512 (tsi-ucspi-udp/ea972137e1da3189237aecc954bff2377398cb36-ea972137e1da3189237aecc954bff2377398cb36.tar.gz) = d3af287e08dd038de92f286b3d71ec65d211ea257e85aedf8a404dd7eb3a784cbae216966b861a55224ede9259b0530c66695439b55340c8f219944ac131284e
+Size (tsi-ucspi-udp/ea972137e1da3189237aecc954bff2377398cb36-ea972137e1da3189237aecc954bff2377398cb36.tar.gz) = 52786 bytes
+SHA1 (patch-Makefile) = 5f06c5ca1491be733f9bdbc0ef45e9b80fb89744
+SHA1 (patch-hier.c) = ae0acd2c1ed227cd44a295c785f8d7a2f83c37ad
+SHA1 (patch-udpconnect.c) = 9955b3bde760247ca5f29de5a3e85e8b32606b43
diff --git a/net/ucspi-udp/patches/patch-Makefile b/net/ucspi-udp/patches/patch-Makefile
new file mode 100644
index 00000000000..59d54ab4dfe
--- /dev/null
+++ b/net/ucspi-udp/patches/patch-Makefile
@@ -0,0 +1,42 @@
+$NetBSD: patch-Makefile,v 1.1 2021/11/15 10:08:17 schmonz Exp $
+
+DESTDIR support.
+
+--- Makefile.orig 2016-03-29 19:44:38.000000000 +0000
++++ Makefile
+@@ -21,6 +21,14 @@ auto-str.o: \
+ compile auto-str.c buffer.h readwrite.h exit.h
+ ./compile auto-str.c
+
++auto_destdir.c: \
++auto-str conf-destdir
++ ./auto-str auto_home `head -1 conf-destdir` > auto_destdir.c
++
++auto_destdir.o: \
++compile auto_destdir.c
++ ./compile auto_destdir.c
++
+ auto_home.c: \
+ auto-str conf-home
+ ./auto-str auto_home `head -1 conf-home` > auto_home.c
+@@ -302,16 +310,16 @@ compile hier.c auto_home.h
+ ./compile hier.c
+
+ install: \
+-load install.o hier.o auto_home.o unix.a byte.a
+- ./load install hier.o auto_home.o unix.a byte.a
++load install.o hier.o auto_destdir.o unix.a byte.a
++ ./load install hier.o auto_destdir.o unix.a byte.a
+
+ install.o: \
+ compile install.c buffer.h strerr.h error.h open.h readwrite.h exit.h
+ ./compile install.c
+
+ instcheck: \
+-load instcheck.o hier.o auto_home.o unix.a byte.a
+- ./load instcheck hier.o auto_home.o unix.a byte.a
++load instcheck.o hier.o auto_destdir.o unix.a byte.a
++ ./load instcheck hier.o auto_destdir.o unix.a byte.a
+
+ instcheck.o: \
+ compile instcheck.c strerr.h error.h readwrite.h exit.h
diff --git a/net/ucspi-udp/patches/patch-hier.c b/net/ucspi-udp/patches/patch-hier.c
new file mode 100644
index 00000000000..c689a11c497
--- /dev/null
+++ b/net/ucspi-udp/patches/patch-hier.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-hier.c,v 1.1 2021/11/15 10:08:17 schmonz Exp $
+
+Avoid conflicts by not installing recordio.
+
+--- hier.c.orig 2016-03-29 19:44:38.000000000 +0000
++++ hier.c
+@@ -8,7 +8,6 @@ void hier()
+ c(auto_home,"bin","udplisten",-1,-1,0755);
+ c(auto_home,"bin","udprules",-1,-1,0755);
+ c(auto_home,"bin","udprulescheck",-1,-1,0755);
+- c(auto_home,"bin","recordio",-1,-1,0755);
+ c(auto_home,"bin","udpconnect",-1,-1,0755);
+ c(auto_home,"bin","udpcat",-1,-1,0755);
+ }
diff --git a/net/ucspi-udp/patches/patch-udpconnect.c b/net/ucspi-udp/patches/patch-udpconnect.c
new file mode 100644
index 00000000000..cdec0273990
--- /dev/null
+++ b/net/ucspi-udp/patches/patch-udpconnect.c
@@ -0,0 +1,11 @@
+$NetBSD: patch-udpconnect.c,v 1.1 2021/11/15 10:08:17 schmonz Exp $
+
+Provide definition of struct timeval.
+
+--- udpconnect.c.orig 2016-03-29 19:44:38.000000000 +0000
++++ udpconnect.c
+@@ -1,3 +1,4 @@
++#include <sys/time.h>
+ #include <sys/types.h>
+ #include <sys/param.h>
+ #include <netdb.h>