mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
New port btpeer version 0.2.1: Client functionality of bittorrent
protocol, network only environment
This commit is contained in:
parent
254a63deeb
commit
bbc2ad8e01
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=143551
58
net-p2p/btpeer/Makefile
Normal file
58
net-p2p/btpeer/Makefile
Normal file
@ -0,0 +1,58 @@
|
||||
# New ports collection makefile for: btpeer
|
||||
# Date created: Sun Sep 25 13:54:22 UTC 2005
|
||||
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= btpeer
|
||||
PORTVERSION= 0.2.1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.alhem.net/project/btpeer/
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
COMMENT= Client functionality of bittorrent protocol, network only environment
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libSockets-devel.a:${PORTSDIR}/net/Sockets-devel
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_OPENSSL= yes
|
||||
WITH_OPENSSL_BASE= yes
|
||||
MAKE_ENV= CXX="${CXX}"
|
||||
USE_REINPLACE= yes
|
||||
|
||||
# ssl support
|
||||
CFLAGS+= ${PTHREAD_CFLAGS} -DHAVE_OPENSSL
|
||||
|
||||
PROGRAM_FILES= \
|
||||
inject \
|
||||
newpeer
|
||||
|
||||
post-patch:
|
||||
# CXX safeness
|
||||
# CXXFLAGS safeness
|
||||
# SSL include safeness
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e 's|-O2||' \
|
||||
-e 's|g\+\+|${CXX}|' \
|
||||
-e 's|^INCLUDE.+$$|INCLUDE=-I${OPENSSLINC} -I${LOCALBASE}/include/Sockets-devel|' \
|
||||
-e 's|^LIBS.+$$|LIBS=-L${OPENSSLLIB} ${PTHREAD_LIBS} -L${LOCALBASE}/lib \\|' \
|
||||
${BUILD_WRKSRC}/${MAKEFILE}
|
||||
|
||||
do-install:
|
||||
.for file in ${PROGRAM_FILES}
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin/${PORTNAME}-${file}
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 500000
|
||||
IGNORE= FreeBSD prior to 500000 does not support uuid(3) required\
|
||||
for building
|
||||
.endif
|
||||
|
||||
.for file in ${PROGRAM_FILES}
|
||||
PLIST_FILES+= bin/${PORTNAME}-${file}
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
net-p2p/btpeer/distinfo
Normal file
2
net-p2p/btpeer/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (btpeer-0.2.1.tar.gz) = a38bbdcf36c55bdb18169ad5fc81d039
|
||||
SIZE (btpeer-0.2.1.tar.gz) = 42193
|
17
net-p2p/btpeer/files/patch-Makefile
Normal file
17
net-p2p/btpeer/files/patch-Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
--- Makefile.orig Sun Sep 11 04:27:32 2005
|
||||
+++ Makefile Sun Sep 25 17:54:42 2005
|
||||
@@ -1,11 +1,11 @@
|
||||
VERSION = 0.2.1
|
||||
|
||||
INCLUDE = -I/usr/local/include/Sockets
|
||||
-CFLAGS = -Wall -g -O2 $(INCLUDE) -MD `Sockets-config`
|
||||
+CFLAGS = -Wall -g -O2 $(INCLUDE) -MD `Sockets-devel-config`
|
||||
CPPFLAGS = $(CFLAGS)
|
||||
|
||||
-LIBS = -L/usr/local/lib -lSockets \
|
||||
- -lssl -lcrypto -luuid -lSocketsEx -lpthread
|
||||
+LIBS = -L/usr/local/lib -lSockets-devel \
|
||||
+ -lssl -lcrypto -lSockets-devel -lSocketsEx-devel
|
||||
|
||||
PROGS = newpeer inject
|
||||
# bstr
|
13
net-p2p/btpeer/pkg-descr
Normal file
13
net-p2p/btpeer/pkg-descr
Normal file
@ -0,0 +1,13 @@
|
||||
[ excerpt from developer's web site ]
|
||||
|
||||
This is a collection of classes implementing the core client
|
||||
functionality of the bittorrent protocol, in a network only
|
||||
environment. 'Network only' means that all interaction with the
|
||||
client core is done via network connections. Loading of metainfo
|
||||
files are done using a small program for file transfer into the
|
||||
client core ("inject"), status of the client is shown using a small
|
||||
internal web page server.
|
||||
|
||||
WWW: http://www.alhem.net/project/btpeer/index.html
|
||||
|
||||
-- lioux@FreeBSD.org
|
@ -59,6 +59,7 @@
|
||||
SUBDIR += brutecopy
|
||||
SUBDIR += bsdproxy
|
||||
SUBDIR += bsflite
|
||||
SUBDIR += btpeer
|
||||
SUBDIR += btqueue
|
||||
SUBDIR += c3270
|
||||
SUBDIR += cacti
|
||||
|
58
net/btpeer/Makefile
Normal file
58
net/btpeer/Makefile
Normal file
@ -0,0 +1,58 @@
|
||||
# New ports collection makefile for: btpeer
|
||||
# Date created: Sun Sep 25 13:54:22 UTC 2005
|
||||
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= btpeer
|
||||
PORTVERSION= 0.2.1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= http://www.alhem.net/project/btpeer/
|
||||
|
||||
MAINTAINER= lioux@FreeBSD.org
|
||||
COMMENT= Client functionality of bittorrent protocol, network only environment
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libSockets-devel.a:${PORTSDIR}/net/Sockets-devel
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_OPENSSL= yes
|
||||
WITH_OPENSSL_BASE= yes
|
||||
MAKE_ENV= CXX="${CXX}"
|
||||
USE_REINPLACE= yes
|
||||
|
||||
# ssl support
|
||||
CFLAGS+= ${PTHREAD_CFLAGS} -DHAVE_OPENSSL
|
||||
|
||||
PROGRAM_FILES= \
|
||||
inject \
|
||||
newpeer
|
||||
|
||||
post-patch:
|
||||
# CXX safeness
|
||||
# CXXFLAGS safeness
|
||||
# SSL include safeness
|
||||
@${REINPLACE_CMD} -E \
|
||||
-e 's|-O2||' \
|
||||
-e 's|g\+\+|${CXX}|' \
|
||||
-e 's|^INCLUDE.+$$|INCLUDE=-I${OPENSSLINC} -I${LOCALBASE}/include/Sockets-devel|' \
|
||||
-e 's|^LIBS.+$$|LIBS=-L${OPENSSLLIB} ${PTHREAD_LIBS} -L${LOCALBASE}/lib \\|' \
|
||||
${BUILD_WRKSRC}/${MAKEFILE}
|
||||
|
||||
do-install:
|
||||
.for file in ${PROGRAM_FILES}
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin/${PORTNAME}-${file}
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 500000
|
||||
IGNORE= FreeBSD prior to 500000 does not support uuid(3) required\
|
||||
for building
|
||||
.endif
|
||||
|
||||
.for file in ${PROGRAM_FILES}
|
||||
PLIST_FILES+= bin/${PORTNAME}-${file}
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
net/btpeer/distinfo
Normal file
2
net/btpeer/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (btpeer-0.2.1.tar.gz) = a38bbdcf36c55bdb18169ad5fc81d039
|
||||
SIZE (btpeer-0.2.1.tar.gz) = 42193
|
17
net/btpeer/files/patch-Makefile
Normal file
17
net/btpeer/files/patch-Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
--- Makefile.orig Sun Sep 11 04:27:32 2005
|
||||
+++ Makefile Sun Sep 25 17:54:42 2005
|
||||
@@ -1,11 +1,11 @@
|
||||
VERSION = 0.2.1
|
||||
|
||||
INCLUDE = -I/usr/local/include/Sockets
|
||||
-CFLAGS = -Wall -g -O2 $(INCLUDE) -MD `Sockets-config`
|
||||
+CFLAGS = -Wall -g -O2 $(INCLUDE) -MD `Sockets-devel-config`
|
||||
CPPFLAGS = $(CFLAGS)
|
||||
|
||||
-LIBS = -L/usr/local/lib -lSockets \
|
||||
- -lssl -lcrypto -luuid -lSocketsEx -lpthread
|
||||
+LIBS = -L/usr/local/lib -lSockets-devel \
|
||||
+ -lssl -lcrypto -lSockets-devel -lSocketsEx-devel
|
||||
|
||||
PROGS = newpeer inject
|
||||
# bstr
|
13
net/btpeer/pkg-descr
Normal file
13
net/btpeer/pkg-descr
Normal file
@ -0,0 +1,13 @@
|
||||
[ excerpt from developer's web site ]
|
||||
|
||||
This is a collection of classes implementing the core client
|
||||
functionality of the bittorrent protocol, in a network only
|
||||
environment. 'Network only' means that all interaction with the
|
||||
client core is done via network connections. Loading of metainfo
|
||||
files are done using a small program for file transfer into the
|
||||
client core ("inject"), status of the client is shown using a small
|
||||
internal web page server.
|
||||
|
||||
WWW: http://www.alhem.net/project/btpeer/index.html
|
||||
|
||||
-- lioux@FreeBSD.org
|
Loading…
Reference in New Issue
Block a user