diff --git a/MOVED b/MOVED index f95034d38eff..a3b0cf66662d 100644 --- a/MOVED +++ b/MOVED @@ -4509,7 +4509,6 @@ www/linux-seamonkey-devel||2010-08-30|Older than stable port and unmaintained chinese/gcin-devel||2010-08-31|Older than stable port, broken and unmaintained graphics/xfractint-devel||2010-08-31|Older than stable port and unmaintained misc/kcd-devel||2010-08-31|Older than stable port and unmaintained -net/Sockets-devel||2010-08-31|Older than stable port and unmaintained sysutils/logtool-devel||2010-08-31|Older than stable port and unmaintained textproc/smartdoc-devel||2010-08-31|Older than stable port and unmaintained comms/spandsp-devel5||2010-08-31|Older than stable port and unmaintained diff --git a/net/Makefile b/net/Makefile index 4634da38b1a1..869a24721fa2 100644 --- a/net/Makefile +++ b/net/Makefile @@ -11,6 +11,7 @@ SUBDIR += DarwinStreamingServer SUBDIR += GeoIP SUBDIR += Sockets + SUBDIR += Sockets-devel SUBDIR += abills SUBDIR += activemq SUBDIR += acx100 diff --git a/net/Sockets-devel/Makefile b/net/Sockets-devel/Makefile new file mode 100644 index 000000000000..d879fa405b5d --- /dev/null +++ b/net/Sockets-devel/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: C++ Sockets devel +# Date created: Sun Sep 25 20:27:06 UTC 2005 +# Whom: Mario Sergio Fujikawa Ferreira +# +# $FreeBSD$ +# + +PORTNAME= Sockets +PORTVERSION= 1.9.9 +CATEGORIES= net ipv6 +MASTER_SITES= http://www.alhem.net/Sockets/ +PKGNAMESUFFIX?= -devel + +MAINTAINER= ports@FreeBSD.org +COMMENT= A C++ wrapper for BSD-style sockets + +USE_GMAKE= yes +USE_OPENSSL= yes +WITH_OPENSSL_BASE= yes + +post-patch: +# PREFIX safeness +# CXX safeness +# CXXFLAGS safeness +# rename files to -devel + @${REINPLACE_CMD} -E \ + -e 's|-O2||' \ + -e 's|^PREFIX.+$$|PREFIX=${PREFIX}|' \ + -e 's|^INCLUDE.+$$|INCLUDE=-I. -I${OPENSSLINC}|' \ + -e 's|g\+\+|${CXX}|' \ + -e 's|libSockets.a|libSockets-devel.a|' \ + -e 's|libSocketsEx.a|libSocketsEx-devel.a|' \ + -e 's|Sockets-config|Sockets-devel-config|' \ + -e 's|include/Sockets|include/Sockets-devel|' \ + ${BUILD_WRKSRC}/${MAKEFILE} +# fix StdLog.h location + @${FIND} ${WRKSRC} -type f | \ + ${XARGS} -n 5 -x \ + ${REINPLACE_CMD} -E \ + -e 's|"StdLog.h"||' + +.include + +.if ${OSVERSION} >= 700042 +EXTRA_PATCHES= ${FILESDIR}/extra-patch-SocketHandler.h +.endif + +.include diff --git a/net/Sockets-devel/distinfo b/net/Sockets-devel/distinfo new file mode 100644 index 000000000000..d273f97ef319 --- /dev/null +++ b/net/Sockets-devel/distinfo @@ -0,0 +1,3 @@ +MD5 (Sockets-1.9.9.tar.gz) = f375bd3328e3ac5f0a171e3524c6605b +SHA256 (Sockets-1.9.9.tar.gz) = c1185dc293d1f313cd18e3096df405b846528e3851b5e7db483f0951a49493c8 +SIZE (Sockets-1.9.9.tar.gz) = 90650 diff --git a/net/Sockets-devel/files/extra-patch-SocketHandler.h b/net/Sockets-devel/files/extra-patch-SocketHandler.h new file mode 100644 index 000000000000..f1e501090d69 --- /dev/null +++ b/net/Sockets-devel/files/extra-patch-SocketHandler.h @@ -0,0 +1,10 @@ +--- SocketHandler.h.orig 2008-11-30 02:37:01.000000000 -0200 ++++ SocketHandler.h 2008-11-30 02:37:09.000000000 -0200 +@@ -49,6 +49,7 @@ + \ingroup basic */ + class SocketHandler + { ++protected: + /** Map type for holding file descriptors/socket object pointers. */ + typedef std::map socket_m; + diff --git a/net/Sockets-devel/files/patch-Makefile b/net/Sockets-devel/files/patch-Makefile new file mode 100644 index 000000000000..b43c5c0e39e6 --- /dev/null +++ b/net/Sockets-devel/files/patch-Makefile @@ -0,0 +1,20 @@ +--- Makefile.orig Sun Sep 25 02:39:49 2005 ++++ Makefile Sun Sep 25 02:40:28 2005 +@@ -75,13 +75,11 @@ + ranlib $@ + + 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 +- @mkdir -p $(PREFIX)/bin +- install Sockets-config $(PREFIX)/bin ++ @${BSD_INSTALL_DATA} *.h $(PREFIX)/include/Sockets ++ @${BSD_INSTALL_PROGRAM} Sockets-config $(PREFIX)/bin + + clean: + rm -f *.o *~ slask *.d $(PROGS) *.a */*~ diff --git a/net/Sockets-devel/files/patch-MinderHandler.cpp b/net/Sockets-devel/files/patch-MinderHandler.cpp new file mode 100644 index 000000000000..e0a6732bb40d --- /dev/null +++ b/net/Sockets-devel/files/patch-MinderHandler.cpp @@ -0,0 +1,22 @@ +--- MinderHandler.cpp.orig Sun Sep 25 02:40:57 2005 ++++ MinderHandler.cpp Sun Sep 25 02:41:49 2005 +@@ -20,6 +20,10 @@ + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ ++#if (defined(__unix__) || defined(unix)) && !defined(USG) ++#include ++#endif ++ + #ifdef _WIN32 + #pragma warning(disable:4786) + #endif +@@ -428,6 +432,8 @@ + msg += ":" + tmp; + #ifdef _WIN32 + msg += ":Win32"; ++#elif defined __FreeBSD__ ++ msg += ":FreeBSD"; + #else + msg += ":Linux"; + #endif diff --git a/net/Sockets-devel/files/patch-Sockets-config.cpp b/net/Sockets-devel/files/patch-Sockets-config.cpp new file mode 100644 index 000000000000..f6362cf7c538 --- /dev/null +++ b/net/Sockets-devel/files/patch-Sockets-config.cpp @@ -0,0 +1,26 @@ +--- Sockets-config.cpp.orig Sun Sep 25 02:42:19 2005 ++++ Sockets-config.cpp Sun Sep 25 02:44:08 2005 +@@ -1,8 +1,12 @@ + #include + /* +-CFLAGS = -Wall -g -O2 $(INCLUDE) -MD -D_VERSION='"$(VERSION)"' ++CFLAGS = -Wall -g $(INCLUDE) -MD -D_VERSION='"$(VERSION)"' + # manual autoconf .... + ++#if (defined(__unix__) || defined(unix)) && !defined(USG) ++#include ++#endif ++ + # uncomment if your operating system is linux, mac os x, or solaris + #CFLAGS += -DLINUX + #CFLAGS += -DMACOSX +@@ -19,6 +23,9 @@ + printf(" -D_VERSION='\"%s\"'", _VERSION); + #ifdef LINUX + printf(" -DLINUX"); ++#endif ++#if defined __FreeBSD__ ++ printf(" -DFREEBSD"); + #endif + #ifdef MACOSX + printf(" -DMACOSX"); diff --git a/net/Sockets-devel/pkg-descr b/net/Sockets-devel/pkg-descr new file mode 100644 index 000000000000..2f716765c87a --- /dev/null +++ b/net/Sockets-devel/pkg-descr @@ -0,0 +1,10 @@ +[ excerpt from developer's web site ] + +This is a GPL licensed 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. + +WWW: http://www.alhem.net/Sockets/index.html diff --git a/net/Sockets-devel/pkg-plist b/net/Sockets-devel/pkg-plist new file mode 100644 index 000000000000..fcf70778878f --- /dev/null +++ b/net/Sockets-devel/pkg-plist @@ -0,0 +1,44 @@ +bin/Sockets-devel-config +include/Sockets-devel/Base64.h +include/Sockets-devel/CTcpSocket.h +include/Sockets-devel/CircularBuffer.h +include/Sockets-devel/File.h +include/Sockets-devel/HTTPSocket.h +include/Sockets-devel/HttpDebugSocket.h +include/Sockets-devel/HttpGetSocket.h +include/Sockets-devel/HttpPostSocket.h +include/Sockets-devel/HttpPutSocket.h +include/Sockets-devel/HttpdCookies.h +include/Sockets-devel/HttpdForm.h +include/Sockets-devel/HttpdSocket.h +include/Sockets-devel/HttpsGetSocket.h +include/Sockets-devel/HttpsSocket.h +include/Sockets-devel/ICrypt.h +include/Sockets-devel/IFile.h +include/Sockets-devel/ListenSocket.h +include/Sockets-devel/Lock.h +include/Sockets-devel/MemFile.h +include/Sockets-devel/MinderHandler.h +include/Sockets-devel/MinderSocket.h +include/Sockets-devel/MinionSocket.h +include/Sockets-devel/Mutex.h +include/Sockets-devel/NullCrypt.h +include/Sockets-devel/Parse.h +include/Sockets-devel/PoolSocket.h +include/Sockets-devel/ResolvServer.h +include/Sockets-devel/ResolvSocket.h +include/Sockets-devel/SSLSocket.h +include/Sockets-devel/Socket.h +include/Sockets-devel/SocketHandler.h +include/Sockets-devel/SocketThread.h +include/Sockets-devel/StdLog.h +include/Sockets-devel/StdoutLog.h +include/Sockets-devel/TcpSocket.h +include/Sockets-devel/Thread.h +include/Sockets-devel/UdpSocket.h +include/Sockets-devel/Uid.h +include/Sockets-devel/Utility.h +include/Sockets-devel/socket_include.h +lib/libSockets-devel.a +lib/libSocketsEx-devel.a +@dirrm include/Sockets-devel