[Midnightbsd-cvs] mports: net-p2p/rtorrent: 0.7.9

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Sep 13 20:30:14 EDT 2008


Log Message:
-----------
0.7.9

Modified Files:
--------------
    mports/net-p2p/rtorrent:
        Makefile (r1.3 -> r1.4)
        distinfo (r1.2 -> r1.3)

Added Files:
-----------
    mports/net-p2p/rtorrent/files:
        patch-src_command__network.cc (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/net-p2p/rtorrent/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -L net-p2p/rtorrent/Makefile -L net-p2p/rtorrent/Makefile -u -r1.3 -r1.4
--- net-p2p/rtorrent/Makefile
+++ net-p2p/rtorrent/Makefile
@@ -7,10 +7,11 @@
 #
 
 PORTNAME?=	rtorrent
-PORTVERSION?=	0.7.4
-PORTREVISION?=	0
+PORTVERSION?=	0.7.9
 CATEGORIES=	net-p2p
-MASTER_SITES=	http://libtorrent.rakshasa.no/downloads/
+MASTER_SITES=	http://libtorrent.rakshasa.no/downloads/ \
+		${MASTER_SITE_FREEBSD_LOCAL}
+MASTER_SITE_SUBDIR=	flz/rtorrent/
 
 MAINTAINER?=	ports at MidnightBSD.org
 COMMENT?=	BitTorrent Client written in C++
@@ -24,7 +25,6 @@
 
 MAN1=		rtorrent.1
 
-USE_GCC=	3.4+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-debug
 CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd6.0
@@ -33,13 +33,26 @@
 
 PORTDOCS=	README
 
+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.9:${PORTSDIR}/net/xmlrpc-c
+.else
+CONFIGURE_ARGS+=	--with-xmlrpc-c=no
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|-O3|${CFLAGS}|' ${WRKSRC}/configure
 
 post-install:
+.if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}/
+.endif
 	${MKDIR} ${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/doc/rtorrent.rc ${EXAMPLESDIR}/
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
Index: distinfo
===================================================================
RCS file: /home/cvs/mports/net-p2p/rtorrent/distinfo,v
retrieving revision 1.2
retrieving revision 1.3
diff -L net-p2p/rtorrent/distinfo -L net-p2p/rtorrent/distinfo -u -r1.2 -r1.3
--- net-p2p/rtorrent/distinfo
+++ net-p2p/rtorrent/distinfo
@@ -1,3 +1,3 @@
-MD5 (rtorrent-0.7.4.tar.gz) = 6a846c129c1b3d0d08478faa4c3d8339
-SHA256 (rtorrent-0.7.4.tar.gz) = f028656bda47ab061ca2a723aebf511a44329f40f1fd7cf995b5fefdc992b876
-SIZE (rtorrent-0.7.4.tar.gz) = 451415
+MD5 (rtorrent-0.7.9.tar.gz) = 136202fdd540a92aafbcee29f849d228
+SHA256 (rtorrent-0.7.9.tar.gz) = f06f72b1fec94177147b1db0aab15be4f62d1b0354811a67ae74e0cd1e50a119
+SIZE (rtorrent-0.7.9.tar.gz) = 489174
--- /dev/null
+++ 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());
+   }


More information about the Midnightbsd-cvs mailing list