2013-05-09 16:28:25 +02:00
|
|
|
# $NetBSD: Makefile,v 1.54 2013/05/09 14:28:25 joerg Exp $
|
2005-07-23 00:28:08 +02:00
|
|
|
|
2012-05-16 19:42:37 +02:00
|
|
|
DISTNAME= rtorrent-0.9.2
|
2013-02-07 00:20:50 +01:00
|
|
|
PKGREVISION= 2
|
2005-07-23 00:28:08 +02:00
|
|
|
CATEGORIES= net
|
Update "libtorrent" package to version 0.11.4 and "rtorrent" package
to version 0.7.4. Changes since versions 0.11.1 and 0.7.1 respectively:
- Added "max_open_http" option that limits the max number of simultaneous
http connections. By default set to 32.
- Directory structured view of the file list. The '/' key collapses
directories, while the right arrow or ^F enters the selected directory.
Changing the priority for a directory changes all contained files.
- Added "create_link" and "delete_link" options which apply to a download.
These must be used with the new "on_*" options, so as to allow you to
create symbolic links when starting, stopping, finishing, etc, a torrent.
- The "tos" option was parsing the hex value with unit == 0, which caused
it to always zero it.
- Forgot to check if there were any torrents hashing before starting new
non-fast-resume checks, which would cause multiple torrents to be hashed
at once.
- File progress is now updated when hash_check is called, and no longer
cleared on close. This fixes a bug with >100% file progress being reported
and optimizes file progress updating for completed torrents.
- Disabled IPv6 http requests so the trackers won't think we support it,
and enabled curl's support for gzip encodings.
- Added 'seeding' view on key 8.
- Added "max_{up,down}loads_{div,global}" options. See the man page for
more information.
- Added support for dvorak keyboard layout. Patch by matled at gmx.net.
- The STOPPED request was being canceled when a download was closed with
f.ex ^K, moved it so it only happens when the download is removed.
- Allow properly quoted and escaped arguments to options. F.ex "schedule
= wd,10,10,load_start=~/Foo\ Bar/*.torrent" and "schedule =
wd,10,10,load_start="~/Foo Bar/*.torrent"" now works.
- Added unlimited setting for max unchoked in ChokeManager and made it
the default. Set with 0 as a temporary hack.
- Don't resize empty files used for creating directories.
2007-04-20 15:37:57 +02:00
|
|
|
MASTER_SITES= ${HOMEPAGE:=downloads/}
|
2005-07-23 00:28:08 +02:00
|
|
|
|
2008-05-25 22:49:39 +02:00
|
|
|
OWNER= tron@NetBSD.org
|
2005-07-23 00:28:08 +02:00
|
|
|
HOMEPAGE= http://libtorrent.rakshasa.no/
|
|
|
|
COMMENT= Ncurses based torrent client with support for sessions
|
2009-04-10 11:06:20 +02:00
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
|
2006-07-22 06:46:13 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2005-07-23 00:28:08 +02:00
|
|
|
USE_LIBTOOL= yes
|
2011-08-01 15:12:38 +02:00
|
|
|
USE_NCURSES= yes # chgat
|
2006-06-07 15:03:01 +02:00
|
|
|
USE_TOOLS+= gmake pkg-config
|
2005-07-23 00:28:08 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2011-11-07 14:10:31 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${MACHINE_ARCH} == "alpha" || \
|
|
|
|
${MACHINE_ARCH} == "i386" || \
|
2012-01-11 23:41:46 +01:00
|
|
|
${MACHINE_ARCH} == "powerpc" || \
|
2011-11-07 14:10:31 +01:00
|
|
|
${MACHINE_ARCH} == "x86_64"
|
2012-01-11 23:41:46 +01:00
|
|
|
GCC_REQD+= 4.1.3
|
2011-11-07 14:10:31 +01:00
|
|
|
.else
|
|
|
|
GCC_REQD+= 4.2.1
|
|
|
|
.endif
|
|
|
|
|
Update "libtorrent" package to version 0.12.9 and "rtorrent" package
to version 0.8.9. Changes since version 0.12.6 respectively 0.8.6:
- Added multithreading support for XMLRPC calls. Sponsored by Xirvik.
- Discard dht cache if it is corrupt, instead of killing rtorrent.
- Better handling of resume after crash/reboot alliviating the need to
full hash checks. Sponsored by anonymous source.
- Added support for Linux's fallocate and Darwin's
fcntl(...,F_PREALLOCATE,...) to preallocate files by default. The
'system.file_allocate' setting will now only be used to indicate you
want posix_fallocate called, which may block while it zeros out the
file manually.
- Added 'event.download.hash_failed' and 'event.download.hash_final_failed'.
- Cleaning up command names. The deprecated commands will be redirected.
- Renamed 'system.method.*' to 'method.*'.
- Added 'system.files.{opened,closed,failed}_counter' commands.
- Added xmlrpc calls for peer snubbed, banned and disconnect.
- Added '-D' flag which turns of redirects for deprecated commands.
Use this to ensure your scripts/webui's will be compatible with future
releases.
- Added separate '-I' and '-K' switches for command redirects, the
former is for testing rtorrent code, the latter for webui's.
- Added a static_map implementation based on Josef's patches.
- Commited the DHT changes from dht-pex-static_map.diff with changes
so it works with the modified static_map implementation.
- Applied the magnet-uri patch.
- Don't install the out-of-date man page.
- Added 'execute.*.bg' commands for non-blocking calls. Always returns 0.
- Added support for prioritizing first/last chunk of files matching
specified patterns. Default:
file.prioritize_toc.set=0
file.prioritize_toc.first.set = {*.avi,*.mp4,*.mkv,*.gz}
file.prioritize_toc.last.set = {*.zip}
- Added 'method.rlookup' and 'method.rlookup.clear' commands for looking
up the event handlers holding a specified key, and set views to support
rlookup.
- Added 'd.timestamp.finished' that is set when a downloading torrent
completes. For torrents that only seed it remains '0'.
- Added 'elapsed.{less,greater}' for checking the time elapsed since a
time is less/greater, and it also returns false in all cases where
the time is '0'.
- Moved the default value for 'system.files.max_size' to rtorrent, and
set the default in libtorrent to ~0.
- Increased the default values for min/max_peers and max_uploads.
- Fixed a bug that would cause hash checking to block excessively in some
cases.
- Fixed a bug when setting the pex flags.
- Fixed an issue where DHT's hashing function for TR1 unordered_map was
casting unaligned size_t pointers.
- Fixed default session name.
- Added a missing inline that could cause linking errors.
2011-07-30 19:06:33 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
LDFLAGS+= ${PTHREAD_LDFLAGS}
|
|
|
|
|
2011-07-29 01:14:46 +02:00
|
|
|
.include "options.mk"
|
2006-01-30 01:52:28 +01:00
|
|
|
|
2011-07-29 01:14:46 +02:00
|
|
|
# See http://libtorrent.rakshasa.no/ticket/77
|
2006-01-30 01:52:28 +01:00
|
|
|
.include "../../mk/compiler.mk"
|
2011-07-29 01:14:46 +02:00
|
|
|
.if !empty(CC_VERSION:Mgcc-4.0.*)
|
2006-01-30 01:52:28 +01:00
|
|
|
CXXFLAGS+= -fpermissive -fno-strength-reduce -fno-thread-jumps \
|
|
|
|
-fno-inline -fforce-addr
|
|
|
|
.endif
|
|
|
|
|
2011-09-29 18:53:14 +02:00
|
|
|
.if !empty(CC_VERSION:Mgcc-*) && !empty(MACHINE_ARCH:Mi?86)
|
|
|
|
CXXFLAGS+= -march=i486
|
|
|
|
.endif
|
|
|
|
|
2013-05-09 16:28:25 +02:00
|
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
|
|
CXXFLAGS+= -std=c++11
|
|
|
|
.endif
|
|
|
|
|
2012-03-07 01:19:08 +01:00
|
|
|
INSTALLATION_DIRS= share/examples/rtorrent
|
2006-11-05 18:31:09 +01:00
|
|
|
|
2005-07-23 00:28:08 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc \
|
2006-11-05 18:31:09 +01:00
|
|
|
${DESTDIR}${PREFIX}/share/examples/rtorrent
|
2005-07-23 00:28:08 +02:00
|
|
|
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
|
|
.include "../../net/libtorrent/buildlink3.mk"
|
|
|
|
.include "../../www/curl/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|