diff options
author | tota <tota@FreeBSD.org> | 2012-12-30 21:21:06 +0800 |
---|---|---|
committer | tota <tota@FreeBSD.org> | 2012-12-30 21:21:06 +0800 |
commit | 0a30d082a9b0c3f3ba454bc122c44410c00e8174 (patch) | |
tree | 37588236ce58ad48d5ba60f4caddc2dbb6c353da | |
parent | dce103079ffaebf2b18cfd8f33c92fefb7923dcf (diff) | |
download | freebsd-ports-gnome-0a30d082a9b0c3f3ba454bc122c44410c00e8174.tar.gz freebsd-ports-gnome-0a30d082a9b0c3f3ba454bc122c44410c00e8174.tar.zst freebsd-ports-gnome-0a30d082a9b0c3f3ba454bc122c44410c00e8174.zip |
- Update to 2.3.9.7
- Trim Makefile header
PR: ports/174808 (based on)
Submitted by: Andrea Venturoli <ml@netfence.it> (maintainer)
-rw-r--r-- | net/Sockets/Makefile | 8 | ||||
-rw-r--r-- | net/Sockets/distinfo | 4 | ||||
-rw-r--r-- | net/Sockets/files/patch-HttpRequest.cpp | 11 | ||||
-rw-r--r-- | net/Sockets/files/patch-Makefile | 4 | ||||
-rw-r--r-- | net/Sockets/files/patch-Sockets-config.cpp | 58 | ||||
-rw-r--r-- | net/Sockets/pkg-plist | 5 |
6 files changed, 79 insertions, 11 deletions
diff --git a/net/Sockets/Makefile b/net/Sockets/Makefile index 490743b1320a..7fa8aae9f636 100644 --- a/net/Sockets/Makefile +++ b/net/Sockets/Makefile @@ -1,12 +1,8 @@ -# 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> -# +# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> # $FreeBSD$ -# PORTNAME= Sockets -PORTVERSION= 2.3.9.2 +PORTVERSION= 2.3.9.7 CATEGORIES= net MASTER_SITES= http://www.alhem.net/Sockets/ \ http://www.netfence.it/Sockets/ diff --git a/net/Sockets/distinfo b/net/Sockets/distinfo index 0ca2daa5e4b7..22b77e71883a 100644 --- a/net/Sockets/distinfo +++ b/net/Sockets/distinfo @@ -1,2 +1,2 @@ -SHA256 (Sockets-2.3.9.2.tar.gz) = 810ab9b6a7316bfa7994c0d5e9bd8c556e9edcb8da35a1778ea11bd16471fba8 -SIZE (Sockets-2.3.9.2.tar.gz) = 191131 +SHA256 (Sockets-2.3.9.7.tar.gz) = dc6411eb53933c0aba639b3ace98b34b674a97aad6b8613f02e5e0aa2af92b24 +SIZE (Sockets-2.3.9.7.tar.gz) = 203023 diff --git a/net/Sockets/files/patch-HttpRequest.cpp b/net/Sockets/files/patch-HttpRequest.cpp new file mode 100644 index 000000000000..b8c055c59ddc --- /dev/null +++ b/net/Sockets/files/patch-HttpRequest.cpp @@ -0,0 +1,11 @@ +--- HttpRequest.cpp.orig 2011-07-17 10:06:09.000000000 +0200 ++++ HttpRequest.cpp 2012-12-29 14:17:14.000000000 +0100 +@@ -44,6 +44,8 @@ + namespace SOCKETS_NAMESPACE { + #endif + ++extern char**environ; ++ + #ifdef _DEBUG + #define DEB(x) x; fflush(stderr); + #else diff --git a/net/Sockets/files/patch-Makefile b/net/Sockets/files/patch-Makefile index f0d93cd6fa6d..07658461d19b 100644 --- a/net/Sockets/files/patch-Makefile +++ b/net/Sockets/files/patch-Makefile @@ -21,8 +21,8 @@ install_shared: install shared @mkdir -p $(DESTDIR)/$(PREFIX)/lib/pkgconfig -- cp $(SHAREDLIBNAME) $(DESTDIR)/$(PREFIX)/lib -- cp -a pkgconfig/*pc $(DESTDIR)/$(PREFIX)/lib/pkgconfig +- install -m 0644 $(SHAREDLIBNAME) $(DESTDIR)/$(PREFIX)/lib +- install -m 0644 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 diff --git a/net/Sockets/files/patch-Sockets-config.cpp b/net/Sockets/files/patch-Sockets-config.cpp new file mode 100644 index 000000000000..af2bb190ea12 --- /dev/null +++ b/net/Sockets/files/patch-Sockets-config.cpp @@ -0,0 +1,58 @@ +--- Sockets-config.cpp.orig 2012-12-29 14:24:51.000000000 +0100 ++++ Sockets-config.cpp 2012-12-29 14:25:16.000000000 +0100 +@@ -29,7 +29,7 @@ + + // ------------------------------------------------------------------ + static bool any_set = false; +-static std::map<std::string, std::string> mmap; ++static std::map<std::string, std::string> sockets_mmap; + + // ------------------------------------------------------------------ + void show_info() +@@ -110,24 +110,24 @@ + */ + void setup_configuration() + { +- mmap["openssl"] = "HAVE_OPENSSL"; +- mmap["ipv6"] = "ENABLE_IPV6"; +- mmap["sctp"] = "USE_SCTP"; +- mmap["no_addrinfo"] = "NO_GETADDRINFO"; +- mmap["pool"] = "ENABLE_POOL"; +- mmap["socks4"] = "ENABLE_SOCKS4"; +- mmap["resolver"] = "ENABLE_RESOLVER"; +- mmap["reconnect"] = "ENABLE_RECONNECT"; +- mmap["detach"] = "ENABLE_DETACH"; +- mmap["exceptions"] = "ENABLE_EXCEPTIONS"; +- mmap["xml2"] = "ENABLE_XML"; ++ sockets_mmap["openssl"] = "HAVE_OPENSSL"; ++ sockets_mmap["ipv6"] = "ENABLE_IPV6"; ++ sockets_mmap["sctp"] = "USE_SCTP"; ++ sockets_mmap["no_addrinfo"] = "NO_GETADDRINFO"; ++ sockets_mmap["pool"] = "ENABLE_POOL"; ++ sockets_mmap["socks4"] = "ENABLE_SOCKS4"; ++ sockets_mmap["resolver"] = "ENABLE_RESOLVER"; ++ sockets_mmap["reconnect"] = "ENABLE_RECONNECT"; ++ sockets_mmap["detach"] = "ENABLE_DETACH"; ++ sockets_mmap["exceptions"] = "ENABLE_EXCEPTIONS"; ++ sockets_mmap["xml2"] = "ENABLE_XML"; + } + + // ------------------------------------------------------------------ + void set(const char *param, bool enable) + { +- std::map<std::string, std::string>::iterator it = mmap.find(param); +- if (it == mmap.end()) ++ std::map<std::string, std::string>::iterator it = sockets_mmap.find(param); ++ if (it == sockets_mmap.end()) + { + fprintf(stderr, "Option '%s' not found, aborting\n", param); + exit(-1); +@@ -195,7 +195,7 @@ + { + int i = (*slask == '#') ? 8 : 10; + std::string def(&slask[i]); +- for (std::map<std::string, std::string>::iterator it = mmap.begin(); it != mmap.end(); it++) ++ for (std::map<std::string, std::string>::iterator it = sockets_mmap.begin(); it != sockets_mmap.end(); it++) + { + if (def == it -> second) + { diff --git a/net/Sockets/pkg-plist b/net/Sockets/pkg-plist index acefb2d85595..2b7f1435efca 100644 --- a/net/Sockets/pkg-plist +++ b/net/Sockets/pkg-plist @@ -28,11 +28,13 @@ include/Sockets/IEventOwner.h include/Sockets/IFile.h include/Sockets/IFileUpload.h include/Sockets/IHttpServer.h +include/Sockets/IModel.h include/Sockets/IMutex.h include/Sockets/ISocketHandler.h include/Sockets/IStream.h include/Sockets/Ipv4Address.h include/Sockets/Ipv6Address.h +include/Sockets/Json.h include/Sockets/ListenSocket.h include/Sockets/Lock.h include/Sockets/MemFile.h @@ -48,6 +50,7 @@ include/Sockets/Socket.h include/Sockets/SocketAddress.h include/Sockets/SocketHandler.h include/Sockets/SocketHandlerEp.h +include/Sockets/SocketHandlerThread.h include/Sockets/SocketStream.h include/Sockets/StdLog.h include/Sockets/StdoutLog.h @@ -68,6 +71,6 @@ libdata/pkgconfig/libsockets2.pc lib/libSockets.a lib/libSockets.so lib/libSockets.so.2 -lib/libSockets.so.2.3.9.2 +lib/libSockets.so.2.3.9.7 @dirrm include/Sockets @dirrmtry lib/pkgconfig |