[74419] trunk/dports/kde
Jeremy Lavergne
jeremy at lavergne.gotdns.org
Thu Dec 16 08:48:39 PST 2010
Is the library part of the client (as in disable it there or are we duplicating)?
ktorrent @3.3.4 (kde, kde4)
KDE4 bittorrent client.
On Dec 16, 2010, at 11:43 , michaelld at macports.org wrote:
> Revision
> 74419
> Author
> michaelld at macports.org
> Date
> 2010-12-16 08:43:45 -0800 (Thu, 16 Dec 2010)
> Log Message
>
> libktorrent: initial checkin.
> Added Paths
>
> • trunk/dports/kde/libktorrent/
> • trunk/dports/kde/libktorrent/Portfile
> • trunk/dports/kde/libktorrent/files/
> • trunk/dports/kde/libktorrent/files/patch-src-net-socket.cpp.diff
> Diff
>
> Added: trunk/dports/kde/libktorrent/Portfile (0 => 74419)
>
> --- trunk/dports/kde/libktorrent/Portfile (rev 0)
> +++ trunk/dports/kde/libktorrent/Portfile 2010-12-16 16:43:45 UTC (rev 74419)
>
> @@ -0,0 +1,25 @@
>
> +# -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
> +# $Id: $
> +
> +PortSystem 1.0
> +PortGroup kde4 1.1
> +
> +name libktorrent
> +version 1.0.4
> +set ktorrent_version 4.0.4
> +categories kde kde4
> +maintainers nomaintainer
> +description KDE4 bittorrent client library.
> +long_description Library for bittorrent client for KDE4 supporting \
> + a variety of features such as uPNP.
> +platforms darwin
> +homepage http://www.kde.org
> +master_sites http://ktorrent.org/downloads/${ktorrent_version}/
> +use_bzip2 yes
> +checksums md5 b3a51222b0c78e23fd2cf330ed10c8b0 \
> + sha1 3dc6a4e5767377a39d643e5b03178bdd9253dc01 \
> + rmd160 61f3ac32abcdfa7ada26803d65c79cb1abdc8bb6
> +
> +depends_lib-append port:qca port:gmp port:boost
> +
> +patchfiles patch-src-net-socket.cpp.diff
>
> Added: trunk/dports/kde/libktorrent/files/patch-src-net-socket.cpp.diff (0 => 74419)
>
> --- trunk/dports/kde/libktorrent/files/patch-src-net-socket.cpp.diff (rev 0)
> +++ trunk/dports/kde/libktorrent/files/patch-src-net-socket.cpp.diff 2010-12-16 16:43:45 UTC (rev 74419)
>
> @@ -0,0 +1,38 @@
>
> +--- src/net/socket.cpp.orig 2010-12-13 14:20:00.000000000 -0500
> ++++ src/net/socket.cpp 2010-12-13 14:21:38.000000000 -0500
> +@@ -194,9 +194,10 @@
> + }
> + // Bind this socket to IPv4 as well. This is a workaround for systems
> + // which support IPv4-mapped addresses but have them disabled by
> ++#if !defined(Q_OS_MACX) && !defined(Q_OS_DARWIN)
> + // default (e.g. net.ipv6.bindv6only=1 on Debian Linux).
> + setsockopt(m_fd,SOL_IPV6,IPV6_V6ONLY,&no,sizeof(no));
> +-
> ++#endif
> + net::Address addr(ip,port);
> + if (::bind(m_fd,addr.address(),addr.length()) != 0)
> + {
> +@@ -227,9 +228,10 @@
> + }
> + // Bind this socket to IPv4 as well. This is a workaround for systems
> + // which support IPv4-mapped addresses but have them disabled by
> ++#if !defined(Q_OS_MACX) && !defined(Q_OS_DARWIN)
> + // default (e.g. net.ipv6.bindv6only=1 on Debian Linux).
> + setsockopt(m_fd,SOL_IPV6,IPV6_V6ONLY,&no,sizeof(no));
> +-
> ++#endif
> + if (::bind(m_fd,addr.address(),addr.length()) != 0)
> + {
> + Out(SYS_CON|LOG_IMPORTANT) << QString("Cannot bind to port %1:%2 : %3").arg(addr.ipAddress().toString()).arg(addr.port()).arg(strerror(errno)) << endl;
> +@@ -368,9 +370,11 @@
> + }
> + else
> + {
> ++#if !defined(Q_OS_MACX) && !defined(Q_OS_DARWIN)
> + #ifdef __GNUC__
> + #warning "Find way to set IPv6 traffic class"
> + #endif
> ++#endif
> + return true;
> + }
> + return true;
>
> _______________________________________________
> macports-changes mailing list
> macports-changes at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-changes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3749 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20101216/49ddfd0d/attachment.bin>
More information about the macports-dev
mailing list