diff options
Diffstat (limited to 'net/udpcast')
-rw-r--r-- | net/udpcast/Makefile | 49 | ||||
-rw-r--r-- | net/udpcast/distinfo | 3 | ||||
-rw-r--r-- | net/udpcast/files/patch-libbb_udpcast.h | 13 | ||||
-rw-r--r-- | net/udpcast/files/patch-participants.h | 13 | ||||
-rw-r--r-- | net/udpcast/files/patch-rateGovernor.c | 28 | ||||
-rw-r--r-- | net/udpcast/files/patch-socklib.c | 46 | ||||
-rw-r--r-- | net/udpcast/files/patch-udpr-negotiate.c | 29 | ||||
-rw-r--r-- | net/udpcast/pkg-descr | 10 |
8 files changed, 0 insertions, 191 deletions
diff --git a/net/udpcast/Makefile b/net/udpcast/Makefile deleted file mode 100644 index 1c33f6320ea4..000000000000 --- a/net/udpcast/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -# New ports collection makefile for: udpcast -# Date created: Mon Jul 19 19:10:56 UTC 2004 -# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> -# -# $FreeBSD$ -# - -PORTNAME= udpcast -PORTVERSION= 0.${RELEASE_DATE} -CATEGORIES= mbone sysutils -MASTER_SITES= http://udpcast.linux.lu/download/ -DISTNAME= ${PORTNAME}-${RELEASE_DATE} - -MAINTAINER= ports@FreeBSD.org -COMMENT= A file transfer tool using ethernet's multicast - -USE_GMAKE= yes -USE_PERL5_BUILD= yes -WRKSRC= ${WRKDIR}/${PORTNAME}-${RELEASE_DATE} - -RELEASE_DATE= 20081213 - -PROGRAM_SBIN_FILES= udp-receiver udp-sender - -PLIST_FILES= sbin/udp-receiver \ - sbin/udp-sender -PORTDOCS= Changelog.txt cmd.html - -MAN1= udp-receiver.1 udp-sender.1 - -GNU_CONFIGURE= yes -CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \ - LIBS="-L${LOCALBASE}/lib" - -do-install: -.ifndef(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} -. for file in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -. endfor -.endif -.for file in ${PROGRAM_SBIN_FILES} - @${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/sbin/ -.endfor -.for file in ${MAN1} - @${INSTALL_MAN} ${WRKSRC}/${file} ${MANPREFIX}/man/man1/ -.endfor - -.include <bsd.port.mk> diff --git a/net/udpcast/distinfo b/net/udpcast/distinfo deleted file mode 100644 index 66ccd2a93184..000000000000 --- a/net/udpcast/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (udpcast-20081213.tar.gz) = 23f3371cb60a1f66f6be12fa98d4d5ca -SHA256 (udpcast-20081213.tar.gz) = 73adac6869e7653ad33a3b92498080a2a0398c60ac78c50a701057325f612d57 -SIZE (udpcast-20081213.tar.gz) = 160550 diff --git a/net/udpcast/files/patch-libbb_udpcast.h b/net/udpcast/files/patch-libbb_udpcast.h deleted file mode 100644 index 1f2289b163ae..000000000000 --- a/net/udpcast/files/patch-libbb_udpcast.h +++ /dev/null @@ -1,13 +0,0 @@ ---- libbb_udpcast.h.orig 2009-02-10 10:07:40.000000000 +0100 -+++ libbb_udpcast.h 2009-02-10 10:06:51.000000000 +0100 -@@ -24,6 +24,10 @@ - #include <malloc.h> - #endif - -+#ifdef HAVE_STDLIB_H -+ #include <stdlib.h> -+#endif -+ - #define xmalloc malloc - - #endif /* BB_VER */ diff --git a/net/udpcast/files/patch-participants.h b/net/udpcast/files/patch-participants.h deleted file mode 100644 index 6e7ef8da3d7f..000000000000 --- a/net/udpcast/files/patch-participants.h +++ /dev/null @@ -1,13 +0,0 @@ ---- participants.h.orig 2005-12-22 23:59:18.000000000 +0100 -+++ participants.h 2009-02-05 12:18:19.000000000 +0100 -@@ -3,6 +3,10 @@ - - #define MAX_CLIENTS 1024 - -+#include <sys/types.h> -+#include <sys/socket.h> -+ -+ - typedef struct participantsDb *participantsDb_t; - - #define isParticipantValid udpc_isParticipantValid diff --git a/net/udpcast/files/patch-rateGovernor.c b/net/udpcast/files/patch-rateGovernor.c deleted file mode 100644 index 14de493ebb02..000000000000 --- a/net/udpcast/files/patch-rateGovernor.c +++ /dev/null @@ -1,28 +0,0 @@ ---- rateGovernor.c.orig 2008-09-20 09:07:29.000000000 +0200 -+++ rateGovernor.c 2009-02-09 08:20:17.000000000 +0100 -@@ -23,6 +23,25 @@ - #define DL_RATE_GOVERNOR - #endif - -+ -+#ifdef __FreeBSD__ -+char * -+strndup(const char *str, size_t n) -+{ -+ size_t len; -+ char *copy; -+ -+ for (len = 0; len < n && str[len]; len++) -+ continue; -+ -+ if ((copy = malloc(len + 1)) == NULL) -+ return (NULL); -+ memcpy(copy, str, len); -+ copy[len] = '\0'; -+ return (copy); -+} -+#endif -+ - void *rgInitGovernor(struct net_config *cfg, struct rateGovernor_t *gov) - { - if(cfg->nrGovernors == MAX_GOVERNORS) { diff --git a/net/udpcast/files/patch-socklib.c b/net/udpcast/files/patch-socklib.c deleted file mode 100644 index 974921257f31..000000000000 --- a/net/udpcast/files/patch-socklib.c +++ /dev/null @@ -1,46 +0,0 @@ ---- socklib.c.orig 2008-09-18 22:43:15.000000000 +0200 -+++ socklib.c 2009-02-10 10:01:40.000000000 +0100 -@@ -18,6 +18,7 @@ - #endif - - #ifdef HAVE_NET_IF_H -+# include <sys/socket.h> - # include <net/if.h> - #endif - -@@ -66,6 +67,8 @@ - # define DEBUG 0 - #endif - -+#undef SIOCGIFINDEX -+ - #ifdef LOSSTEST - /** - * Packet loss/swap testing... -@@ -353,7 +356,7 @@ - - int setTtl(int sock, int ttl) { - /* set the socket to broadcast */ -- return setsockopt(sock, SOL_IP, IP_MULTICAST_TTL, (char*)&ttl, sizeof(int)); -+ return setsockopt(sock, IPPROTO_IP, IP_MULTICAST_TTL, (char*)&ttl, sizeof(int)); - } - - #ifdef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX -@@ -422,7 +425,7 @@ - - - int setMcastDestination(int sock, net_if_t *net_if, struct sockaddr_in *addr) { --#ifdef WINDOWS -+#if defined(WINDOWS) || defined(__FreeBSD__) - int r; - struct sockaddr_in interface_addr; - struct in_addr if_addr; -@@ -720,7 +723,7 @@ - - net_if->name = strdup(chosen->ifr_name); - --#ifdef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX -+#ifdef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX__TODO - /* Index for multicast subscriptions */ - if(ioctl(s, SIOCGIFINDEX, chosen) < 0) - udpc_fatal(-1, "Error getting index for %s: %s", net_if->name, diff --git a/net/udpcast/files/patch-udpr-negotiate.c b/net/udpcast/files/patch-udpr-negotiate.c deleted file mode 100644 index c1a1fddbd386..000000000000 --- a/net/udpcast/files/patch-udpr-negotiate.c +++ /dev/null @@ -1,29 +0,0 @@ ---- udpr-negotiate.c.orig 2007-05-25 12:01:59.000000000 +0200 -+++ udpr-negotiate.c 2009-02-06 08:18:02.000000000 +0100 -@@ -3,6 +3,10 @@ - #include <errno.h> - #include <sys/stat.h> - -+#if (defined(__unix__) || defined(unix)) && !defined(USG) -+#include <sys/param.h> -+#endif -+ - #include "log.h" - #include "socklib.h" - #include "udpcast.h" -@@ -82,13 +86,13 @@ - if(disk_config->fileName != NULL) { - int oflags = O_CREAT | O_WRONLY; - if((disk_config->flags & FLAG_SYNC)) { -- oflags |= O_SYNC; -+ oflags |= O_FSYNC; - } else if( !(disk_config->flags & FLAG_NOSYNC)) { - struct stat buf; - if(stat(disk_config->fileName, &buf) == 0) { - /* If target is device, open it synchronously */ - if(S_ISCHR(buf.st_mode) || S_ISBLK(buf.st_mode)) -- oflags |= O_SYNC; -+ oflags |= O_FSYNC; - } - } - outFile = open(disk_config->fileName, oflags | O_BINARY, 0644); diff --git a/net/udpcast/pkg-descr b/net/udpcast/pkg-descr deleted file mode 100644 index 834bd3b3e5e3..000000000000 --- a/net/udpcast/pkg-descr +++ /dev/null @@ -1,10 +0,0 @@ -[ excerpt taken from developer's www site ] - -UDPcast is a file transfer tool that can send data simultaneously -to many destinations on a LAN. This can for instance be used to -install entire classrooms of PC's at once. The advantage of UDPcast -over using other methods (nfs, ftp, whatever) is that UDPcast uses -Ethernet's multicast abilities: it won't take longer to install 15 -machines than it would to install just 2. - -WWW: http://udpcast.linux.lu/ |