From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 13 07:30:30 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 182A616A59B for ; Fri, 13 Feb 2004 07:30:30 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0AEC43D1D for ; Fri, 13 Feb 2004 07:30:29 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i1DFUTbv065693 for ; Fri, 13 Feb 2004 07:30:29 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i1DFUT82065692; Fri, 13 Feb 2004 07:30:29 -0800 (PST) (envelope-from gnats) Date: Fri, 13 Feb 2004 07:30:29 -0800 (PST) Message-Id: <200402131530.i1DFUT82065692@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Mohacsi Janos Subject: Re: ports/62688: New port: net/mad_fcl version 0.5 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mohacsi Janos List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2004 15:30:30 -0000 The following reply was made to PR ports/62688; it has been noted by GNATS. From: Mohacsi Janos To: freebsd-gnats-submit@FreeBSD.org Cc: Kirill Ponomarew Subject: Re: ports/62688: New port: net/mad_fcl version 0.5 Date: Fri, 13 Feb 2004 16:24:24 +0100 (CET) Hi, Here is the "\r" removed and FreeBSD 4.x tested version of shar. Regards, Janos ========================================= # 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 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@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@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 Xpre-patch: X # Fixing the end-of-lines: X for f in `${FIND} ${WRKSRC}/.. -type f` ; do \ X ${TR} -d '\015' < $$f > $$f.noms && \ X ${CAT} $$f.noms > $$f && ${RM} $$f.noms; done 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 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 Fri Feb 13 15:58:54 2004 X+++ Makefile Fri Feb 13 15:58:54 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 Fri Feb 13 15:58:54 2004 X+++ alclib/Makefile Fri Feb 13 15:58:54 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 Fri Feb 13 15:58:54 2004 X+++ flute/Makefile Fri Feb 13 15:58:54 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 Fri Feb 13 15:58:54 2004 X+++ sdplib/Makefile Fri Feb 13 15:58:54 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 Fri Feb 13 15:58:54 2004 X+++ sdplib/port_misc.c Fri Feb 13 15:58:54 2004 X@@ -47,6 +47,7 @@ X # include X #endif X X+#define HAVE_UNISTD_H X #if defined (HAVE_UNISTD_H) X # include X #endif X@@ -55,6 +56,9 @@ X # include X #endif X X+#include X+#include X+#define HAVE_SYS_SELECT_H X #if defined (HAVE_SYS_SELECT_H) X # include 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 Fri Feb 13 15:58:54 2004 X+++ alclib/fec.c Fri Feb 13 15:58:54 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 Fri Feb 13 15:58:54 2004 X+++ flute/fdt.c Fri Feb 13 15:58:54 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