diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-02-16 12:49:37 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-02-16 12:49:37 +0000 |
commit | 68e9ce7139289898c5c975ff8ab7e5e96a7eefee (patch) | |
tree | cade81f12871b741d63d43696450443dcf49f68c /net/mad_fcl | |
parent | 7a6bbfdafe2e32a03ac67d0f9f39b83a9e4ab81f (diff) | |
download | ports-68e9ce7139289898c5c975ff8ab7e5e96a7eefee.tar.gz ports-68e9ce7139289898c5c975ff8ab7e5e96a7eefee.zip |
Notes
Diffstat (limited to 'net/mad_fcl')
-rw-r--r-- | net/mad_fcl/Makefile | 39 | ||||
-rw-r--r-- | net/mad_fcl/distinfo | 2 | ||||
-rw-r--r-- | net/mad_fcl/files/patch-Makefile | 27 | ||||
-rw-r--r-- | net/mad_fcl/files/patch-alclib::Makefile | 11 | ||||
-rw-r--r-- | net/mad_fcl/files/patch-alclib::fec.c | 22 | ||||
-rw-r--r-- | net/mad_fcl/files/patch-flute::Makefile | 17 | ||||
-rw-r--r-- | net/mad_fcl/files/patch-flute::fdt.c | 28 | ||||
-rw-r--r-- | net/mad_fcl/files/patch-sdplib::Makefile | 10 | ||||
-rw-r--r-- | net/mad_fcl/files/patch-sdplib::port_misc.c | 20 | ||||
-rw-r--r-- | net/mad_fcl/pkg-descr | 13 | ||||
-rw-r--r-- | net/mad_fcl/pkg-plist | 5 |
11 files changed, 194 insertions, 0 deletions
diff --git a/net/mad_fcl/Makefile b/net/mad_fcl/Makefile new file mode 100644 index 000000000000..5f17bfb85754 --- /dev/null +++ b/net/mad_fcl/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: mad_fcl +# Date created: 03.02.2003 +# Whom: Janos.Mohacsi@bsd.hu +# +# $FreeBSD$ +# + +PORTNAME= mad_fcl +PORTVERSION= 0.5 +CATEGORIES= net ipv6 +MASTER_SITES= http://www.atm.tut.fi/mad/download/ +DISTNAME= ${PORTNAME}_v${PORTVERSION}_src + +MAINTAINER= Janos.Mohacsi@bsd.hu +COMMENT= FLUTE - File Delivery over Unidirectional Transport implementation + +LIB_DEPENDS= expat.4:${PORTSDIR}/textproc/expat2 + +USE_GMAKE= yes + +DOC_FILES= fdt-example.xml flute-sdp-example.sdp + +pre-patch: + # Fixing the end-of-lines: + for f in `${FIND} ${WRKSRC}/.. -type f` ; do \ + ${TR} -d '\015' < $$f > $$f.noms && \ + ${CAT} $$f.noms > $$f && ${RM} $$f.noms; done + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/flute ${PREFIX}/bin +.ifndef(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in ${DOC_FILES} + @${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR} +.endfor + ${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/net/mad_fcl/distinfo b/net/mad_fcl/distinfo new file mode 100644 index 000000000000..5c953cee0787 --- /dev/null +++ b/net/mad_fcl/distinfo @@ -0,0 +1,2 @@ +MD5 (mad_fcl_v0.5_src.tar.gz) = 02fd60b5d60aa3fd41dd85bd443ec1f9 +SIZE (mad_fcl_v0.5_src.tar.gz) = 96072 diff --git a/net/mad_fcl/files/patch-Makefile b/net/mad_fcl/files/patch-Makefile new file mode 100644 index 000000000000..8a84c913c998 --- /dev/null +++ b/net/mad_fcl/files/patch-Makefile @@ -0,0 +1,27 @@ +--- Makefile.orig Fri Feb 13 15:58:54 2004 ++++ Makefile Fri Feb 13 15:58:54 2004 +@@ -4,21 +4,21 @@ + @echo "-------------------" + @echo "*** ALC library ***" + @echo "-------------------" +- mkdir lib; cd alclib; make clean; make ++ mkdir lib; cd alclib; gmake clean; gmake + @echo "done" + + sdplib :: + @echo "-------------------" + @echo "*** SDP library ***" + @echo "-------------------" +- mkdir lib; cd sdplib; make clean; make ++ mkdir lib; cd sdplib; gmake clean; gmake + @echo "done" + + flute :: + @echo "-------------------------" + @echo "*** flute application ***" + @echo "-------------------------" +- mkdir bin; cd flute; make clean; make ++ mkdir bin; cd flute; gmake clean; gmake + @echo "done" + + clean : diff --git a/net/mad_fcl/files/patch-alclib::Makefile b/net/mad_fcl/files/patch-alclib::Makefile new file mode 100644 index 000000000000..33aa0ffc6833 --- /dev/null +++ b/net/mad_fcl/files/patch-alclib::Makefile @@ -0,0 +1,11 @@ +--- alclib/Makefile.orig Fri Feb 13 15:58:54 2004 ++++ alclib/Makefile Fri Feb 13 15:58:54 2004 +@@ -1,7 +1,7 @@ + #CC = ccmalloc gcc-2.95 + #CC = g++ + CC = gcc +-CFLAGS += -Wall -g -fPIC -DLINUX ++CFLAGS += -Wall -g -fPIC -O -DLINUX + + SOURCES = alc_channel.c alc_hdr.c alc_rx.c alc_session.c alc_socket.c alc_tx.c \ + lct_hdr.c mad.c mad_cc.c transport.c blocking_alg.c fec.c null_fec.c rs_fec.c diff --git a/net/mad_fcl/files/patch-alclib::fec.c b/net/mad_fcl/files/patch-alclib::fec.c new file mode 100644 index 000000000000..b1a234046f6b --- /dev/null +++ b/net/mad_fcl/files/patch-alclib::fec.c @@ -0,0 +1,22 @@ +--- alclib/fec.c.orig Fri Feb 13 15:58:54 2004 ++++ alclib/fec.c Fri Feb 13 15:58:54 2004 +@@ -268,8 +268,7 @@ + return p ; + } + +-#define NEW_GF_MATRIX(rows, cols) \ +- (gf *)my_malloc(rows * cols * sizeof(gf), " ## __LINE__ ## " ) ++#define NEW_GF_MATRIX(rows, cols) (gf *)my_malloc(rows * cols * sizeof(gf), " ## __LINE__ ## " ) + + /* + * initialize the data structures used for computations in GF. +@@ -350,8 +349,7 @@ + * + * Note that gcc on + */ +-#define addmul(dst, src, c, sz) \ +- if (c != 0) addmul1(dst, src, c, sz) ++#define addmul(dst, src, c, sz) if (c != 0) addmul1(dst, src, c, sz) + + #define UNROLL 16 /* 1, 4, 8, 16 */ + static void diff --git a/net/mad_fcl/files/patch-flute::Makefile b/net/mad_fcl/files/patch-flute::Makefile new file mode 100644 index 000000000000..8a7e8401f0fd --- /dev/null +++ b/net/mad_fcl/files/patch-flute::Makefile @@ -0,0 +1,17 @@ +--- flute/Makefile.orig Fri Feb 13 15:58:54 2004 ++++ flute/Makefile Fri Feb 13 15:58:54 2004 +@@ -1,10 +1,10 @@ + #CC = ccmalloc gcc-2.95 + #CC = g++ + CC = gcc +-CFLAGS += -Wall -g -I/usr/local/expat-1.95.6/lib/ -I/usr/local/ssl/include/ -I/usr/java/j2sdk1.4.2/include/ \ +- -I/usr/java/j2sdk1.4.2/include/linux/ -DLINUX -D__VXWORKS_OS__ +-LFLAGS += -DLINUX -D__VXWORKS_OS__ -L../lib -L/usr/local/expat-1.95.6/.libs/ -L/usr/local/ssl/lib/ \ +- -lalc -lsdp -lexpat -lpthread -lm -lssl -lcrypto #-lmpatrol -lelf ++CFLAGS += -Wall -g -O -I/usr/local/include/ \ ++ -DLINUX -D__VXWORKS_OS__ ++LFLAGS += -DLINUX -pthread -L../lib -L/usr/local/lib \ ++ -lalc -lsdp -lexpat -lm -lssl -lcrypto #-lmpatrol -lelf + + SOURCES = main.c flute.c sender.c receiver.c fdt.c fdt_gen.c mad_md5.c uri.c getdnsname.c + diff --git a/net/mad_fcl/files/patch-flute::fdt.c b/net/mad_fcl/files/patch-flute::fdt.c new file mode 100644 index 000000000000..0afb684621d1 --- /dev/null +++ b/net/mad_fcl/files/patch-flute::fdt.c @@ -0,0 +1,28 @@ +--- flute/fdt.c.orig Fri Feb 13 15:58:54 2004 ++++ flute/fdt.c Fri Feb 13 15:58:54 2004 +@@ -113,14 +113,14 @@ + #ifdef WIN32 + file->file_len = _atoi64(*(++atts)); + #else +- file->file_len = atoll(*(++atts)); ++ file->file_len = strtoll(*(++atts), NULL, 10); + #endif + } + else if(!strcmp(*atts, "Transfer-Length")) { + #ifdef WIN32 + file->toi_len = _atoi64(*(++atts)); + #else +- file->toi_len = atoll(*(++atts)); ++ file->toi_len = strtoll(*(++atts),NULL, 10); + #endif + } + else if(!strcmp(*atts, "Content-Type")) { +@@ -179,7 +179,7 @@ + #ifdef WIN32 + fdt->expires = _atoi64(*(++atts)); + #else +- fdt->expires = atoll(*(++atts)); ++ fdt->expires = strtoll(*(++atts), NULL, 10); + #endif + } + else if(!strcmp(*atts, "Complete")) { diff --git a/net/mad_fcl/files/patch-sdplib::Makefile b/net/mad_fcl/files/patch-sdplib::Makefile new file mode 100644 index 000000000000..c1ddb7cd497b --- /dev/null +++ b/net/mad_fcl/files/patch-sdplib::Makefile @@ -0,0 +1,10 @@ +--- sdplib/Makefile.orig Fri Feb 13 15:58:54 2004 ++++ sdplib/Makefile Fri Feb 13 15:58:54 2004 +@@ -1,6 +1,6 @@ + #CC = ccmalloc gcc-2.95 + CC = gcc +-CFLAGS += -Wall -g -fPIC -DLINUX -D__VXWORKS_OS__ ++CFLAGS += -Wall -g -fPIC -DLINUX -O -D__VXWORKS_OS__ + + SOURCES = port_list.c port_misc.c sdp_accessor.c sdp_rfc2327.c sdplib.c + diff --git a/net/mad_fcl/files/patch-sdplib::port_misc.c b/net/mad_fcl/files/patch-sdplib::port_misc.c new file mode 100644 index 000000000000..f97f8e8cad18 --- /dev/null +++ b/net/mad_fcl/files/patch-sdplib::port_misc.c @@ -0,0 +1,20 @@ +--- sdplib/port_misc.c.orig Fri Feb 13 15:58:54 2004 ++++ sdplib/port_misc.c Fri Feb 13 15:58:54 2004 +@@ -47,6 +47,7 @@ + # include <sys/unistd.h> + #endif + ++#define HAVE_UNISTD_H + #if defined (HAVE_UNISTD_H) + # include <unistd.h> + #endif +@@ -55,6 +56,9 @@ + # include <syslog.h> + #endif + ++#include <sys/types.h> ++#include <sys/time.h> ++#define HAVE_SYS_SELECT_H + #if defined (HAVE_SYS_SELECT_H) + # include <sys/select.h> + #endif diff --git a/net/mad_fcl/pkg-descr b/net/mad_fcl/pkg-descr new file mode 100644 index 000000000000..51c015fdd1f2 --- /dev/null +++ b/net/mad_fcl/pkg-descr @@ -0,0 +1,13 @@ +MAD-FLUTE is an implementation of FLUTE - File Delivery over +Unidirectional Transport (IETF draft). FLUTE is a protocol for the +unidirectional delivery of files over the Internet, which is particularly +suited to multicast networks. FLUTE builds on Asyncronous Layered Coding +(ALC), the base protocol designed for massively scalable multicast +distribution (RFC 3450). ALC is a protocol instantiation of Layered Coding +Transport building block (LCT) (RFC 3451). MAD-ALC is an implementation of +the ALC/LCT protocols. The MAD/TUT project is going on at Tampere +University of Technology (TUT). + +WWW: http://www.atm.tut.fi/mad/ + +Janos Mohacsi <janos.mohacsi@bsd.hu> diff --git a/net/mad_fcl/pkg-plist b/net/mad_fcl/pkg-plist new file mode 100644 index 000000000000..2638d5da41e3 --- /dev/null +++ b/net/mad_fcl/pkg-plist @@ -0,0 +1,5 @@ +bin/flute +%%PORTDOCS%%%%DOCSDIR%%/fdt-example.xml +%%PORTDOCS%%%%DOCSDIR%%/flute-sdp-example.sdp +%%PORTDOCS%%%%DOCSDIR%%/README.TXT +%%PORTDOCS%%@dirrm %%DOCSDIR%% |