summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net-p2p/btpeer/Makefile58
-rw-r--r--net-p2p/btpeer/distinfo2
-rw-r--r--net-p2p/btpeer/files/patch-Makefile17
-rw-r--r--net-p2p/btpeer/pkg-descr13
-rw-r--r--net/Makefile1
-rw-r--r--net/btpeer/Makefile58
-rw-r--r--net/btpeer/distinfo2
-rw-r--r--net/btpeer/files/patch-Makefile17
-rw-r--r--net/btpeer/pkg-descr13
9 files changed, 181 insertions, 0 deletions
diff --git a/net-p2p/btpeer/Makefile b/net-p2p/btpeer/Makefile
new file mode 100644
index 0000000..033ffd9
--- /dev/null
+++ b/net-p2p/btpeer/Makefile
@@ -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>
diff --git a/net-p2p/btpeer/distinfo b/net-p2p/btpeer/distinfo
new file mode 100644
index 0000000..65e46a1
--- /dev/null
+++ b/net-p2p/btpeer/distinfo
@@ -0,0 +1,2 @@
+MD5 (btpeer-0.2.1.tar.gz) = a38bbdcf36c55bdb18169ad5fc81d039
+SIZE (btpeer-0.2.1.tar.gz) = 42193
diff --git a/net-p2p/btpeer/files/patch-Makefile b/net-p2p/btpeer/files/patch-Makefile
new file mode 100644
index 0000000..ba3d5f0
--- /dev/null
+++ b/net-p2p/btpeer/files/patch-Makefile
@@ -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
diff --git a/net-p2p/btpeer/pkg-descr b/net-p2p/btpeer/pkg-descr
new file mode 100644
index 0000000..cadf1bf
--- /dev/null
+++ b/net-p2p/btpeer/pkg-descr
@@ -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
diff --git a/net/Makefile b/net/Makefile
index ebd765c..6375f23 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -59,6 +59,7 @@
SUBDIR += brutecopy
SUBDIR += bsdproxy
SUBDIR += bsflite
+ SUBDIR += btpeer
SUBDIR += btqueue
SUBDIR += c3270
SUBDIR += cacti
diff --git a/net/btpeer/Makefile b/net/btpeer/Makefile
new file mode 100644
index 0000000..033ffd9
--- /dev/null
+++ b/net/btpeer/Makefile
@@ -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>
diff --git a/net/btpeer/distinfo b/net/btpeer/distinfo
new file mode 100644
index 0000000..65e46a1
--- /dev/null
+++ b/net/btpeer/distinfo
@@ -0,0 +1,2 @@
+MD5 (btpeer-0.2.1.tar.gz) = a38bbdcf36c55bdb18169ad5fc81d039
+SIZE (btpeer-0.2.1.tar.gz) = 42193
diff --git a/net/btpeer/files/patch-Makefile b/net/btpeer/files/patch-Makefile
new file mode 100644
index 0000000..ba3d5f0
--- /dev/null
+++ b/net/btpeer/files/patch-Makefile
@@ -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
diff --git a/net/btpeer/pkg-descr b/net/btpeer/pkg-descr
new file mode 100644
index 0000000..cadf1bf
--- /dev/null
+++ b/net/btpeer/pkg-descr
@@ -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
OpenPOWER on IntegriCloud