Index: head/net-p2p/bnbt/Makefile =================================================================== --- head/net-p2p/bnbt/Makefile (revision 433099) +++ head/net-p2p/bnbt/Makefile (revision 433100) @@ -1,54 +1,54 @@ # Created by: Florent Thoumie # $FreeBSD$ PORTNAME= bnbt PORTVERSION= 8.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net-p2p MASTER_SITES= http://opensource.depthstrike.com/${PORTNAME}/ DISTNAME= ${SNAPSHOT}-${PORTNAME}${PORTVERSION:C/\.//}-src SNAPSHOT= 20060727 MAINTAINER= flz@FreeBSD.org COMMENT= C++ BitTorrent Tracker OPTIONS_DEFINE= MYSQL DOCS USES= dos2unix gmake tar:bzip2 SUB_FILES= pkg-message USE_RC_SUBR= bnbt PORTDOCS= footer.html header.html .include .if ${PORT_OPTIONS:MMYSQL} ALL_TARGET= bnbtmysql USE_MYSQL= yes .else ALL_TARGET= bnbt .endif post-patch: @${REINPLACE_CMD} -e 's|-O2|${CFLAGS} -I${PREFIX}/include| ; \ s|LFLAGS =|LFLAGS = -L${PREFIX}/lib/mysql| ; \ s|g++|${CXX}|' \ ${WRKSRC}/Makefile @${REINPLACE_CMD} -e 's|\([a-z]*\.bnbt\)|${PREFIX}/etc/${PORTNAME}/\1|' \ ${WRKSRC}/config.cpp @${REINPLACE_CMD} -e 's|bnbt.cfg|${PREFIX}/etc/${PORTNAME}/bnbt.cfg|' \ ${WRKSRC}/config.h ${WRKSRC}/config.cpp ${WRKSRC}/tracker.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${ALL_TARGET} ${STAGEDIR}${PREFIX}/bin/bnbt ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/$i ${STAGEDIR}${DOCSDIR} .endfor @${MKDIR} ${STAGEDIR}/var/log/${PORTNAME} ${TOUCH} ${STAGEDIR}/var/log/${PORTNAME}/.keep @${MKDIR} ${STAGEDIR}${ETCDIR} ${TOUCH} ${STAGEDIR}${ETCDIR}/.keep .include Index: head/net-p2p/bnbt/files/patch-base64.cpp =================================================================== --- head/net-p2p/bnbt/files/patch-base64.cpp (nonexistent) +++ head/net-p2p/bnbt/files/patch-base64.cpp (revision 433100) @@ -0,0 +1,26 @@ +--- base64.cpp.orig 2017-02-01 19:29:59 UTC ++++ base64.cpp +@@ -114,6 +114,7 @@ uchar pBase64[] = { + char *b64decode(const char *s) + { + int l = strlen(s); // Get length of Base64 string. ++ const char *p; // Separator position + char *b; // Decoding buffer pointers. + uchar c = 0; // Character to decode. + int x = 0; // General purpose integers. +@@ -126,12 +127,12 @@ char *b64decode(const char *s) + if (l % 4) // If it's not modulo 4, then it... + return b64isnot(NULL); // ...can't be a Base64 string. + +- if ((b = strchr(s, pPad[0])) != NULL) // Only one, two or three equal... ++ if ((p = strchr(s, pPad[0])) != NULL) // Only one, two or three equal... + { // ...'=' signs are allowed at... +- if ((b - s) < (l - 3)) // ...the end of the Base64 string. ++ if ((p - s) < (l - 3)) // ...the end of the Base64 string. + return b64isnot(NULL); // Any other equal '=' signs are... + else // ...invalid. +- if (strncmp(b, (const char *) pPad + 3 - (s + l - b), s + l - b)) ++ if (strncmp(p, (const char *) pPad + 3 - (s + l - p), s + l - p)) + return b64isnot(NULL); + } + Property changes on: head/net-p2p/bnbt/files/patch-base64.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