Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jun 2010 22:34:04 +0200 (CEST)
From:      Andrea Venturoli <ml@netfence.it>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/148245: [patch] Upgrade net/Sockets to 2.3.9.2
Message-ID:  <201006292034.o5TKY4Ok059196@soth.ventu>
Resent-Message-ID: <201006292050.o5TKo4W7059845@freefall.freebsd.org>

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

>Number:         148245
>Category:       ports
>Synopsis:       [patch] Upgrade net/Sockets to 2.3.9.2
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 29 20:50:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Andrea Venturoli &
>Release:        FreeBSD 7.2-RELEASE-p8 i386
>Organization:
NetFence
>Environment:
System: FreeBSD soth.ventu 7.2-RELEASE-p8 FreeBSD 7.2-RELEASE-p8 #0: Thu May 27 11:36:21 CEST 2010 root@soth.ventu:/usr/obj/usr/src/sys/SOTH i386


	
>Description:
	Attached is a diff updating the net/Sockets port to version 2.3.9.2
	I'm also willing to take maintainership.

	Notice a file was added: this is
	       files/Makefile.Defines.freebsd


>How-To-Repeat:
	
>Fix:

	

--- Sockets.diff begins here ---
diff -ruN Sockets.bak/Makefile Sockets/Makefile
--- Sockets.bak/Makefile	2010-01-15 09:28:25.000000000 +0100
+++ Sockets/Makefile	2010-06-29 22:24:51.000000000 +0200
@@ -1,44 +1,40 @@
 # New ports collection makefile for:   C++ Sockets
-# Date created:                Sat Jan 15 16:17:20 UTC 2005
-# Whom:                 Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+# Date created:                Tue Jun 29 16:00:00 UTC 2010
+# Whom:                 Andrea Venturoli <ml@netfence.it>
 #
-# $FreeBSD: ports/net/Sockets/Makefile,v 1.9 2010/01/13 01:53:00 wen Exp $
+# $FreeBSD$
 #
 
 PORTNAME=	Sockets
-PORTVERSION=	2.1.4
-CATEGORIES=	net ipv6
-MASTER_SITES=	http://www.alhem.net/Sockets/
+PORTVERSION=	2.3.9.2
+CATEGORIES=	net
+MASTER_SITES=	http://www.alhem.net/Sockets/ \
+		http://www.netfence.it/Sockets/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	ml@netfence.it
 COMMENT=	A C++ wrapper for BSD-style sockets
 
-LIB_DEPENDS=	execinfo.1:${PORTSDIR}/devel/libexecinfo
+#execinfo is optional and currently not configured (would need to patch source's #ifdef LINUX)
+#LIB_DEPENDS=	execinfo.1:${PORTSDIR}/devel/libexecinfo
 
-CFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-CONFIGURE_ARGS+=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS}"
+#Not needed without execinfo or xml
+#CFLAGS+=	-I${LOCALBASE}/include
+#LDFLAGS+=	-L${LOCALBASE}/lib
+
+MAKE_JOBS_SAFE=yes
 USE_GMAKE=	yes
 USE_OPENSSL=	yes
-WITH_OPENSSL_BASE=	yes
+USE_LDCONFIG=	yes
+
+ALL_TARGET=	all shared
+INSTALL_TARGET=	install_shared
 
 post-patch:
 # PREFIX safeness
-# CXX safeness
-# CXXFLAGS safeness
+	@${CP} ${PATCHDIR}/Makefile.Defines.freebsd ${WRKSRC}
 	@${REINPLACE_CMD} -E \
-		-e 's|-O2||' \
+		-e 's|linux-x86-32|freebsd|' \
 		-e 's|^PREFIX.+$$|PREFIX=${PREFIX}|' \
-		-e 's|^INCLUDE.+$$|INCLUDE=-I. -I${OPENSSLINC}|' \
-		-e 's|g\+\+|${CXX}|' \
 		${BUILD_WRKSRC}/${MAKEFILE}
