diff --git a/net-p2p/Makefile b/net-p2p/Makefile index 23231f644058..4508b77e921c 100644 --- a/net-p2p/Makefile +++ b/net-p2p/Makefile @@ -106,6 +106,7 @@ SUBDIR += py-vertex SUBDIR += pyslsk SUBDIR += qbittorrent-22 + SUBDIR += qbittorrent-23 SUBDIR += qtella SUBDIR += qtorrent SUBDIR += rtgui diff --git a/net-p2p/qbittorrent-23/Makefile b/net-p2p/qbittorrent-23/Makefile new file mode 100644 index 000000000000..ff85c39a76a2 --- /dev/null +++ b/net-p2p/qbittorrent-23/Makefile @@ -0,0 +1,62 @@ +# New ports collection makefile for: qbittorrent-23 +# Date created: 24 July 2010 +# Whom: dougb@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= qbittorrent +PORTVERSION= 2.3.0.rc10 +CATEGORIES= net-p2p ipv6 +MASTER_SITES= http://cdnetworks-us-2.dl.sourceforge.net/project/qbittorrent/qbittorrent-unstable/ + +DISTNAME= qbittorrent-2.3.0rc10 +PKGNAMESUFFIX= -devel +NO_LATEST_LINK= yes + +MAINTAINER= dougb@FreeBSD.org +COMMENT= Bittorrent client using Qt4 and libtorrent-rasterbar (release candidate) + +LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo \ + torrent-rasterbar.6:${PORTSDIR}/net-p2p/libtorrent-rasterbar-15 \ + GeoIP.5:${PORTSDIR}/net/GeoIP + +MAKE_JOBS_SAFE= yes + +CONFLICTS= qbittorrent-2.2.* + +OPTIONS= NOTIFY "Enable libnotify support" on + +USE_QT_VER= 4 +QT_COMPONENTS= corelib gui network xml \ + moc_build qmake_build rcc_build uic_build +QT_NONSTANDARD= yes +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --with-libboost-inc="${LOCALBASE}/include" \ + --with-libboost-lib="${LOCALBASE}/lib" +INSTALLS_ICONS= yes + +MAN1= qbittorrent.1 + +.include + +.if !defined(WITHOUT_NOTIFY) +LIB_DEPENDS+= notify.1:${PORTSDIR}/devel/libnotify +.else +CONFIGURE_ARGS+= --disable-libnotify +.endif + +BOOSTLIB_PATTERN= -e 's|\*\-mt\*||' + +post-patch: + @${REINPLACE_CMD} -e 's|$$$$PREFIX/share/man|${MANPREFIX}/man|' \ + ${WRKSRC}/src/src.pro + @${ECHO_CMD} "LIBS+= -lexecinfo" >> ${WRKSRC}/src/src.pro + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${BOOSTLIB_PATTERN} \ + ${WRKSRC}/configure + @${REINPLACE_CMD} ${BOOSTLIB_PATTERN} ${WRKSRC}/qcm/libboost.qcm + +post-install: + @${STRIP_CMD} ${PREFIX}/bin/qbittorrent + +.include diff --git a/net-p2p/qbittorrent-23/distinfo b/net-p2p/qbittorrent-23/distinfo new file mode 100644 index 000000000000..46360d294de7 --- /dev/null +++ b/net-p2p/qbittorrent-23/distinfo @@ -0,0 +1,3 @@ +MD5 (qbittorrent-2.3.0rc10.tar.gz) = 52d0c99fa17bb53f209f82aa6b623e23 +SHA256 (qbittorrent-2.3.0rc10.tar.gz) = eaab629e4684bd0be1c108ae70210bcc1c3bc391fffb3847e4110b102fb6a96f +SIZE (qbittorrent-2.3.0rc10.tar.gz) = 2996793 diff --git a/net-p2p/qbittorrent-23/files/patch-src__createtorrent_imp.cpp b/net-p2p/qbittorrent-23/files/patch-src__createtorrent_imp.cpp new file mode 100644 index 000000000000..60454936e1d1 --- /dev/null +++ b/net-p2p/qbittorrent-23/files/patch-src__createtorrent_imp.cpp @@ -0,0 +1,14 @@ +--- src/createtorrent_imp.cpp.orig 2009-09-21 10:02:50.000000000 +0000 ++++ src/createtorrent_imp.cpp 2009-09-21 10:05:18.000000000 +0000 +@@ -257,7 +257,11 @@ + } + if(abort) return; + // calculate the hash for all pieces ++#if defined(__GNUC__) && __GNUC__ <= 3 ++ set_piece_hashes(t, full_path.branch_path(), boost::bind(&sendProgressUpdateSignal, _1, t.num_pieces(), this)); ++#else + set_piece_hashes(t, full_path.branch_path(), boost::bind(&sendProgressUpdateSignal, _1, t.num_pieces(), this)); ++#endif + // Set qBittorrent as creator and add user comment to + // torrent_info structure + t.set_creator(creator_str); diff --git a/net-p2p/qbittorrent-23/files/patch-src__filesystemwatcher.h b/net-p2p/qbittorrent-23/files/patch-src__filesystemwatcher.h new file mode 100644 index 000000000000..e55b55370815 --- /dev/null +++ b/net-p2p/qbittorrent-23/files/patch-src__filesystemwatcher.h @@ -0,0 +1,11 @@ +--- src/filesystemwatcher.h.orig 2009-12-11 04:39:09.000000000 +0900 ++++ src/filesystemwatcher.h 2009-12-17 00:41:29.000000000 +0900 +@@ -11,7 +11,7 @@ + #include + #include + #include +-#ifdef Q_WS_MAC ++#if defined(Q_WS_MAC) || defined(__FreeBSD__) + #include + #include + #else diff --git a/net-p2p/qbittorrent-23/files/patch-src__misc.cpp b/net-p2p/qbittorrent-23/files/patch-src__misc.cpp new file mode 100644 index 000000000000..e11469f46f79 --- /dev/null +++ b/net-p2p/qbittorrent-23/files/patch-src__misc.cpp @@ -0,0 +1,11 @@ +--- src/misc.cpp.orig 2010-03-20 12:38:21.000000000 -0700 ++++ src/misc.cpp 2010-04-04 22:13:02.000000000 -0700 +@@ -52,7 +52,7 @@ + #endif + + #ifndef Q_WS_WIN +-#ifdef Q_WS_MAC ++#if defined Q_WS_MAC || defined(__FreeBSD__) + #include + #include + #else diff --git a/net-p2p/qbittorrent-23/pkg-descr b/net-p2p/qbittorrent-23/pkg-descr new file mode 100644 index 000000000000..6c8a36048adb --- /dev/null +++ b/net-p2p/qbittorrent-23/pkg-descr @@ -0,0 +1,22 @@ +qBittorrent v2 is the closest open source (GNU GPL v2 license) equivalent +to utorrent. It is based on the Qt4 toolkit and libtorrent-rasterbar. + +Features: + + Well-integrated and extensible Search Engine + Simultaneous search in most famous BitTorrent search sites + Per-category-specific search requests (e.g. Books, Music, Movies) + All Bittorrent extensions + * DHT, Peer Exchange, Full encryption, Magnet URI + Remote control through a Web user interface + * Nearly identical to the regular UI, all in Ajax + Advanced control over trackers, peers and torrents + * Torrents queueing and prioritizing + * Torrent content selection and prioritizing + UPnP / NAT-PMP port forwarding support + Available in ~25 languages (Unicode support) + uTorrent spoofing to bypass private trackers whitelisting + Advanced RSS support with download filters (inc. regex) + IP Filtering (eMule and PeerGuardian compatible) + +WWW: http://www.qbittorrent.org/ diff --git a/net-p2p/qbittorrent-23/pkg-plist b/net-p2p/qbittorrent-23/pkg-plist new file mode 100644 index 000000000000..aeb2a48626fc --- /dev/null +++ b/net-p2p/qbittorrent-23/pkg-plist @@ -0,0 +1,38 @@ +bin/qbittorrent +share/applications/qBittorrent.desktop +share/icons/hicolor/128x128/apps/qbittorrent.png +share/icons/hicolor/16x16/apps/qbittorrent.png +share/icons/hicolor/192x192/apps/qbittorrent.png +share/icons/hicolor/22x22/apps/qbittorrent.png +share/icons/hicolor/24x24/apps/qbittorrent.png +share/icons/hicolor/32x32/apps/qbittorrent.png +share/icons/hicolor/36x36/apps/qbittorrent.png +share/icons/hicolor/48x48/apps/qbittorrent.png +share/icons/hicolor/64x64/apps/qbittorrent.png +share/icons/hicolor/72x72/apps/qbittorrent.png +share/icons/hicolor/96x96/apps/qbittorrent.png +@dirrmtry share/icons/hicolor/96x96/apps +@dirrmtry share/icons/hicolor/96x96 +@dirrmtry share/icons/hicolor/72x72/apps +@dirrmtry share/icons/hicolor/72x72 +@dirrmtry share/icons/hicolor/64x64/apps +@dirrmtry share/icons/hicolor/64x64 +@dirrmtry share/icons/hicolor/48x48/apps +@dirrmtry share/icons/hicolor/48x48 +@dirrmtry share/icons/hicolor/36x36/apps +@dirrmtry share/icons/hicolor/36x36 +@dirrmtry share/icons/hicolor/32x32/apps +@dirrmtry share/icons/hicolor/32x32 +@dirrmtry share/icons/hicolor/24x24/apps +@dirrmtry share/icons/hicolor/24x24 +@dirrmtry share/icons/hicolor/22x22/apps +@dirrmtry share/icons/hicolor/22x22 +@dirrmtry share/icons/hicolor/192x192/apps +@dirrmtry share/icons/hicolor/192x192 +@dirrmtry share/icons/hicolor/16x16/apps +@dirrmtry share/icons/hicolor/16x16 +@dirrmtry share/icons/hicolor/128x128/apps +@dirrmtry share/icons/hicolor/128x128 +@dirrmtry share/icons/hicolor +@dirrmtry share/icons +@dirrmtry share/applications