aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/rtorrent
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2007-12-19 06:08:56 +0800
committerflz <flz@FreeBSD.org>2007-12-19 06:08:56 +0800
commit904c46da9712af0ba5bb4147f5797cdc16c27f91 (patch)
tree3d05e80ca83a83db62e4918349f4e02e60d6cde3 /net-p2p/rtorrent
parent4892ec50fcd7cd63bad7fe5c2ea1c47e0fc05f97 (diff)
downloadfreebsd-ports-graphics-904c46da9712af0ba5bb4147f5797cdc16c27f91.tar.gz
freebsd-ports-graphics-904c46da9712af0ba5bb4147f5797cdc16c27f91.tar.zst
freebsd-ports-graphics-904c46da9712af0ba5bb4147f5797cdc16c27f91.zip
- OPTIONS'ify.
- Add support for XMLRPC (default: on).
Diffstat (limited to 'net-p2p/rtorrent')
-rw-r--r--net-p2p/rtorrent/Makefile16
-rw-r--r--net-p2p/rtorrent/files/patch-src_command__network.cc23
2 files changed, 31 insertions, 8 deletions
diff --git a/net-p2p/rtorrent/Makefile b/net-p2p/rtorrent/Makefile
index 3264b034a67..009d234da25 100644
--- a/net-p2p/rtorrent/Makefile
+++ b/net-p2p/rtorrent/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= rtorrent
PORTVERSION?= 0.7.9
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= net-p2p
MASTER_SITES= http://libtorrent.rakshasa.no/downloads/ \
${MASTER_SITE_LOCAL}
@@ -36,16 +36,16 @@ SUB_FILES= pkg-message
PORTDOCS= README
-#OPTIONS= XMLRPC "Compile with xmlrpc-c support" on
+OPTIONS= XMLRPC "Compile with xmlrpc-c support" on
.include <bsd.port.pre.mk>
-#.if !defined(WITHOUT_XMLRPC)
-#CONFIGURE_ARGS+= --with-xmlrpc-c
-#LIB_DEPENDS+= xmlrpc.7:${PORTSDIR}/net/xmlrpc-c
-#.else
-#CONFIGURE_ARGS+= --with-xmlrpc-c=no
-#.endif
+.if !defined(WITHOUT_XMLRPC)
+CONFIGURE_ARGS+= --with-xmlrpc-c
+LIB_DEPENDS+= xmlrpc.9:${PORTSDIR}/net/xmlrpc-c
+.else
+CONFIGURE_ARGS+= --with-xmlrpc-c=no
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/configure
diff --git a/net-p2p/rtorrent/files/patch-src_command__network.cc b/net-p2p/rtorrent/files/patch-src_command__network.cc
new file mode 100644
index 00000000000..3fd848ae4e7
--- /dev/null
+++ b/net-p2p/rtorrent/files/patch-src_command__network.cc
@@ -0,0 +1,23 @@
+--- src/command_network.cc.orig 2007-12-18 21:13:53.000000000 +0000
++++ src/command_network.cc 2007-12-18 21:14:26.000000000 +0000
+@@ -224,6 +224,8 @@
+ saPtr->set_port(port);
+ control->scgi()->open_port(saPtr, saPtr->length(), rpc::call_command_value("get_scgi_dont_route"));
+
++ rak::address_info::free_address_info(ai);
++
+ break;
+
+ case 2:
+@@ -232,10 +234,8 @@
+ break;
+ }
+
+- rak::address_info::free_address_info(ai);
+-
+ } catch (torrent::local_error& e) {
+- rak::address_info::free_address_info(ai);
++ //rak::address_info::free_address_info(ai);
+
+ throw torrent::input_error(e.what());
+ }