-# fix StdLog.h location
-	@${FIND} ${WRKSRC} -type f | \
-		${XARGS} -n 5 -x \
-		${REINPLACE_CMD} -E \
-		-e 's|"StdLog.h"|<StdLog.h>|'
-
-	@${REINPLACE_CMD} -e 's#pthread#(unsigned long)pthread#g' \
-		${WRKSRC}/Utility.cpp
 
 .include <bsd.port.mk>
diff -ruN Sockets.bak/distinfo Sockets/distinfo
--- Sockets.bak/distinfo	2010-01-15 09:28:25.000000000 +0100
+++ Sockets/distinfo	2010-06-29 14:25:41.000000000 +0200
@@ -1,3 +1,3 @@
-MD5 (Sockets-2.1.4.tar.gz) = b58dbe074eeacf2a885914141c9f73a5
-SHA256 (Sockets-2.1.4.tar.gz) = a90d4e1a735f315ad3adde70bf64c67a01ff44687be2b32836dfef51504bb630
-SIZE (Sockets-2.1.4.tar.gz) = 123138
+MD5 (Sockets-2.3.9.2.tar.gz) = 669c4c093aa446c9c831a142a22571a4
+SHA256 (Sockets-2.3.9.2.tar.gz) = 810ab9b6a7316bfa7994c0d5e9bd8c556e9edcb8da35a1778ea11bd16471fba8
+SIZE (Sockets-2.3.9.2.tar.gz) = 191131
diff -ruN Sockets.bak/files/Makefile.Defines.freebsd Sockets/files/Makefile.Defines.freebsd
--- Sockets.bak/files/Makefile.Defines.freebsd	1970-01-01 01:00:00.000000000 +0100
+++ Sockets/files/Makefile.Defines.freebsd	2010-06-29 22:04:34.000000000 +0200
@@ -0,0 +1,14 @@
+CXX?=		g++
+
+CFLAGS +=	-Wall $(INCLUDE) -MD -D_VERSION='"$(VERSION)"'
+
+CFLAGS +=	-O2
+
+
+CFLAGS +=	-fPIC
+
+OBJS +=		Semaphore.o
+
+LDFLAGSSO =	-shared \
+		-Wl,-lssl \
+		-Wl,-h$(SONAME)
diff -ruN Sockets.bak/files/patch-Makefile Sockets/files/patch-Makefile
--- Sockets.bak/files/patch-Makefile	2010-01-15 09:28:25.000000000 +0100
+++ Sockets/files/patch-Makefile	2010-06-29 22:02:52.000000000 +0200
@@ -1,25 +1,30 @@
---- Makefile.orig	2010-01-12 15:22:03.000000000 +0800
-+++ Makefile	2010-01-12 15:24:19.000000000 +0800
-@@ -70,18 +70,17 @@
+--- /Makefile.orig	2010-06-29 21:16:10.000000000 +0200
++++ Makefile	2010-06-29 21:17:45.000000000 +0200
+@@ -90,9 +90,9 @@
  
  install:	all 
