mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- 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)
This commit is contained in:
parent
4186e6895a
commit
e52626906f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=173665
6 changed files with 79 additions and 0 deletions
|
@ -112,6 +112,7 @@
|
|||
SUBDIR += echoping
|
||||
SUBDIR += ekiga
|
||||
SUBDIR += empty
|
||||
SUBDIR += enet
|
||||
SUBDIR += entitymib
|
||||
SUBDIR += erlang_xmlrpc
|
||||
SUBDIR += etherboot
|
||||
|
|
27
net/enet/Makefile
Normal file
27
net/enet/Makefile
Normal file
|
@ -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>
|
3
net/enet/distinfo
Normal file
3
net/enet/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (enet.tar.gz) = c25a7b398ba4681e942f0ede266a24e5
|
||||
SHA256 (enet.tar.gz) = 5e8c3ebe7052d0c774cbddfc5f2a60054b41251f9d0d53ec2b3008e40ca8e84d
|
||||
SIZE (enet.tar.gz) = 122587
|
20
net/enet/files/patch-unix.c
Normal file
20
net/enet/files/patch-unix.c
Normal file
|
@ -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);
|
10
net/enet/pkg-descr
Normal file
10
net/enet/pkg-descr
Normal file
|
@ -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
|
18
net/enet/pkg-plist
Normal file
18
net/enet/pkg-plist
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue