summaryrefslogtreecommitdiff
path: root/mbone/sapserver
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2004-07-27 16:28:19 +0000
committermanu <manu@pkgsrc.org>2004-07-27 16:28:19 +0000
commit8260488eb876793a9b97e39f7ab800d0b9680a46 (patch)
treebfe36c9417b113769b7d357dd7c2ea044489796e /mbone/sapserver
parentc17e36db949e90925f053b891c199bb41aa1baae (diff)
downloadpkgsrc-8260488eb876793a9b97e39f7ab800d0b9680a46.tar.gz
SAP server from the VideoLan project
Diffstat (limited to 'mbone/sapserver')
-rw-r--r--mbone/sapserver/DESCR3
-rw-r--r--mbone/sapserver/Makefile15
-rw-r--r--mbone/sapserver/PLIST11
-rw-r--r--mbone/sapserver/distinfo7
-rw-r--r--mbone/sapserver/patches/patch-aa13
-rw-r--r--mbone/sapserver/patches/patch-ab24
-rw-r--r--mbone/sapserver/patches/patch-ac16
7 files changed, 89 insertions, 0 deletions
diff --git a/mbone/sapserver/DESCR b/mbone/sapserver/DESCR
new file mode 100644
index 00000000000..b7b9d8acdb6
--- /dev/null
+++ b/mbone/sapserver/DESCR
@@ -0,0 +1,3 @@
+sapserver is a SAP announcement server. Use it to advertise your sessions
+on the MBone. It was originally developped by the VideoLan Project to
+be used with the VLS streaming server.
diff --git a/mbone/sapserver/Makefile b/mbone/sapserver/Makefile
new file mode 100644
index 00000000000..0fe7bf5a96e
--- /dev/null
+++ b/mbone/sapserver/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/27 16:28:19 manu Exp $
+#
+
+DISTNAME= miniSAPserver-0.2.4
+CATEGORIES= mbone
+MASTER_SITES= http://download.videolan.org/pub/videolan/miniSAPserver/0.2.4/
+
+MAINTAINER= manu@NetBSD.org
+HOMEPAGE= http://www.videolan.org/
+COMMENT= Mini SAP server from the VideoLan project
+
+USE_BUILDLINK2= YES
+GNU_CONFIGURE= YES
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/mbone/sapserver/PLIST b/mbone/sapserver/PLIST
new file mode 100644
index 00000000000..3f129420b97
--- /dev/null
+++ b/mbone/sapserver/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/27 16:28:19 manu Exp $
+share/doc/sapserver/AUTHORS
+share/doc/sapserver/COPYING
+share/doc/sapserver/ChangeLog
+share/doc/sapserver/INSTALL
+share/doc/sapserver/NEWS
+share/doc/sapserver/README
+share/doc/sapserver/sap.cfg
+@dirrm share/doc/sapserver
+man/man1/sapserver.1
+bin/sapserver
diff --git a/mbone/sapserver/distinfo b/mbone/sapserver/distinfo
new file mode 100644
index 00000000000..7efb686e18a
--- /dev/null
+++ b/mbone/sapserver/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/07/27 16:28:19 manu Exp $
+
+SHA1 (miniSAPserver-0.2.4.tar.gz) = 08c23e667f473e889fbaecffb08815e93d24ca83
+Size (miniSAPserver-0.2.4.tar.gz) = 83614 bytes
+SHA1 (patch-aa) = 5ace64928278a095adaabd2a305a252afb9bdbfc
+SHA1 (patch-ab) = 8d532c712dbeae4662feb2ae5f8fae596d693886
+SHA1 (patch-ac) = 4ec86525145d3684982fbed60f13f83d17371466
diff --git a/mbone/sapserver/patches/patch-aa b/mbone/sapserver/patches/patch-aa
new file mode 100644
index 00000000000..2b28bcd64dc
--- /dev/null
+++ b/mbone/sapserver/patches/patch-aa
@@ -0,0 +1,13 @@
+--- broadcast.h.orig Tue Jul 27 17:56:37 2004
++++ broadcast.h Tue Jul 27 17:57:05 2004
+@@ -40,6 +40,10 @@
+ struct sockaddr_in addr; /* IP Address to broadcast to */
+ struct sockaddr_in6 addr_v6; /* IPv6 Address to broadcast to */
+ char* group;
+ uint16_t port;
++#ifdef __NetBSD__
++ unsigned char ttl;
++#else
+ unsigned int ttl;
++#endif
+ };
diff --git a/mbone/sapserver/patches/patch-ab b/mbone/sapserver/patches/patch-ab
new file mode 100644
index 00000000000..ff9a18b1195
--- /dev/null
+++ b/mbone/sapserver/patches/patch-ab
@@ -0,0 +1,24 @@
+--- Makefile.in.orig Tue Jul 27 18:07:05 2004
++++ Makefile.in Tue Jul 27 18:07:30 2004
+@@ -104,9 +104,9 @@
+ libdir = @libdir@
+ libexecdir = @libexecdir@
+ localstatedir = @localstatedir@
+
+-mandir = $(prefix)/share/man
++mandir = $(prefix)/man
+ oldincludedir = @oldincludedir@
+ prefix = @prefix@
+ program_transform_name = @program_transform_name@
+ sbindir = @sbindir@
+@@ -131,9 +131,9 @@
+
+
+ man_MANS = sapserver.1
+
+-sapcfgdir = $(prefix)/etc
++sapcfgdir = $(prefix)/share/doc/sapserver
+ sapcfg_DATA = sap.cfg
+
+ docdir = $(prefix)/share/doc/sapserver
+
diff --git a/mbone/sapserver/patches/patch-ac b/mbone/sapserver/patches/patch-ac
new file mode 100644
index 00000000000..839aa4bb64d
--- /dev/null
+++ b/mbone/sapserver/patches/patch-ac
@@ -0,0 +1,16 @@
+--- sapserver.cpp.orig Tue Jul 27 18:13:01 2004
++++ sapserver.cpp Tue Jul 27 18:14:06 2004
+@@ -174,9 +174,13 @@
+ if(config->GetDotMode())
+ fprintf(stdout,".");
+
+ /* Wait for next sending */
++#ifdef __NetBSD__
++ sleep(1 + (config->GetDelay()/config->Programs.size()));
++#else
+ usleep(config->GetDelay()*1000000/config->Programs.size());
++#endif
+ }
+ fflush(stdout);
+ }
+ }