- 		@mkdir -p $(PREFIX)/lib
--		cp libSockets.a $(PREFIX)/lib
--		cp libSocketsEx.a $(PREFIX)/lib
-+		@${BSD_INSTALL_DATA} libSockets.a $(PREFIX)/lib
-+		@${BSD_INSTALL_DATA} libSocketsEx.a $(PREFIX)/lib
- 		@mkdir -p $(PREFIX)/include/Sockets
--		cp -a *.h $(PREFIX)/include/Sockets
-+		@${BSD_INSTALL_DATA} *.h $(PREFIX)/include/Sockets
- 		@rm -f $(PREFIX)/include/Sockets/SSLSocket.*
- 		@rm -f $(PREFIX)/include/Sockets/HttpsGetSocket.*
- 		@rm -f $(PREFIX)/include/Sockets/HttpsSocket.*
- 		@rm -f $(PREFIX)/include/Sockets/EventSocket.*
- 		@rm -f $(PREFIX)/include/Sockets/PoolSocket.*
- 		@rm -f $(PREFIX)/include/Sockets/SocketThread.*
--		@mkdir -p $(PREFIX)/bin
--		install Sockets-config $(PREFIX)/bin
-+		@${BSD_INSTALL_DATA} Sockets-config $(PREFIX)/bin
+ 		@mkdir -p $(DESTDIR)/$(PREFIX)/lib
+-		cp $(LIBNAME) $(DESTDIR)/$(PREFIX)/lib
++		@${BSD_INSTALL_DATA} $(LIBNAME) $(DESTDIR)/$(PREFIX)/lib
+ 		@mkdir -p $(DESTDIR)/$(PREFIX)/include/$(NAME)
+-		cp -a *.h $(DESTDIR)/$(PREFIX)/include/$(NAME)
++		@${BSD_INSTALL_DATA} *.h $(DESTDIR)/$(PREFIX)/include/$(NAME)
+ 		@rm -f $(DESTDIR)/$(PREFIX)/include/$(NAME)/SSLSocket.*
+ 		@rm -f $(DESTDIR)/$(PREFIX)/include/$(NAME)/HttpsGetSocket.*
+ 		@rm -f $(DESTDIR)/$(PREFIX)/include/$(NAME)/HttpsSocket.*
+@@ -106,12 +106,12 @@
+ 		@rm -f $(DESTDIR)/$(PREFIX)/include/$(NAME)/Min*Handler.h
+ 		@rm -f $(DESTDIR)/$(PREFIX)/include/$(NAME)/Uid.h
+ 		@mkdir -p $(DESTDIR)/$(PREFIX)/bin
+-		install $(CONFNAME) $(DESTDIR)/$(PREFIX)/bin
++		@${BSD_INSTALL_PROGRAM} $(CONFNAME) $(DESTDIR)/$(PREFIX)/bin
  
