summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2009-04-10 09:06:20 +0000
committertron <tron@pkgsrc.org>2009-04-10 09:06:20 +0000
commit8d87aa23a5c42cc6b9b8e8ad08fcc6ee68cb0ad2 (patch)
tree73b26b0a252e484ef89b4f1dc2447ca2991048db /net
parentb3c9e4c2642287821bacf2837b0421bf5e3738a0 (diff)
downloadpkgsrc-8d87aa23a5c42cc6b9b8e8ad08fcc6ee68cb0ad2.tar.gz
Add two patches taken from "xnet.fi" to fix the build under SunOS 5.11
(and eventually older versions). Problem reported by Tom Hensel in private e-mail.
Diffstat (limited to 'net')
-rw-r--r--net/libtorrent/Makefile4
-rw-r--r--net/libtorrent/distinfo3
-rw-r--r--net/libtorrent/patches/patch-aa15
-rw-r--r--net/rtorrent/Makefile4
-rw-r--r--net/rtorrent/distinfo3
-rw-r--r--net/rtorrent/patches/patch-aa17
6 files changed, 42 insertions, 4 deletions
diff --git a/net/libtorrent/Makefile b/net/libtorrent/Makefile
index 4d20919aafe..65b91749d72 100644
--- a/net/libtorrent/Makefile
+++ b/net/libtorrent/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2008/12/03 12:57:40 tron Exp $
+# $NetBSD: Makefile,v 1.30 2009/04/10 09:06:20 tron Exp $
DISTNAME= libtorrent-0.12.2
CATEGORIES= net
@@ -8,6 +8,8 @@ OWNER= tron@NetBSD.org
HOMEPAGE= http://libtorrent.rakshasa.no/
COMMENT= BitTorrent library written in C++ for *nix
+LICENSE= gnu-gpl-v2
+
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c c++
diff --git a/net/libtorrent/distinfo b/net/libtorrent/distinfo
index 6de783f1f7f..82bbf401f32 100644
--- a/net/libtorrent/distinfo
+++ b/net/libtorrent/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.21 2008/12/03 12:57:40 tron Exp $
+$NetBSD: distinfo,v 1.22 2009/04/10 09:06:20 tron Exp $
SHA1 (libtorrent-0.12.2.tar.gz) = a53d2c671e9f2dd971d0622d5b3672da91c46ef9
RMD160 (libtorrent-0.12.2.tar.gz) = 88cdc415f98afd8b87fa6d7330906737c3e434fa
Size (libtorrent-0.12.2.tar.gz) = 585374 bytes
+SHA1 (patch-aa) = d864808b9e9524b3a7f72bcc1b465d4e6b2d4f4a
diff --git a/net/libtorrent/patches/patch-aa b/net/libtorrent/patches/patch-aa
new file mode 100644
index 00000000000..7985bc05e38
--- /dev/null
+++ b/net/libtorrent/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.8 2009/04/10 09:06:20 tron Exp $
+
+--- src/data/memory_chunk.cc.orig 2008-05-07 13:19:13.000000000 +0100
++++ src/data/memory_chunk.cc 2009-04-10 09:37:20.000000000 +0100
+@@ -46,6 +46,10 @@
+ #include "torrent/exceptions.h"
+ #include "memory_chunk.h"
+
++#if defined(sun) || defined(__sun)
++extern "C" int madvise(void *addr, size_t len, int behav);
++#endif /* sun || __sun */
++
+ namespace torrent {
+
+ uint32_t MemoryChunk::m_pagesize = getpagesize();
diff --git a/net/rtorrent/Makefile b/net/rtorrent/Makefile
index a0f80bd0f10..4974677b7ef 100644
--- a/net/rtorrent/Makefile
+++ b/net/rtorrent/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2008/12/03 12:57:40 tron Exp $
+# $NetBSD: Makefile,v 1.30 2009/04/10 09:06:20 tron Exp $
DISTNAME= rtorrent-0.8.2
CATEGORIES= net
@@ -8,6 +8,8 @@ OWNER= tron@NetBSD.org
HOMEPAGE= http://libtorrent.rakshasa.no/
COMMENT= Ncurses based torrent client with support for sessions
+LICENSE= gnu-gpl-v2
+
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= c c++
diff --git a/net/rtorrent/distinfo b/net/rtorrent/distinfo
index 483249a1d14..7bb28101f52 100644
--- a/net/rtorrent/distinfo
+++ b/net/rtorrent/distinfo
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.20 2008/12/16 16:49:52 tron Exp $
+$NetBSD: distinfo,v 1.21 2009/04/10 09:06:20 tron Exp $
SHA1 (rtorrent-0.8.2.tar.gz) = 891093c5d600c2e3853eadbbec369a12dfe6ec11
RMD160 (rtorrent-0.8.2.tar.gz) = e86b0082d1788e4e7cd8fcf631f7f857d642c799
Size (rtorrent-0.8.2.tar.gz) = 506015 bytes
+SHA1 (patch-aa) = ef8edceb33f28e022e3d48706c30733ac3a730a3
SHA1 (patch-ab) = 87873bb32166d00398ab0ef6421a6fe85a55c914
SHA1 (patch-ac) = b62de9ce834aa0422ec173e694d07e88aa1e2f47
SHA1 (patch-ad) = 04fafec083c7cb27eb2f5ef7fbc5f6ab2e4e4a55
diff --git a/net/rtorrent/patches/patch-aa b/net/rtorrent/patches/patch-aa
new file mode 100644
index 00000000000..b89b05a0568
--- /dev/null
+++ b/net/rtorrent/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.7 2009/04/10 09:06:21 tron Exp $
+
+--- src/rpc/scgi.cc.orig 2008-05-07 13:19:10.000000000 +0100
++++ src/rpc/scgi.cc 2009-04-10 09:45:10.000000000 +0100
+@@ -88,7 +88,12 @@
+ char buffer[sizeof(sockaddr_un) + filename.size()];
+ sockaddr_un* sa = reinterpret_cast<sockaddr_un*>(buffer);
+
++#if defined(sun) || defined(__sun)
++ sa->sun_family = AF_UNIX;
++#else
+ sa->sun_family = AF_LOCAL;
++#endif
++
+ std::memcpy(sa->sun_path, filename.c_str(), filename.size() + 1);
+
+ if (!get_fd().open_local())