SAP server from the VideoLan project

This commit is contained in:
manu 2004-07-27 16:28:19 +00:00
parent c17e36db94
commit 8260488eb8
7 changed files with 89 additions and 0 deletions

3
mbone/sapserver/DESCR Normal file
View file

@ -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.

15
mbone/sapserver/Makefile Normal file
View file

@ -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"

11
mbone/sapserver/PLIST Normal file
View file

@ -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

7
mbone/sapserver/distinfo Normal file
View file

@ -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

View file

@ -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
};

View file

@ -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

View file

@ -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);
}
}