- # no binary files, zip will translate lf to cr lf
- FILES =		*.h *.cpp Makefile Makefile.* Project/*.ds* \
+ install_shared:	install shared
+ 		@mkdir -p $(DESTDIR)/$(PREFIX)/lib/pkgconfig
+-		cp $(SHAREDLIBNAME) $(DESTDIR)/$(PREFIX)/lib
+-		cp -a pkgconfig/*pc $(DESTDIR)/$(PREFIX)/lib/pkgconfig
++		@${BSD_INSTALL_DATA} $(SHAREDLIBNAME) $(DESTDIR)/$(PREFIX)/lib
++		@${BSD_INSTALL_DATA} pkgconfig/*pc $(DESTDIR)/$(PREFIX)/libdata/pkgconfig
+ 		rm -f $(DESTDIR)/$(PREFIX)/lib/lib$(NAME).so
+ 		rm -f $(DESTDIR)/$(PREFIX)/lib/lib$(NAME).so.$(MAJOR)
+ 		ln -s $(DESTDIR)/$(PREFIX)/lib/lib$(NAME).so.$(MAJOR).$(MINOR) $(DESTDIR)/$(PREFIX)/lib/lib$(NAME).so
diff -ruN Sockets.bak/pkg-descr Sockets/pkg-descr
--- Sockets.bak/pkg-descr	2009-12-21 15:04:45.000000000 +0100
+++ Sockets/pkg-descr	2010-06-29 14:12:56.000000000 +0200
@@ -1,10 +1,11 @@
 [ excerpt from developer's web site ]
 
-This is a GPL licensed C++ class library wrapping the berkeley
+This is C++ class library wrapping the berkeley
 sockets C API, and therefore works on most unixes and also win32.
 Features include, but are not limited to, SSL support, IPv6 support,
 tcp and udp sockets, encrypted tcp, http protocol, highly customizable
-error handling. Testing has been done on Linux and Windows 2000,
-and to some part on Solaris and Mac OS X.
+error handling.
+The source code is released under the terms of the GNU GPL, but is
+also available under an alternative license.
 
-WWW: http://www.alhem.net/Sockets/index.html
+WWW: http://www.alhem.net/Sockets/
diff -ruN Sockets.bak/pkg-plist Sockets/pkg-plist
--- Sockets.bak/pkg-plist	2010-01-15 09:28:25.000000000 +0100
+++ Sockets/pkg-plist	2010-06-29 21:31:07.000000000 +0200
@@ -1,37 +1,42 @@
 bin/Sockets-config
+include/Sockets/Ajp13Socket.h
+include/Sockets/AjpBaseSocket.h
 include/Sockets/Base64.h
-include/Sockets/CTcpSocket.h
-include/Sockets/CircularBuffer.h
 include/Sockets/Debug.h
 include/Sockets/Event.h
 include/Sockets/EventHandler.h
 include/Sockets/EventTime.h
+include/Sockets/Exception.h
 include/Sockets/File.h
+include/Sockets/FileStream.h
 include/Sockets/HTTPSocket.h
+include/Sockets/HttpBaseSocket.h
 include/Sockets/HttpClientSocket.h
 include/Sockets/HttpDebugSocket.h
 include/Sockets/HttpGetSocket.h
 include/Sockets/HttpPostSocket.h
 include/Sockets/HttpPutSocket.h
+include/Sockets/HttpRequest.h
+include/Sockets/HttpResponse.h
+include/Sockets/HttpTransaction.h
 include/Sockets/HttpdCookies.h
 include/Sockets/HttpdForm.h
 include/Sockets/HttpdSocket.h
-include/Sockets/ICrypt.h
+include/Sockets/IBase.h
 include/Sockets/IEventHandler.h
 include/Sockets/IEventOwner.h
 include/Sockets/IFile.h
+include/Sockets/IFileUpload.h
+include/Sockets/IHttpServer.h
+include/Sockets/IMutex.h
 include/Sockets/ISocketHandler.h
+include/Sockets/IStream.h
 include/Sockets/Ipv4Address.h
 include/Sockets/Ipv6Address.h
 include/Sockets/ListenSocket.h
 include/Sockets/Lock.h
 include/Sockets/MemFile.h
-include/Sockets/MinderSocket.h
-include/Sockets/MinderHandler.h
-include/Sockets/MinionSocket.h
 include/Sockets/Mutex.h
-include/Sockets/NullCrypt.h
-include/Sockets/RandomNumber.h
 include/Sockets/Parse.h
 include/Sockets/ResolvServer.h
 include/Sockets/ResolvSocket.h
@@ -42,15 +47,26 @@
 include/Sockets/Socket.h
 include/Sockets/SocketAddress.h
 include/Sockets/SocketHandler.h
+include/Sockets/SocketHandlerEp.h
+include/Sockets/SocketStream.h
 include/Sockets/StdLog.h
 include/Sockets/StdoutLog.h
+include/Sockets/StreamSocket.h
+include/Sockets/StreamWriter.h
 include/Sockets/TcpSocket.h
 include/Sockets/Thread.h
 include/Sockets/UdpSocket.h
-include/Sockets/Uid.h
 include/Sockets/Utility.h
+include/Sockets/XmlDocument.h
+include/Sockets/XmlException.h
+include/Sockets/XmlNode.h
+include/Sockets/ajp13.h
 include/Sockets/socket_include.h
 include/Sockets/sockets-config.h
+libdata/pkgconfig/libSockets.pc
+libdata/pkgconfig/libsockets2.pc
 lib/libSockets.a
-lib/libSocketsEx.a
+lib/libSockets.so
+lib/libSockets.so.2
+lib/libSockets.so.2.3.9.2
 @dirrm include/Sockets
--- Sockets.diff ends here ---


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



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