summaryrefslogtreecommitdiff
path: root/net/rtorrent
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/rtorrent
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/rtorrent')
-rw-r--r--net/rtorrent/Makefile4
-rw-r--r--net/rtorrent/distinfo3
-rw-r--r--net/rtorrent/patches/patch-aa17
3 files changed, 22 insertions, 2 deletions
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())