Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Mar 2006 22:41:57 GMT
From:      Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/94114: [NEW PORT] net/hawknl: Portable networking library
Message-ID:  <200603052241.k25MfvtN001833@www.freebsd.org>
Resent-Message-ID: <200603052250.k25Mo3SR042038@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94114
>Category:       ports
>Synopsis:       [NEW PORT] net/hawknl: Portable networking library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 05 22:50:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jose Alonso Cardenas Marquez
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
BSDPeru (http://www.bsd.org.pe)
>Environment:
FreeBSD HellFire.BSD.org.pe 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Wed Feb 15 20:23:11 PET 2006
>Description:
HawkNL is a free, open source, game oriented network API released under the GNU Library General Public 
License (LGPL). HawkNL (NL) is a fairly low level API, a wrapper over Berkeley/Unix Sockets and Winsock. 

But NL also provides other features including support for many OSs, groups of sockets, socket statistics, 
high accuracy timer, CRC functions, macros to read and write data to packets with endian conversion, and 
support for multiple network transports. 

NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX, BSDs, Mac OSX. 

WWW:	http://www.hawksoft.com/hawknl/
>How-To-Repeat:

>Fix:
--- hawknl-1.68.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	hawknl
#	hawknl/pkg-descr
#	hawknl/Makefile
#	hawknl/pkg-plist
#	hawknl/distinfo
#	hawknl/files
#	hawknl/files/patch-src_makefile.linux
#	hawknl/files/patch-src_nlinternal.h
#
echo c - hawknl
mkdir -p hawknl > /dev/null 2>&1
echo x - hawknl/pkg-descr
sed 's/^X//' >hawknl/pkg-descr << 'END-of-hawknl/pkg-descr'
XHawkNL is a free, open source, game oriented network API released under the GNU Library General Public 
XLicense (LGPL). HawkNL (NL) is a fairly low level API, a wrapper over Berkeley/Unix Sockets and Winsock. 
X
XBut NL also provides other features including support for many OSs, groups of sockets, socket statistics, 
Xhigh accuracy timer, CRC functions, macros to read and write data to packets with endian conversion, and 
Xsupport for multiple network transports. 
X
XNL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX, BSDs, Mac OSX. 
X
XWWW:	http://www.hawksoft.com/hawknl/
END-of-hawknl/pkg-descr
echo x - hawknl/Makefile
sed 's/^X//' >hawknl/Makefile << 'END-of-hawknl/Makefile'
X# New ports collection makefile for:	hawknl
X# Date created:		2006-03-04
X# Whom:			Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	hawknl
XPORTVERSION=	1.68
XCATEGORIES=	net devel
XMASTER_SITES=	http://www.hawksoft.com/download/files/
XDISTNAME=	HawkNL168src
XDIST_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	acardenas@bsd.org.pe
XCOMMENT=	Portable networking library
X
XUSE_DOS2UNIX=	yes
XUSE_GMAKE=	yes
XMAKEFILE=	makefile.linux
XINSTALLS_SHLIB=	yes
X
XLDFLAGS=	-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
XCPPFLAGS=	-I${LOCALBASE}/include -I${X11BASE}/include
XMAKE_ENV=	CC="${CC}" CFLAGS="${CFLAGS} ${OPTFLAGS}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
XWRKSRC=	${WRKDIR}/${PORTNAME}1.68
X
XOPTIONS=	OPTIMIZATION	"Enable optimization"	off
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_OPTIMIZATION)
XCFLAGS+=	-funroll-all-loops -ffast-math -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT
X.endif
X
Xpost-patch:
X	${REINPLACE_CMD} -e 's|make -f|gmake -f|g' ${WRKSRC}/${MAKEFILE}
X
Xpost-install:
X	@${RM} -f ${PREFIX}/lib/libNL.a
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for FILE in readme.txt nlchanges.txt
X	@${INSTALL_DATA} ${WRKSRC}/src/${FILE} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
END-of-hawknl/Makefile
echo x - hawknl/pkg-plist
sed 's/^X//' >hawknl/pkg-plist << 'END-of-hawknl/pkg-plist'
Xinclude/nl.h
Xlib/libNL.so.1.6.8
Xlib/libNL.so.1
Xlib/libNL.so
Xlib/NL.so
X%%PORTDOCS%%%%DOCSDIR%%/readme.txt
X%%PORTDOCS%%%%DOCSDIR%%/nlchanges.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-hawknl/pkg-plist
echo x - hawknl/distinfo
sed 's/^X//' >hawknl/distinfo << 'END-of-hawknl/distinfo'
XMD5 (hawknl/HawkNL168src.tar.gz) = 2e4971d422b8c5cadfe2a85527ff2fcf
XSHA256 (hawknl/HawkNL168src.tar.gz) = 31a2883dbfe02937c9c862bb1aac0b89e465bbab822513c06bffa3f13e4c3c2e
XSIZE (hawknl/HawkNL168src.tar.gz) = 181263
END-of-hawknl/distinfo
echo c - hawknl/files
mkdir -p hawknl/files > /dev/null 2>&1
echo x - hawknl/files/patch-src_makefile.linux
sed 's/^X//' >hawknl/files/patch-src_makefile.linux << 'END-of-hawknl/files/patch-src_makefile.linux'
X--- src/makefile.linux	Sun Mar  5 03:46:18 2006
X+++ src/makefile.linux	Sun Mar  5 03:51:02 2006
X@@ -1,19 +1,18 @@
X-CC = gcc
X+CC? = ${CC}
X AR = ar cru
X RANLIB = ranlib
X MAJOR_VERSION = 1
X MINOR_VERSION = 6
X PATCH_LEVEL = 8
X VERSION = $(MAJOR_VERSION).$(MINOR_VERSION).$(PATCH_LEVEL)
X-LIBDIR = /usr/local/lib
X-INCDIR = /usr/local/include
X+LIBDIR = ${PREFIX}/lib
X+INCDIR = ${PREFIX}/include
X INCLUDE = -I../include
X OUTPUT = libNL.so.$(VERSION)
X LIBNAME = NL
X STATIC = libNL.a
X-OPTFLAGS = -funroll-all-loops -ffast-math -fomit-frame-pointer -O2 -D_GNU_SOURCE -D_REENTRANT
X-CFLAGS = -Wall -fPIC $(INCLUDE) $(OPTFLAGS)
X-LIBFLAGS = -shared -Wl,-soname,NL.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic -lpthread
X+CFLAGS? = ${CFLAGS} -Wall -fPIC $(INCLUDE)
X+LIBFLAGS = -shared -Wl,-soname,NL.so.$(MAJOR_VERSION).$(MINOR_VERSION) -rdynamic ${LDFLAGS}
X OBJECTS = crc.o errorstr.o nl.o sock.o group.o loopback.o err.o thread.o mutex.o condition.o nltime.o
X 
X all: $(OBJECTS)
X@@ -37,20 +36,11 @@
X 	cp $(OUTPUT) $(LIBDIR)
X 	cp $(STATIC) $(LIBDIR)
X 	chmod 755 $(LIBDIR)/$(OUTPUT)
X-	ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION).$(MINOR_VERSION)
X 	ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION)
X 	ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so
X 	ln -s $(LIBDIR)/$(OUTPUT) $(LIBDIR)/$(LIBNAME).so
X 	cp ../include/nl.h $(INCDIR)/nl.h
X 	chmod 644 $(INCDIR)/nl.h
X-	@echo ""
X-	@echo "*************************************************"
X-	@echo "* Installed HawkNL.                             *"
X-	@echo "* Remember to run /sbin/ldconfig before using   *"
X-	@echo "* the library, you may also want to check that  *"
X-	@echo "* $(LIBDIR) is included in /etc/ld.so.conf      *"
X-	@echo "* You must be root to run ldconfig.             *"
X-	@echo "*************************************************"
X 
X uninstall:
X 	rm -f $(LIBDIR)/$(OUTPUT) $(LIBDIR)/lib$(LIBNAME).so.$(MAJOR_VERSION).$(MINOR_VERSION)
END-of-hawknl/files/patch-src_makefile.linux
echo x - hawknl/files/patch-src_nlinternal.h
sed 's/^X//' >hawknl/files/patch-src_nlinternal.h << 'END-of-hawknl/files/patch-src_nlinternal.h'
X--- src/nlinternal.h	Sat Mar  4 17:39:24 2006
X+++ src/nlinternal.h	Sat Mar  4 17:39:35 2006
X@@ -28,7 +28,7 @@
X /* for malloc and free */
X #include <stdlib.h>
X #ifndef MACOSX
X-#include <malloc.h>
X+#include <stdlib.h>
X #endif
X 
X /* Windows CE does not have time.h functions */
END-of-hawknl/files/patch-src_nlinternal.h
exit
--- hawknl-1.68.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603052241.k25MfvtN001833>