summaryrefslogtreecommitdiff
path: root/net/udpcast
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-08-22 15:52:15 +0000
committerjoerg <joerg@pkgsrc.org>2006-08-22 15:52:15 +0000
commitf28b28dd5f0b4ab6d4dd5df8bfd4db9f14f82e92 (patch)
treedc037210d593c02248828c8d3d192fbee86da294 /net/udpcast
parentc20425d67f880ac5d1b1b819c12c76c9a293e1f1 (diff)
downloadpkgsrc-f28b28dd5f0b4ab6d4dd5df8bfd4db9f14f82e92.tar.gz
Fix pthread and errno usage. Include sys/uio.h on DragonFly.
Diffstat (limited to 'net/udpcast')
-rw-r--r--net/udpcast/Makefile3
-rw-r--r--net/udpcast/distinfo8
-rw-r--r--net/udpcast/patches/patch-ac14
-rw-r--r--net/udpcast/patches/patch-ad14
-rw-r--r--net/udpcast/patches/patch-ae13
-rw-r--r--net/udpcast/patches/patch-af13
-rw-r--r--net/udpcast/patches/patch-ag14
-rw-r--r--net/udpcast/patches/patch-ah14
8 files changed, 91 insertions, 2 deletions
diff --git a/net/udpcast/Makefile b/net/udpcast/Makefile
index 85ce623252f..6b84dee6ccc 100644
--- a/net/udpcast/Makefile
+++ b/net/udpcast/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/08/09 10:04:12 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2006/08/22 15:52:15 joerg Exp $
#
DISTNAME= udpcast-20060619
@@ -17,4 +17,5 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/udp-receiver.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_MAN} ${WRKSRC}/udp-sender.1 ${PREFIX}/${PKGMANDIR}/man1
+.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/udpcast/distinfo b/net/udpcast/distinfo
index 3f86babd4c8..42117cbc099 100644
--- a/net/udpcast/distinfo
+++ b/net/udpcast/distinfo
@@ -1,7 +1,13 @@
-$NetBSD: distinfo,v 1.2 2006/08/09 14:00:08 drochner Exp $
+$NetBSD: distinfo,v 1.3 2006/08/22 15:52:15 joerg Exp $
SHA1 (udpcast-20060619.tar.gz) = ae95820c746fc6d6dc2c4c97d24d52105983e15c
RMD160 (udpcast-20060619.tar.gz) = 1f8ffefc5f5a412f1b8bb371895987734f6159b1
Size (udpcast-20060619.tar.gz) = 76311 bytes
SHA1 (patch-aa) = 71af13c0bede7748e8b9d32f920488d263d3348f
SHA1 (patch-ab) = ef6b9b9ccc99028cc5ff939bc708d8812e032a62
+SHA1 (patch-ac) = 13e8289e336de78413ed6c9fdce6508222577365
+SHA1 (patch-ad) = ab0ab1e9f5cd98d0e1ffd15f7846ea889608fed8
+SHA1 (patch-ae) = 4937aec1283ca42652f9614e317fa63dcc500019
+SHA1 (patch-af) = 1b1ee2e0e256c4656a29ca4dd20d0ad9d718a617
+SHA1 (patch-ag) = 1e8c13bf20908a90f8ad88f4a5651483538c9f36
+SHA1 (patch-ah) = 0329f8e290b75f1da791465ab1ffd198a0f2ab32
diff --git a/net/udpcast/patches/patch-ac b/net/udpcast/patches/patch-ac
new file mode 100644
index 00000000000..93b3024d7a8
--- /dev/null
+++ b/net/udpcast/patches/patch-ac
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.1 2006/08/22 15:52:15 joerg Exp $
+
+--- receivedata.c.orig 2006-08-22 17:39:33.000000000 +0000
++++ receivedata.c
+@@ -4,6 +4,9 @@
+ #include <stdlib.h>
+ #include <sys/time.h>
+ #include <errno.h>
++#if defined(__DragonFly__)
++#include <sys/uio.h>
++#endif
+
+ #include "threads.h"
+ #include "log.h"
diff --git a/net/udpcast/patches/patch-ad b/net/udpcast/patches/patch-ad
new file mode 100644
index 00000000000..81f3ac804b3
--- /dev/null
+++ b/net/udpcast/patches/patch-ad
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.1 2006/08/22 15:52:15 joerg Exp $
+
+--- udpr-negotiate.c.orig 2006-08-22 17:40:14.000000000 +0000
++++ udpr-negotiate.c
+@@ -107,9 +107,6 @@ int startReceiver(int doWarn,
+ }
+ outFile = open(disk_config->fileName, oflags | O_BINARY, 0644);
+ if(outFile < 0) {
+-#ifdef NO_BB
+- extern int errno;
+-#endif
+ udpc_fatal(1, "open outfile %s: %s\n",
+ disk_config->fileName, strerror(errno));
+ }
diff --git a/net/udpcast/patches/patch-ae b/net/udpcast/patches/patch-ae
new file mode 100644
index 00000000000..995e1073d60
--- /dev/null
+++ b/net/udpcast/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2006/08/22 15:52:16 joerg Exp $
+
+--- libbb_udpcast.h.orig 2006-08-22 17:40:46.000000000 +0000
++++ libbb_udpcast.h
+@@ -14,7 +14,7 @@
+ #define TRUE 1
+ #define FALSE 0
+
+-#include <malloc.h>
++#include <stdlib.h>
+ #define xmalloc malloc
+
+ #endif /* BB_VER */
diff --git a/net/udpcast/patches/patch-af b/net/udpcast/patches/patch-af
new file mode 100644
index 00000000000..cd01b913c2e
--- /dev/null
+++ b/net/udpcast/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2006/08/22 15:52:16 joerg Exp $
+
+--- Makefile.orig 2006-08-22 17:41:12.000000000 +0000
++++ Makefile
+@@ -3,7 +3,7 @@ DESTDIR =
+ #CFLAGS = -O4 -Wall -DNDEBUG -DLOSSTEST
+ CFLAGS =-Wall -Wshadow -DBB_FEATURE_UDPCAST_FEC -D_FILE_OFFSET_BITS=64 -DUSE_SYSLOG -DUSE_ASSEMBLER -O6
+ LDFLAGS =-s -Wl,-warn-common
+-LIBS=-lpthread
++LIBS=${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
+ BUSYBOX=../udp-busybox/busybox
+ BBTARGET=$(BUSYBOX)/udpcast
+ EXESUFFIX=
diff --git a/net/udpcast/patches/patch-ag b/net/udpcast/patches/patch-ag
new file mode 100644
index 00000000000..3f9d6f197ce
--- /dev/null
+++ b/net/udpcast/patches/patch-ag
@@ -0,0 +1,14 @@
+$NetBSD: patch-ag,v 1.1 2006/08/22 15:52:16 joerg Exp $
+
+--- sender-diskio.c.orig 2006-08-22 17:45:14.000000000 +0000
++++ sender-diskio.c
+@@ -26,9 +26,6 @@ int openFile(struct disk_config *config)
+ if(config->fileName != NULL) {
+ int in = open(config->fileName, O_RDONLY | O_BINARY, 0);
+ if (in < 0) {
+-#ifdef NO_BB
+- extern int errno;
+-#endif
+ udpc_fatal(1, "Could not open file %s: %s\n", config->fileName,
+ strerror(errno));
+ }
diff --git a/net/udpcast/patches/patch-ah b/net/udpcast/patches/patch-ah
new file mode 100644
index 00000000000..bf3bad1bea0
--- /dev/null
+++ b/net/udpcast/patches/patch-ah
@@ -0,0 +1,14 @@
+$NetBSD: patch-ah,v 1.1 2006/08/22 15:52:16 joerg Exp $
+
+--- senddata.c.orig 2006-08-22 17:46:18.000000000 +0000
++++ senddata.c
+@@ -3,6 +3,9 @@
+ #include <sys/time.h>
+ #include <unistd.h>
+ #include <errno.h>
++#if defined(__DragonFly__)
++#include <sys/uio.h>
++#endif
+
+ #include "threads.h"
+ #include "fec.h"