Index: head/net-p2p/ctorrent/Makefile =================================================================== --- head/net-p2p/ctorrent/Makefile (revision 540384) +++ head/net-p2p/ctorrent/Makefile (revision 540385) @@ -1,33 +1,33 @@ # Created by: Florent Thoumie # $FreeBSD$ PORTNAME= ctorrent PORTVERSION= 3.3.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= net-p2p MASTER_SITES= SF/dtorrent/dtorrent/${PORTVERSION} \ http://www.rahul.net/dholmes/ctorrent/ DISTNAME= ${PORTNAME}-dnh${PORTVERSION} MAINTAINER= dinoex@FreeBSD.org COMMENT= BitTorrent Client written in C for FreeBSD and Linux LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING USES= ssl GNU_CONFIGURE= yes PLIST_FILES= bin/ctorrent PORTDOCS= README-DNH.TXT UserGuide OPTIONS_DEFINE= DOCS post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR}/ .endfor .include Index: head/net-p2p/ctorrent/files/patch-btcontent.cpp =================================================================== --- head/net-p2p/ctorrent/files/patch-btcontent.cpp (nonexistent) +++ head/net-p2p/ctorrent/files/patch-btcontent.cpp (revision 540385) @@ -0,0 +1,25 @@ +--- btcontent.cpp.orig 2008-06-15 00:00:19 UTC ++++ btcontent.cpp +@@ -283,11 +283,12 @@ int btContent::InitialFromMI(const char *metainfo_fnam + if ( !b ) return -1; + + // announce +- if( !meta_str("announce",&s,&r) ) ERR_RETURN(); ++ if( meta_str("announce",&s,&r) ) { + if( r > MAXPATHLEN ) ERR_RETURN(); + m_announce = new char [r + 1]; + memcpy(m_announce, s, r); + m_announce[r] = '\0'; ++ } + + // announce-list + if( r = meta_pos("announce-list") ){ +@@ -303,7 +304,7 @@ int btContent::InitialFromMI(const char *metainfo_fnam + if( !(q = buf_str(b+r, alend-r, &sptr, &slen)) ) + break; // next list + r += q; +- if( strncasecmp(m_announce, sptr, slen) ){ ++ if( !m_announce || strncasecmp(m_announce, sptr, slen) ){ + m_announcelist[n] = new char[slen+1]; + memcpy(m_announcelist[n], sptr, slen); + (m_announcelist[n])[slen] = '\0'; Property changes on: head/net-p2p/ctorrent/files/patch-btcontent.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/ctorrent/files/patch-empty-path =================================================================== --- head/net-p2p/ctorrent/files/patch-empty-path (nonexistent) +++ head/net-p2p/ctorrent/files/patch-empty-path (revision 540385) @@ -0,0 +1,12 @@ +--- bencode.cpp.orig ++++ bencode.cpp +@@ -258,7 +258,8 @@ + n -= r; + if( 'e' == *pb ) break; + if( pathname >= endmax ) return 0; +- *pathname++ = PATH_SP; ++ if (q) ++ *pathname++ = PATH_SP; + } + *pathname = '\0'; + return (pb - b + 1); Property changes on: head/net-p2p/ctorrent/files/patch-empty-path ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net-p2p/ctorrent/files/patch-peer.cpp =================================================================== --- head/net-p2p/ctorrent/files/patch-peer.cpp (nonexistent) +++ head/net-p2p/ctorrent/files/patch-peer.cpp (revision 540385) @@ -0,0 +1,12 @@ +--- peer.cpp.orig 2008-06-15 00:00:19 UTC ++++ peer.cpp +@@ -66,7 +66,8 @@ int btBasic::IpEquiv(struct sockaddr_in addr) + // CONSOLE.Debug_n("IpEquiv: %s <=> ", inet_ntoa(m_sin.sin_addr)); + // CONSOLE.Debug_n("%s", inet_ntoa(addr.sin_addr)); + // CONSOLE.Debug_n(""); +- return (memcmp(&m_sin.sin_addr,&addr.sin_addr,sizeof(struct in_addr)) == 0) ? ++ return ((memcmp(&m_sin.sin_addr,&addr.sin_addr,sizeof(struct in_addr)) == 0) ++ && m_sin.sin_port == addr.sin_port) ? + 1 : 0; + } + Property changes on: head/net-p2p/ctorrent/files/patch-peer.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property