1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Ressurrect net/Sockets-devel, removed this afternoon, net-p2p/btpeer depends of

it and because of this INDEX has BROKEN

Pointyhat to:	garga@
This commit is contained in:
Renato Botelho 2010-08-31 23:13:15 +00:00
parent 6e66b3f5b9
commit 7f47b5ed10
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=260313
10 changed files with 184 additions and 1 deletions

1
MOVED
View File

@ -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

View File

@ -11,6 +11,7 @@
SUBDIR += DarwinStreamingServer
SUBDIR += GeoIP
SUBDIR += Sockets
SUBDIR += Sockets-devel
SUBDIR += abills
SUBDIR += activemq
SUBDIR += acx100

View File

@ -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 <lioux@FreeBSD.org>
#
# $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"|<StdLog.h>|'
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700042
EXTRA_PATCHES= ${FILESDIR}/extra-patch-SocketHandler.h
.endif
.include <bsd.port.post.mk>

View File

@ -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

View File

@ -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,Socket *> socket_m;

View File

@ -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 */*~

View File

@ -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 <sys/param.h>
+#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

View File

@ -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 <stdio.h>
/*
-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 <sys/param.h>
+#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");

View File

@ -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

View File

@ -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