ports/62688: New port: net/mad_fcl version 0.5

Mohacsi Janos mohacsi at niif.hu
Thu Feb 12 14:32:16 UTC 2004


Hi,
	I had difficulty to access FreeBSD 4.9, but here is a the more
even more patched version of mad_fcl.

Janos Mohacsi
Network Engineer, Research Associate
NIIF/HUNGARNET, HUNGARY
Key 00F9AF98: 8645 1312 D249 471B DBAE  21A2 9F52 0D1F 00F9 AF98

On Thu, 12 Feb 2004, Kirill Ponomarew wrote:

> Synopsis: New port: net/mad_fcl version 0.5
>
> State-Changed-From-To: open->feedback
> State-Changed-By: krion
> State-Changed-When: Thu Feb 12 04:34:42 PST 2004
> State-Changed-Why:
> Please test this port on 4.x:
>
> 1) You need to use <sys/types.h> in sdplib/port_misc.c
> 2) It fails to compile on 4.x:
> port_misc.c: In function `susleep':
> port_misc.c:146: storage size of `delay' isn't known
> port_misc.c:160: warning: implicit declaration of function `select'
> port_misc.c:146: warning: unused variable `delay'
> port_misc.c: At top level:
> port_misc.c:70: warning: `use_syslog' defined but not used
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=62688
>


----------------------
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mad_fcl
#	mad_fcl/pkg-plist
#	mad_fcl/pkg-descr
#	mad_fcl/distinfo
#	mad_fcl/Makefile
#	mad_fcl/files
#	mad_fcl/files/patch-Makefile
#	mad_fcl/files/patch-alclib::Makefile
#	mad_fcl/files/patch-flute::Makefile
#	mad_fcl/files/patch-sdplib::Makefile
#	mad_fcl/files/patch-sdplib::port_misc.c
#	mad_fcl/files/patch-alclib::fec.c
#	mad_fcl/files/patch-flute::fdt.c
#
echo c - mad_fcl
mkdir -p mad_fcl > /dev/null 2>&1
echo x - mad_fcl/pkg-plist
sed 's/^X//' >mad_fcl/pkg-plist << 'END-of-mad_fcl/pkg-plist'
Xbin/flute
X%%PORTDOCS%%%%DOCSDIR%%/fdt-example.xml
X%%PORTDOCS%%%%DOCSDIR%%/flute-sdp-example.sdp
X%%PORTDOCS%%%%DOCSDIR%%/README.TXT
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-mad_fcl/pkg-plist
echo x - mad_fcl/pkg-descr
sed 's/^X//' >mad_fcl/pkg-descr << 'END-of-mad_fcl/pkg-descr'
XMAD-FLUTE is an implementation of FLUTE - File Delivery over
XUnidirectional Transport (IETF draft). FLUTE is a protocol for the
Xunidirectional delivery of files over the Internet, which is particularly
Xsuited to multicast networks. FLUTE builds on Asyncronous Layered Coding
X(ALC), the base protocol designed for massively scalable multicast
Xdistribution (RFC 3450). ALC is a protocol instantiation of Layered Coding
XTransport building block (LCT) (RFC 3451). MAD-ALC is an implementation of
Xthe ALC/LCT protocols. The MAD/TUT project is going on at Tampere
XUniversity of Technology (TUT).
X
XWWW: http://www.atm.tut.fi/mad/
X
XJanos Mohacsi <janos.mohacsi at bsd.hu>
END-of-mad_fcl/pkg-descr
echo x - mad_fcl/distinfo
sed 's/^X//' >mad_fcl/distinfo << 'END-of-mad_fcl/distinfo'
XMD5 (mad_fcl_v0.5_src.tar.gz) = 02fd60b5d60aa3fd41dd85bd443ec1f9
XSIZE (mad_fcl_v0.5_src.tar.gz) = 96072
END-of-mad_fcl/distinfo
echo x - mad_fcl/Makefile
sed 's/^X//' >mad_fcl/Makefile << 'END-of-mad_fcl/Makefile'
X# New ports collection makefile for:	mad_fcl
X# Date created:				03.02.2003
X# Whom:					Janos.Mohacsi at bsd.hu
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mad_fcl
XPORTVERSION=	0.5
XCATEGORIES=	net ipv6
XMASTER_SITES=	http://www.atm.tut.fi/mad/download/
XDISTNAME=	${PORTNAME}_v${PORTVERSION}_src
X
XMAINTAINER=	Janos.Mohacsi at bsd.hu
XCOMMENT=	FLUTE - File Delivery over Unidirectional Transport implementation
X
XLIB_DEPENDS=	expat.4:${PORTSDIR}/textproc/expat2
X
XUSE_GMAKE=	yes
X
XDOC_FILES=	fdt-example.xml flute-sdp-example.sdp
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/bin/flute ${PREFIX}/bin
X.ifndef(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for file in ${DOC_FILES}
X	@${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
X.endfor
X	${INSTALL_DATA} ${WRKSRC}/README.TXT ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-mad_fcl/Makefile
echo c - mad_fcl/files
mkdir -p mad_fcl/files > /dev/null 2>&1
echo x - mad_fcl/files/patch-Makefile
sed 's/^X//' >mad_fcl/files/patch-Makefile << 'END-of-mad_fcl/files/patch-Makefile'
X--- Makefile.orig	Mon Feb  9 17:21:45 2004
X+++ Makefile	Mon Feb  9 17:23:16 2004
X@@ -4,21 +4,21 @@
X 	@echo "-------------------"
X 	@echo "*** ALC library ***"
X 	@echo "-------------------"
X-	mkdir lib; cd alclib; make clean; make
X+	mkdir lib; cd alclib; gmake clean; gmake
X 	@echo "done"
X
X sdplib ::
X 	@echo "-------------------"
X 	@echo "*** SDP library ***"
X 	@echo "-------------------"
X-	mkdir lib; cd sdplib; make clean; make
X+	mkdir lib; cd sdplib; gmake clean; gmake
X 	@echo "done"
X
X flute ::
X 	@echo "-------------------------"
X 	@echo "*** flute application ***"
X 	@echo "-------------------------"
X-	mkdir bin; cd flute; make clean; make
X+	mkdir bin; cd flute; gmake clean; gmake
X 	@echo "done"
X
X clean :
END-of-mad_fcl/files/patch-Makefile
echo x - mad_fcl/files/patch-alclib::Makefile
sed 's/^X//' >mad_fcl/files/patch-alclib::Makefile << 'END-of-mad_fcl/files/patch-alclib::Makefile'
X--- alclib/Makefile.orig	Tue Feb 10 11:32:17 2004
X+++ alclib/Makefile	Tue Feb 10 11:32:32 2004
X@@ -1,7 +1,7 @@
X #CC = ccmalloc gcc-2.95
X #CC = g++
X CC = gcc
X-CFLAGS += -Wall -g -fPIC -DLINUX
X+CFLAGS += -Wall -g -fPIC -O -DLINUX
X
X SOURCES = alc_channel.c alc_hdr.c alc_rx.c alc_session.c alc_socket.c alc_tx.c \
X 	lct_hdr.c mad.c mad_cc.c transport.c blocking_alg.c fec.c null_fec.c rs_fec.c
END-of-mad_fcl/files/patch-alclib::Makefile
echo x - mad_fcl/files/patch-flute::Makefile
sed 's/^X//' >mad_fcl/files/patch-flute::Makefile << 'END-of-mad_fcl/files/patch-flute::Makefile'
X--- flute/Makefile.orig	Mon Feb  2 15:08:56 2004
X+++ flute/Makefile	Thu Feb 12 14:37:48 2004
X@@ -1,10 +1,10 @@
X #CC = ccmalloc gcc-2.95
X #CC = g++
X CC = gcc
X-CFLAGS += -Wall -g -I/usr/local/expat-1.95.6/lib/ -I/usr/local/ssl/include/ -I/usr/java/j2sdk1.4.2/include/ \
X-	 -I/usr/java/j2sdk1.4.2/include/linux/ -DLINUX -D__VXWORKS_OS__
X-LFLAGS += -DLINUX -D__VXWORKS_OS__ -L../lib -L/usr/local/expat-1.95.6/.libs/ -L/usr/local/ssl/lib/ \
X-	-lalc -lsdp -lexpat -lpthread -lm -lssl -lcrypto #-lmpatrol -lelf
X+CFLAGS += -Wall -g -O -I/usr/local/include/ \
X+	 -DLINUX -D__VXWORKS_OS__
X+LFLAGS += -DLINUX -pthread -L../lib -L/usr/local/lib \
X+	-lalc -lsdp -lexpat -lm -lssl -lcrypto #-lmpatrol -lelf
X
X SOURCES = main.c flute.c sender.c receiver.c fdt.c fdt_gen.c mad_md5.c uri.c getdnsname.c
X
END-of-mad_fcl/files/patch-flute::Makefile
echo x - mad_fcl/files/patch-sdplib::Makefile
sed 's/^X//' >mad_fcl/files/patch-sdplib::Makefile << 'END-of-mad_fcl/files/patch-sdplib::Makefile'
X--- sdplib/Makefile.orig	Tue Feb 10 11:33:24 2004
X+++ sdplib/Makefile	Tue Feb 10 11:33:38 2004
X@@ -1,6 +1,6 @@
X #CC = ccmalloc gcc-2.95
X CC = gcc
X-CFLAGS += -Wall -g -fPIC -DLINUX -D__VXWORKS_OS__
X+CFLAGS += -Wall -g -fPIC -DLINUX -O -D__VXWORKS_OS__
X
X SOURCES = port_list.c port_misc.c sdp_accessor.c sdp_rfc2327.c sdplib.c
X
END-of-mad_fcl/files/patch-sdplib::Makefile
echo x - mad_fcl/files/patch-sdplib::port_misc.c
sed 's/^X//' >mad_fcl/files/patch-sdplib::port_misc.c << 'END-of-mad_fcl/files/patch-sdplib::port_misc.c'
X--- sdplib/port_misc.c.orig	Thu Oct 23 12:05:57 2003
X+++ sdplib/port_misc.c	Thu Feb 12 14:29:30 2004
X@@ -47,6 +47,7 @@
X #  include <sys/unistd.h>
X #endif
X
X+#define HAVE_UNISTD_H
X #if defined (HAVE_UNISTD_H)
X #  include <unistd.h>
X #endif
X@@ -55,6 +56,9 @@
X #  include <syslog.h>
X #endif
X
X+#include <sys/types.h>
X+#include <sys/time.h>
X+#define HAVE_SYS_SELECT_H
X #if defined (HAVE_SYS_SELECT_H)
X #  include <sys/select.h>
X #endif
END-of-mad_fcl/files/patch-sdplib::port_misc.c
echo x - mad_fcl/files/patch-alclib::fec.c
sed 's/^X//' >mad_fcl/files/patch-alclib::fec.c << 'END-of-mad_fcl/files/patch-alclib::fec.c'
X--- alclib/fec.c.orig	Thu Feb 12 14:20:24 2004
X+++ alclib/fec.c	Thu Feb 12 14:21:21 2004
X@@ -268,8 +268,7 @@
X     return p ;
X }
X
X-#define NEW_GF_MATRIX(rows, cols) \
X-    (gf *)my_malloc(rows * cols * sizeof(gf), " ## __LINE__ ## " )
X+#define NEW_GF_MATRIX(rows, cols) (gf *)my_malloc(rows * cols * sizeof(gf), " ## __LINE__ ## " )
X
X /*
X  * initialize the data structures used for computations in GF.
X@@ -350,8 +349,7 @@
X  *
X  * Note that gcc on
X  */
X-#define addmul(dst, src, c, sz) \
X-    if (c != 0) addmul1(dst, src, c, sz)
X+#define addmul(dst, src, c, sz)  if (c != 0) addmul1(dst, src, c, sz)
X
X #define UNROLL 16 /* 1, 4, 8, 16 */
X static void
END-of-mad_fcl/files/patch-alclib::fec.c
echo x - mad_fcl/files/patch-flute::fdt.c
sed 's/^X//' >mad_fcl/files/patch-flute::fdt.c << 'END-of-mad_fcl/files/patch-flute::fdt.c'
X--- flute/fdt.c.orig	Thu Feb 12 14:40:21 2004
X+++ flute/fdt.c	Thu Feb 12 14:48:22 2004
X@@ -113,14 +113,14 @@
X #ifdef WIN32
X                                 file->file_len = _atoi64(*(++atts));
X #else
X-                                file->file_len = atoll(*(++atts));
X+                                file->file_len = strtoll(*(++atts), NULL, 10);
X #endif
X                         }
X 			else if(!strcmp(*atts, "Transfer-Length")) {
X #ifdef WIN32
X 				file->toi_len = _atoi64(*(++atts));
X #else
X-				file->toi_len = atoll(*(++atts));
X+				file->toi_len = strtoll(*(++atts),NULL, 10);
X #endif
X 			}
X 			else if(!strcmp(*atts, "Content-Type")) {
X@@ -179,7 +179,7 @@
X #ifdef WIN32
X 				fdt->expires = _atoi64(*(++atts));
X #else
X-				fdt->expires = atoll(*(++atts));
X+				fdt->expires = strtoll(*(++atts), NULL, 10);
X #endif
X 			}
X 			else if(!strcmp(*atts, "Complete")) {
END-of-mad_fcl/files/patch-flute::fdt.c
exit



More information about the freebsd-ports-bugs mailing list