summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorwiz <wiz>2003-09-22 12:30:24 +0000
committerwiz <wiz>2003-09-22 12:30:24 +0000
commitad04e3eb76fef8c86edc8ce053ae51ab8acfaa68 (patch)
tree782e47b729305bcb25f9cdc4dc884af286cc3da4 /misc
parent2dcbd7ce7b214e8beb6126fc4be777aef52c636d (diff)
downloadpkgsrc-ad04e3eb76fef8c86edc8ce053ae51ab8acfaa68.tar.gz
Fix build on Solaris, based on PR 22889 by Jonathan Perkin.
Diffstat (limited to 'misc')
-rw-r--r--misc/cstream/Makefile8
-rw-r--r--misc/cstream/distinfo3
-rw-r--r--misc/cstream/patches/patch-aa16
3 files changed, 25 insertions, 2 deletions
diff --git a/misc/cstream/Makefile b/misc/cstream/Makefile
index dab93b33b04..b1a3a8dbc1d 100644
--- a/misc/cstream/Makefile
+++ b/misc/cstream/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2003/07/17 21:48:51 grant Exp $
+# $NetBSD: Makefile,v 1.4 2003/09/22 12:30:24 wiz Exp $
DISTNAME= cstream-2.2
CATEGORIES= misc
@@ -10,4 +10,10 @@ COMMENT= General-purpose stream-handling tool with bandwidth limiting
GNU_CONFIGURE= yes
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+LDFLAGS+= -lsocket -lnsl -lresolv
+.endif
+
.include "../../mk/bsd.pkg.mk"
diff --git a/misc/cstream/distinfo b/misc/cstream/distinfo
index 7fa9313f442..9a23c1f3fd7 100644
--- a/misc/cstream/distinfo
+++ b/misc/cstream/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2001/09/19 05:24:27 gmcgarry Exp $
+$NetBSD: distinfo,v 1.2 2003/09/22 12:30:24 wiz Exp $
SHA1 (cstream-2.2.tar.gz) = aef89176123f1ae6cb824e66b2e9b3aa3be7644e
Size (cstream-2.2.tar.gz) = 43124 bytes
+SHA1 (patch-aa) = 68f73e1052731342f59cbd3baaf772d45e62cacd
diff --git a/misc/cstream/patches/patch-aa b/misc/cstream/patches/patch-aa
new file mode 100644
index 00000000000..5a6ddcc73c7
--- /dev/null
+++ b/misc/cstream/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.1 2003/09/22 12:30:24 wiz Exp $
+
+--- cstream.c.orig Wed Jul 11 17:13:05 2001
++++ cstream.c
+@@ -93,6 +93,11 @@
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+
++/* Solaris needs this */
++#ifndef INADDR_NONE
++#define INADDR_NONE 0xffffffff
++#endif
++
+ #ifndef NORESOLV
+ #include <netdb.h>
+ #endif