aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-03-31 15:32:20 +0800
committerijliao <ijliao@FreeBSD.org>2001-03-31 15:32:20 +0800
commit6ebc5b4f9516e389109a83188497dd704446e8ab (patch)
tree4ab0da7c26870abcd9c9686c1f15d9c0f6a64fff /net-p2p
parente0a7dc43dc13b08bbb93f05712afb58c2c80fa69 (diff)
downloadfreebsd-ports-gnome-6ebc5b4f9516e389109a83188497dd704446e8ab.tar.gz
freebsd-ports-gnome-6ebc5b4f9516e389109a83188497dd704446e8ab.tar.zst
freebsd-ports-gnome-6ebc5b4f9516e389109a83188497dd704446e8ab.zip
add libfreenet
Freenet library written in C
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/libfreenet/Makefile25
-rw-r--r--net-p2p/libfreenet/distinfo1
-rw-r--r--net-p2p/libfreenet/files/patch-client_util.c19
-rw-r--r--net-p2p/libfreenet/files/patch-protocol.c19
-rw-r--r--net-p2p/libfreenet/files/patch-testclient.c10
-rw-r--r--net-p2p/libfreenet/pkg-comment1
-rw-r--r--net-p2p/libfreenet/pkg-descr6
-rw-r--r--net-p2p/libfreenet/pkg-plist16
8 files changed, 97 insertions, 0 deletions
diff --git a/net-p2p/libfreenet/Makefile b/net-p2p/libfreenet/Makefile
new file mode 100644
index 000000000000..b236312a8476
--- /dev/null
+++ b/net-p2p/libfreenet/Makefile
@@ -0,0 +1,25 @@
+# ex:ts=8
+# New ports collection makefile for: libfreenet
+# Date created: Mar 31, 2001
+# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libfreenet
+PORTVERSION= 0.3.0
+CATEGORIES= net
+MASTER_SITES= http://thalassocracy.org/libfreenet/
+
+MAINTAINER= ijliao@FreeBSD.org
+
+USE_OPENSSL= yes
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --includedir=${PREFIX}/include/libfreenet
+
+USE_GMAKE= yes
+
+INSTALLS_SHLIB= yes
+
+.include <bsd.port.mk>
diff --git a/net-p2p/libfreenet/distinfo b/net-p2p/libfreenet/distinfo
new file mode 100644
index 000000000000..6d5d3cd6ab36
--- /dev/null
+++ b/net-p2p/libfreenet/distinfo
@@ -0,0 +1 @@
+MD5 (libfreenet-0.3.0.tar.gz) = fa474ed2ca43acd759fdefebf636b855
diff --git a/net-p2p/libfreenet/files/patch-client_util.c b/net-p2p/libfreenet/files/patch-client_util.c
new file mode 100644
index 000000000000..d6a08a6655b4
--- /dev/null
+++ b/net-p2p/libfreenet/files/patch-client_util.c
@@ -0,0 +1,19 @@
+--- client_util.c.orig Wed Mar 28 19:27:38 2001
++++ client_util.c Sat Mar 31 15:07:59 2001
+@@ -60,13 +60,14 @@
+
+ int timediff ()
+ {
++ struct tm *tmp;
+ long t = time(NULL);
+
+ /* We are calling localtime here for its side-effect of setting
+ the timezone global appropriately. I have no proof that this
+ even happens on cygwin. Please, just let me die. */
+- localtime(&t);
+- return (FN_TIMEZONE / 3600);
++ tmp = localtime(&t);
++ return (tmp->tm_gmtoff / 3600);
+ }
+
+
diff --git a/net-p2p/libfreenet/files/patch-protocol.c b/net-p2p/libfreenet/files/patch-protocol.c
new file mode 100644
index 000000000000..59fed2289318
--- /dev/null
+++ b/net-p2p/libfreenet/files/patch-protocol.c
@@ -0,0 +1,19 @@
+--- protocol.c.orig Thu Mar 22 13:27:34 2001
++++ protocol.c Sat Mar 31 15:14:32 2001
+@@ -17,6 +17,8 @@
+ */
+ #include <stdio.h>
+ #include <malloc.h>
++#include <sys/types.h>
++#include <netinet/in.h>
+ #include <sys/socket.h>
+ #include <netdb.h>
+ #include <string.h>
+@@ -24,7 +26,6 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+-#include <sys/types.h>
+ #include <ctype.h>
+ #include <time.h>
+
diff --git a/net-p2p/libfreenet/files/patch-testclient.c b/net-p2p/libfreenet/files/patch-testclient.c
new file mode 100644
index 000000000000..08a080bc7ce6
--- /dev/null
+++ b/net-p2p/libfreenet/files/patch-testclient.c
@@ -0,0 +1,10 @@
+--- testclient.c.orig Sat Mar 31 15:17:15 2001
++++ testclient.c Sat Mar 31 15:17:24 2001
+@@ -20,7 +20,6 @@
+ #include <string.h>
+ #include <time.h>
+ #include <unistd.h>
+-#include <getopt.h>
+
+ #include "protocol.h"
+ #include "client.h"
diff --git a/net-p2p/libfreenet/pkg-comment b/net-p2p/libfreenet/pkg-comment
new file mode 100644
index 000000000000..a400869f7afa
--- /dev/null
+++ b/net-p2p/libfreenet/pkg-comment
@@ -0,0 +1 @@
+Freenet library written in C
diff --git a/net-p2p/libfreenet/pkg-descr b/net-p2p/libfreenet/pkg-descr
new file mode 100644
index 000000000000..0c647d2ec4f1
--- /dev/null
+++ b/net-p2p/libfreenet/pkg-descr
@@ -0,0 +1,6 @@
+libfreenet is a Freenet library written in C. Right now it supports basic
+client functionality, as well as a lower-level API for sending and
+receiving messages over a Freenet connection. It's currently very much
+hackerware -- it might explode at any moment, so approach it with caution.
+
+WWW: http://thalassocracy.org/libfreenet/
diff --git a/net-p2p/libfreenet/pkg-plist b/net-p2p/libfreenet/pkg-plist
new file mode 100644
index 000000000000..40143b8a9558
--- /dev/null
+++ b/net-p2p/libfreenet/pkg-plist
@@ -0,0 +1,16 @@
+bin/testclient
+bin/testserver
+include/libfreenet/base64.h
+include/libfreenet/client.h
+include/libfreenet/client_util.h
+include/libfreenet/config.h
+include/libfreenet/endtoend.h
+include/libfreenet/protocol.h
+include/libfreenet/rijndael-alg-fst.h
+include/libfreenet/rijndael-api-fst.h
+include/libfreenet/twofish.h
+include/libfreenet/uri.h
+include/libfreenet/util.h
+lib/libfreenet.a
+lib/libfreenet.so
+lib/libfreenet.so.0