From a3ebb6ea783091e6ab04ae4f4f66e6a07736e348 Mon Sep 17 00:00:00 2001 From: mezz Date: Tue, 7 Aug 2007 01:27:09 +0000 Subject: No longer need to enable compact allocation by default. The libtorrent/src/storage.cpp doesn't know about how to check filesystem on FreeBSD yet, so instead always use sparse file without check on which filesystems that have sparse file support. Both UFS and UFS2 have sparse file support. Bump the PORTREVISION. --- net-p2p/deluge05/Makefile | 1 + .../files/patch-libtorrent_src_storage.cpp | 23 ++++++++++++++++++++++ net-p2p/deluge05/files/patch-src_pref.py | 11 ----------- 3 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 net-p2p/deluge05/files/patch-libtorrent_src_storage.cpp delete mode 100644 net-p2p/deluge05/files/patch-src_pref.py (limited to 'net-p2p/deluge05') diff --git a/net-p2p/deluge05/Makefile b/net-p2p/deluge05/Makefile index 862ec667ea86..01b605fd3420 100644 --- a/net-p2p/deluge05/Makefile +++ b/net-p2p/deluge05/Makefile @@ -7,6 +7,7 @@ PORTNAME= deluge PORTVERSION= 0.5.4 +PORTREVISION= 1 CATEGORIES= net-p2p python MASTER_SITES= http://download.deluge-torrent.org/tarball/${PORTVERSION}/ diff --git a/net-p2p/deluge05/files/patch-libtorrent_src_storage.cpp b/net-p2p/deluge05/files/patch-libtorrent_src_storage.cpp new file mode 100644 index 000000000000..04d0678a9a88 --- /dev/null +++ b/net-p2p/deluge05/files/patch-libtorrent_src_storage.cpp @@ -0,0 +1,23 @@ +--- libtorrent/src/storage.cpp.orig 2007-08-06 17:01:24.000000000 -0500 ++++ libtorrent/src/storage.cpp 2007-08-06 17:05:26.000000000 -0500 +@@ -981,7 +981,7 @@ + return true; + #endif + +-#if defined(__APPLE__) || defined(__linux__) ++#if defined(__APPLE__) || defined(__linux__) || defined(__FreeBSD__) + // find the last existing directory of the save path + fs::path query_path = p; + while (!query_path.empty() && !exists(query_path)) +@@ -1058,7 +1058,11 @@ + #endif + + // TODO: POSIX implementation ++#if defined(__FreeBSD__) ++ return true; ++#else + return false; ++#endif + } + + // -- piece_manager ----------------------------------------------------- diff --git a/net-p2p/deluge05/files/patch-src_pref.py b/net-p2p/deluge05/files/patch-src_pref.py deleted file mode 100644 index a84ed36a3ae9..000000000000 --- a/net-p2p/deluge05/files/patch-src_pref.py +++ /dev/null @@ -1,11 +0,0 @@ ---- src/pref.py.orig 2007-08-05 18:25:21.000000000 -0500 -+++ src/pref.py 2007-08-05 18:25:36.000000000 -0500 -@@ -108,7 +108,7 @@ - "tray_downloadspeedlist" : [5.0, 10.0, 30.0, 80.0, 300.0], - "tray_passwd" : "", - "tray_uploadspeedlist" : [5.0, 10.0, 30.0, 80.0, 300.0], -- "use_compact_storage" : False, -+ "use_compact_storage" : True, - "use_default_dir" : False, - "use_natpmp" : False, - "use_upnp" : False, -- cgit