summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2017-12-04 23:59:20 +0000
committerjmcneill <jmcneill@pkgsrc.org>2017-12-04 23:59:20 +0000
commit4ff8f05dea3ea0a06cf50da5d338c1844204dabd (patch)
tree9a8d1373388bff31f660dbf5e38956629019a9e8 /net
parent9ff64196ae463c8ef9dced0871b85c51cf584819 (diff)
downloadpkgsrc-4ff8f05dea3ea0a06cf50da5d338c1844204dabd.tar.gz
Initial import of stund 0.97
This project implements a simple STUN server and client on Windows, Linux, and Solaris. The STUN protocol (Simple Traversal of UDP through NATs) is described in the IETF RFC 3489.
Diffstat (limited to 'net')
-rw-r--r--net/stund/DESCR3
-rw-r--r--net/stund/Makefile24
-rw-r--r--net/stund/PLIST4
-rw-r--r--net/stund/distinfo7
-rw-r--r--net/stund/patches/patch-udp.h16
5 files changed, 54 insertions, 0 deletions
diff --git a/net/stund/DESCR b/net/stund/DESCR
new file mode 100644
index 00000000000..b6db9fdaa20
--- /dev/null
+++ b/net/stund/DESCR
@@ -0,0 +1,3 @@
+This project implements a simple STUN server and client on Windows, Linux,
+and Solaris. The STUN protocol (Simple Traversal of UDP through NATs) is
+described in the IETF RFC 3489.
diff --git a/net/stund/Makefile b/net/stund/Makefile
new file mode 100644
index 00000000000..1fdc0731b0b
--- /dev/null
+++ b/net/stund/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2017/12/04 23:59:20 jmcneill Exp $
+
+DISTNAME= stund-0.97
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=stun/}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= jmcneill@invisible.ca
+HOMEPAGE= http://stun.sourceforge.net/
+COMMENT= STUN Client and Server
+LICENSE= vovida-license
+
+WRKSRC= ${WRKDIR}/stund
+USE_LANGUAGES= c++
+USE_TOOLS+= gmake
+
+INSTALLATION_DIRS= bin sbin share/doc/stund
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/server ${DESTDIR}${PREFIX}/sbin/stund
+ ${INSTALL_PROGRAM} ${WRKSRC}/client ${DESTDIR}${PREFIX}/bin/stun_client
+ ${INSTALL_DATA} ${WRKSRC}/license.txt ${DESTDIR}${PREFIX}/share/doc/stund
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/stund/PLIST b/net/stund/PLIST
new file mode 100644
index 00000000000..42b3128083d
--- /dev/null
+++ b/net/stund/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2017/12/04 23:59:20 jmcneill Exp $
+bin/stun_client
+sbin/stund
+share/doc/stund/license.txt
diff --git a/net/stund/distinfo b/net/stund/distinfo
new file mode 100644
index 00000000000..4bfbb4dfe4d
--- /dev/null
+++ b/net/stund/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/12/04 23:59:20 jmcneill Exp $
+
+SHA1 (stund-0.97.tgz) = 49bc35790e4b3facbb31ebcc1f1f8277a999fb0c
+RMD160 (stund-0.97.tgz) = 06672b39bb3fcac1c136a3496b875f05deafc647
+SHA512 (stund-0.97.tgz) = 8f32d4fadf7264967a8cdabf410b9cd495e1f4dc6198d5efe07559996697db088a8a6b1b5fd0814c1a04fe8c17c866256d6a59b719a153fd23c26939d3c6bc1a
+Size (stund-0.97.tgz) = 169558 bytes
+SHA1 (patch-udp.h) = 0bc0c4254596fc9018f5bdc4d5dd96d6000bcbb6
diff --git a/net/stund/patches/patch-udp.h b/net/stund/patches/patch-udp.h
new file mode 100644
index 00000000000..57e53453712
--- /dev/null
+++ b/net/stund/patches/patch-udp.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-udp.h,v 1.1 2017/12/04 23:59:21 jmcneill Exp $
+
+--- udp.h.orig 2012-01-26 11:02:46.000000000 +0000
++++ udp.h
+@@ -1,11 +1,6 @@
+ #ifndef udp_h
+ #define udp_h
+
+-
+-#ifdef __MACH__
+-typedef int socklen_t;
+-#endif
+-
+ #include <errno.h>
+
+ #ifdef WIN32