[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ports/94984: [REPOCOPY] net/hawknl-devel: Portable networking library (devel)



>Number:         94984
>Category:       ports
>Synopsis:       [REPOCOPY] net/hawknl-devel: Portable networking library (devel)
>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 26 23:50:14 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: Tue Mar 21 23:44:35 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-devel-1.70.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-devel
#	hawknl-devel/files
#	hawknl-devel/files/patch-src_makefile.linux
#	hawknl-devel/files/patch-src_htcondition.c
#	hawknl-devel/pkg-descr
#	hawknl-devel/Makefile
#	hawknl-devel/pkg-plist
#	hawknl-devel/distinfo
#
echo c - hawknl-devel
mkdir -p hawknl-devel > /dev/null 2>&1
echo c - hawknl-devel/files
mkdir -p hawknl-devel/files > /dev/null 2>&1
echo x - hawknl-devel/files/patch-src_makefile.linux
sed 's/^X//' >hawknl-devel/files/patch-src_makefile.linux << 'END-of-hawknl-devel/files/patch-src_makefile.linux'
X--- src/makefile.linux	Sun Mar  5 13:36:41 2006
X+++ src/makefile.linux	Sun Mar  5 13:38:06 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 = 7
X PATCH_LEVEL = 0
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 hthread.o htmutex.o htcondition.o nltime.o
X 
X all: $(OBJECTS)
X@@ -38,20 +37,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-devel/files/patch-src_makefile.linux
echo x - hawknl-devel/files/patch-src_htcondition.c
sed 's/^X//' >hawknl-devel/files/patch-src_htcondition.c << 'END-of-hawknl-devel/files/patch-src_htcondition.c'
X--- src/htcondition.c	Sun Mar  5 16:05:39 2006
X+++ src/htcondition.c	Sun Mar  5 16:06:17 2006
X@@ -37,8 +37,6 @@
X 
X #else /* !HT_WIN_THREADS */
X 
X-#include <sys/timeb.h>
X-
X #ifdef HL_WINDOWS_APP
X #define timeb _timeb
X #define ftime _ftime
X@@ -156,13 +154,14 @@
X #else
X         int                 result = 0;
X         struct timespec     tv;
X-        struct timeb        t;
X+        struct timeval       t;
X+        struct timezone     tz;
X         long                ms;
X 
X         /* convert timeout to an absolute time */
X-        ftime(&t);
X-        ms = t.millitm + timeout;
X-        tv.tv_sec = t.time + (ms / 1000);
X+	gettimeofday(&t, &tz);
X+        ms = (t.tv_sec * 1000) + timeout;
X+        tv.tv_sec = t.tv_sec + (ms / 1000);
X         tv.tv_nsec = (ms % 1000) * 1000000;
X 
X         (void)pthread_mutex_lock((pthread_mutex_t *)&cv->mutex);
END-of-hawknl-devel/files/patch-src_htcondition.c
echo x - hawknl-devel/pkg-descr
sed 's/^X//' >hawknl-devel/pkg-descr << 'END-of-hawknl-devel/pkg-descr'
XHawkNL is a free, open source, game oriented network API released under the GNU
XLibrary General Public License (LGPL). HawkNL (NL) is a fairly low level API, a
Xwrapper over Berkeley/Unix Sockets and Winsock. 
X
XBut NL also provides other features including support for many OSs, groups of 
Xsockets, socket statistics, high accuracy timer, CRC functions, macros to read 
Xand write data to packets with endian conversion, and support for multiple 
Xnetwork transports. 
X
XNL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX, 
XBSDs, Mac OSX. 
X
XWWW:	http://www.hawksoft.com/hawknl/
END-of-hawknl-devel/pkg-descr
echo x - hawknl-devel/Makefile
sed 's/^X//' >hawknl-devel/Makefile << 'END-of-hawknl-devel/Makefile'
X# New ports collection makefile for:	hawknl
X# Date created:		2006-03-04
X# Whom:			Jose Alonso Cardenas Marquez <acardenas_(_at_)_bsd_(_dot_)_org_(_dot_)_pe>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	hawknl
XPORTVERSION=	1.70
XCATEGORIES=	net devel
XMASTER_SITES=	http://www.hawksoft.com/download/files/
XPKGNAMESUFFIX=	-devel
XDISTNAME=	HawkNL17b1src
XDIST_SUBDIR=	${PORTNAME}
X
XMAINTAINER=	acardenas_(_at_)_bsd_(_dot_)_org_(_dot_)_pe
XCOMMENT=	Portable networking library (devel)
X
XCONFLICTS=	hawknl-[0-9]*
X
XUSE_ZIP=	yes
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}" \
X		LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
X
XWRKSRC=	${WRKDIR}/HawkNL1.70
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	${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/nlinternal.h ${WRKSRC}/src/htinternal.h
X
Xpost-install:
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-devel/Makefile
echo x - hawknl-devel/pkg-plist
sed 's/^X//' >hawknl-devel/pkg-plist << 'END-of-hawknl-devel/pkg-plist'
Xinclude/nl.h
Xlib/libNL.a
Xlib/libNL.so.1.7.0
Xlib/libNL.so.1
Xlib/libNL.so
Xlib/NL.so
X%%PORTDOCS%%%%DOCSDIR%%/readme.txt
X%%PORTDOCS%%%%DOCSDIR%%/NLchanges.txt
X%%PORTDOCS%%_(_at_)_dirrm %%DOCSDIR%%
END-of-hawknl-devel/pkg-plist
echo x - hawknl-devel/distinfo
sed 's/^X//' >hawknl-devel/distinfo << 'END-of-hawknl-devel/distinfo'
XMD5 (hawknl/HawkNL17b1src.zip) = 7b19d653bee243a040c21af6a9932b92
XSHA256 (hawknl/HawkNL17b1src.zip) = 9583b08a523e38a1c6a70a99df150bbb42616f836c5ed7ec5bf0b32f1cad8ae3
XSIZE (hawknl/HawkNL17b1src.zip) = 228389
END-of-hawknl-devel/distinfo
exit
--- hawknl-devel-1.70.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-ports-bugs_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe_(_at_)_freebsd_(_dot_)_org"


Visit your host, monkey.org