diff options
author | stas <stas@FreeBSD.org> | 2006-09-24 04:03:11 +0800 |
---|---|---|
committer | stas <stas@FreeBSD.org> | 2006-09-24 04:03:11 +0800 |
commit | adb62140b516263b1bb0a39d814d77a59a7f32f5 (patch) | |
tree | 10e7d01bdf0bbe05b2b0b9bf2dfaf0ed1c0de9ee | |
parent | d51c0c2bfe5f5cc876a7e5feaeedae0b9b7dde94 (diff) | |
download | freebsd-ports-gnome-adb62140b516263b1bb0a39d814d77a59a7f32f5.tar.gz freebsd-ports-gnome-adb62140b516263b1bb0a39d814d77a59a7f32f5.tar.zst freebsd-ports-gnome-adb62140b516263b1bb0a39d814d77a59a7f32f5.zip |
- Add port for net/enet
ENet's purpose is to provide a relatively thin, simple and robust network
communication layer on top of UDP (User Datagram Protocol). The primary feature
it provides is optional reliable, in-order delivery of packets.
Author: Lee Salzman
WWW: http://enet.cubik.org
Approved by: sem (mentor)
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/enet/Makefile | 27 | ||||
-rw-r--r-- | net/enet/distinfo | 3 | ||||
-rw-r--r-- | net/enet/files/patch-unix.c | 20 | ||||
-rw-r--r-- | net/enet/pkg-descr | 10 | ||||
-rw-r--r-- | net/enet/pkg-plist | 18 |
6 files changed, 79 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index dc66614b1d63..4ff1f1aa36fb 100644 --- a/net/Makefile +++ b/net/Makefile @@ -112,6 +112,7 @@ SUBDIR += echoping SUBDIR += ekiga SUBDIR += empty + SUBDIR += enet SUBDIR += entitymib SUBDIR += erlang_xmlrpc SUBDIR += etherboot diff --git a/net/enet/Makefile b/net/enet/Makefile new file mode 100644 index 000000000000..25b5c65ce3c5 --- /dev/null +++ b/net/enet/Makefile @@ -0,0 +1,27 @@ +# New ports collection makefile for: enet +# Date created: 2006-09-23 +# Whom: Stanislav Sedov <stas@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= enet +PORTVERSION= 20040118 +CATEGORIES= net +MASTER_SITES= http://enet.cubik.org/download/ +DISTNAME= ${PORTNAME} + +MAINTAINER= stas@FreeBSD.org +COMMENT= Simple and robust communication library based on UDP + +GNU_CONFIGURE= yes +DOCS= api.txt tutorial.txt design.txt docs/FAQ.dox docs/design.dox \ + docs/tutorial.dox + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ +.endif + +.include <bsd.port.mk> diff --git a/net/enet/distinfo b/net/enet/distinfo new file mode 100644 index 000000000000..1a3f3493864a --- /dev/null +++ b/net/enet/distinfo @@ -0,0 +1,3 @@ +MD5 (enet.tar.gz) = c25a7b398ba4681e942f0ede266a24e5 +SHA256 (enet.tar.gz) = 5e8c3ebe7052d0c774cbddfc5f2a60054b41251f9d0d53ec2b3008e40ca8e84d +SIZE (enet.tar.gz) = 122587 diff --git a/net/enet/files/patch-unix.c b/net/enet/files/patch-unix.c new file mode 100644 index 000000000000..3a6ba8e4a705 --- /dev/null +++ b/net/enet/files/patch-unix.c @@ -0,0 +1,20 @@ +--- unix.c.orig Sat Sep 23 22:34:14 2006 ++++ unix.c Sat Sep 23 22:34:51 2006 +@@ -71,7 +71,7 @@ + char buffer [2048]; + int errnum; + +-#ifdef linux ++#if defined(linux) || defined(__FreeBSD__) + gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); + #else + hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum); +@@ -101,7 +101,7 @@ + + in.s_addr = address -> host; + +-#ifdef linux ++#if defined(linux) || defined(__FreeBSD__) + gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); + #else + hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum); diff --git a/net/enet/pkg-descr b/net/enet/pkg-descr new file mode 100644 index 000000000000..0e64002e385a --- /dev/null +++ b/net/enet/pkg-descr @@ -0,0 +1,10 @@ +ENet's purpose is to provide a relatively thin, simple and robust network +communication layer on top of UDP (User Datagram Protocol). The primary feature +it provides is optional reliable, in-order delivery of packets. + +ENet is NOT intended to be a general purpose high level networking library that +handles authentication, lobbying, server discovery, compression, encryption and +other high level, often application level or dependent tasks. + +Author: Lee Salzman +WWW: http://enet.cubik.org diff --git a/net/enet/pkg-plist b/net/enet/pkg-plist new file mode 100644 index 000000000000..6f7b4cbb9166 --- /dev/null +++ b/net/enet/pkg-plist @@ -0,0 +1,18 @@ +include/enet/enet.h +include/enet/list.h +include/enet/memory.h +include/enet/protocol.h +include/enet/time.h +include/enet/types.h +include/enet/unix.h +include/enet/utility.h +include/enet/win32.h +lib/libenet.a +%%PORTDOCS%%%%DOCSDIR%%/FAQ.dox +%%PORTDOCS%%%%DOCSDIR%%/api.txt +%%PORTDOCS%%%%DOCSDIR%%/design.dox +%%PORTDOCS%%%%DOCSDIR%%/design.txt +%%PORTDOCS%%%%DOCSDIR%%/tutorial.dox +%%PORTDOCS%%%%DOCSDIR%%/tutorial.txt +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm include/enet |