View | Details | Raw Unified | Return to bug 231033 | Differences between
and this patch

Collapse All | Expand All

(-)net-p2p/libbt/Makefile (-17 / +15 lines)
Lines 2-25 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	libbt
4
PORTNAME=	libbt
5
PORTVERSION=	1.05
5
PORTVERSION=	1.06
6
PORTREVISION=	5
7
CATEGORIES=	net-p2p devel
6
CATEGORIES=	net-p2p devel
8
MASTER_SITES=	SF
7
MASTER_SITES=	SF
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
LICENSE=	GPLv2 LGPL21
10
LICENSE_COMB=	multi
11
12
MAINTAINER=	egypcio@googlemail.com
11
COMMENT=	C library implementing the core BitTorrent protocol
13
COMMENT=	C library implementing the core BitTorrent protocol
12
14
13
LIB_DEPENDS=	libcurl.so:ftp/curl
15
LIB_DEPENDS=	libcurl.so:ftp/curl
14
16
15
GNU_CONFIGURE=	yes
17
GNU_CONFIGURE=	yes
16
USES=		gmake
18
USES=		gmake localbase ssl
17
CPPFLAGS+=	-I${LOCALBASE}/include
18
LDFLAGS+=	-L${LOCALBASE}/lib
19
19
20
PORTDOCS=	protocol-ext.txt protocol.txt
20
PORTDOCS=	docs/protocol.txt docs/protocol-ext.txt \
21
		CHANGELOG CREDITS README
21
22
22
.include <bsd.port.options.mk>
23
OPTIONS_DEFINE=	DOCS
24
OPTIONS_SUB=	yes
23
25
24
post-patch:
26
post-patch:
25
	@${REINPLACE_CMD} -e 's|depend||' ${WRKSRC}/Makefile.in
27
	@${REINPLACE_CMD} -e 's|depend||' ${WRKSRC}/Makefile.in
Lines 29-43 Link Here
29
do-install:
31
do-install:
30
	${INSTALL_DATA} ${WRKSRC}/src/libbt.a ${STAGEDIR}${PREFIX}/lib
32
	${INSTALL_DATA} ${WRKSRC}/src/libbt.a ${STAGEDIR}${PREFIX}/lib
31
	${MKDIR} ${STAGEDIR}${PREFIX}/include/libbt
33
	${MKDIR} ${STAGEDIR}${PREFIX}/include/libbt
32
.for i in btcheck btget btlist
34
	(cd ${WRKSRC}/src ; ${INSTALL_PROGRAM} btcheck btget btlist ${STAGEDIR}${PREFIX}/bin)
33
	${INSTALL_PROGRAM} ${WRKSRC}/src/${i} ${STAGEDIR}${PREFIX}/bin
35
	(cd ${WRKSRC}/include ; ${INSTALL_DATA} *.h ${STAGEDIR}${PREFIX}/include/libbt)
34
.endfor
36
35
.for i in benc.h bitset.h bterror.h btmessage.h bts.h context.h peer.h random.h segmenter.h strbuf.h stream.h types.h util.h
37
do-install-DOCS-on:
36
	${INSTALL_DATA} ${WRKSRC}/include/${i} ${STAGEDIR}${PREFIX}/include/libbt
37
.endfor
38
	${MKDIR} ${STAGEDIR}${DOCSDIR}
38
	${MKDIR} ${STAGEDIR}${DOCSDIR}
39
.for i in ${PORTDOCS}
39
	(cd ${WRKSRC} ; ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
40
	${INSTALL_DATA} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR}
41
.endfor
42
40
43
.include <bsd.port.mk>
41
.include <bsd.port.mk>
(-)net-p2p/libbt/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (libbt-1.05.tar.gz) = d4d770120c7e5df6957b2b40e1edb6695106142360d5caac521b31a4c59fa1c7
1
TIMESTAMP = 1535654605
2
SIZE (libbt-1.05.tar.gz) = 322880
2
SHA256 (libbt-1.06.tar.gz) = 89f7887ef892158fec2691efaf26036dab2a239ab87881473ae405f2f2d13560
3
SIZE (libbt-1.06.tar.gz) = 334835
(-)net-p2p/libbt/files/patch-include__util.h (-6 / +15 lines)
Lines 1-6 Link Here
1
--- include/util.h	Fri Apr 16 08:41:48 2004
1
--- include/util.h.orig	2018-08-30 18:48:15 UTC
2
+++ include/util.h.new	Sun May 30 14:17:54 2004
2
+++ include/util.h
3
@@ -28,9 +28,4 @@
3
@@ -53,11 +53,15 @@
4
 	typedef void (*exitfn_ptr) (int,void*);
4
 	typedef void (*exitfn_ptr) (int,void*);
5
 	int on_exit( exitfn_ptr exitfn, void* data) ;
5
 	int on_exit( exitfn_ptr exitfn, void* data) ;
6
 #endif
6
 #endif
Lines 7-12 Link Here
7
-#define malloc(s) use_btmalloc_instead
7
-#define malloc(s) use_btmalloc_instead
8
-#define calloc(n,s) use_btcalloc_instead
8
-#define calloc(n,s) use_btcalloc_instead
9
-#define realloc(p,s) use_btrealloc_instead
9
-#define realloc(p,s) use_btrealloc_instead
10
-#define free(p) use_btfree_instead
10
+/*
11
-
11
+ #define malloc(s) use_btmalloc_instead
12
 #endif
12
+ #define calloc(n,s) use_btcalloc_instead
13
+ #define realloc(p,s) use_btrealloc_instead
14
+/*
15
 #undef free
16
+/*
17
 #define free(p) use_btfree_instead
18
+*/
19
 
20
 void hexdump( void *buf, int buflen);
21
 
(-)net-p2p/libbt/files/patch-src__udpproto.c (+11 lines)
Line 0 Link Here
1
--- src/udpproto.c.orig	2018-08-30 18:56:26 UTC
2
+++ src/udpproto.c
3
@@ -4,7 +4,7 @@
4
 #include <string.h>
5
 #include <stdlib.h>
6
 #include <unistd.h>
7
-
8
+#include <limits.h>
9
 #include <arpa/inet.h>
10
 
11
 #include "udpproto.h"
(-)net-p2p/libbt/pkg-plist (+8 lines)
Lines 6-17 Link Here
6
include/libbt/bterror.h
6
include/libbt/bterror.h
7
include/libbt/btmessage.h
7
include/libbt/btmessage.h
8
include/libbt/bts.h
8
include/libbt/bts.h
9
include/libbt/config.h
9
include/libbt/context.h
10
include/libbt/context.h
10
include/libbt/peer.h
11
include/libbt/peer.h
12
include/libbt/peerexchange.h
11
include/libbt/random.h
13
include/libbt/random.h
12
include/libbt/segmenter.h
14
include/libbt/segmenter.h
13
include/libbt/strbuf.h
15
include/libbt/strbuf.h
14
include/libbt/stream.h
16
include/libbt/stream.h
15
include/libbt/types.h
17
include/libbt/types.h
18
include/libbt/udpproto.h
16
include/libbt/util.h
19
include/libbt/util.h
17
lib/libbt.a
20
lib/libbt.a
21
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
22
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
23
%%PORTDOCS%%%%DOCSDIR%%/README
24
%%PORTDOCS%%%%DOCSDIR%%/protocol-ext.txt
25
%%PORTDOCS%%%%DOCSDIR%%/protocol.txt

Return to bug 231033