[Midnightbsd-cvs] mports: mports/net: Add xmlrpc++

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Feb 26 20:57:31 EST 2008


Log Message:
-----------
Add xmlrpc++

Modified Files:
--------------
    mports/net:
        Makefile (r1.56 -> r1.57)

Added Files:
-----------
    mports/net/xmlrpc++:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/net/xmlrpc++/files:
        patch-Validator.cpp (r1.1)
        patch-src:XmlRpcDispatch.cpp (r1.1)

-------------- next part --------------
--- /dev/null
+++ net/xmlrpc++/pkg-descr
@@ -0,0 +1,18 @@
+XmlRpc++ is a C++ implementation of the XML-RPC protocol. The XmlRpc protocol
+was designed to make remote procedure calls easy: it encodes data in a simple
+XML format and uses HTTP for communication. XmlRpc++ is designed to make it
+easy to incorporate XML-RPC client and server support into C++ applications.
+
+Features:
+    * Easy - This library is easy to incorporate into C++ applications. No
+             other libraries are required, other than your system's socket
+             libraries. Simple XML parsing and HTTP support are built in.
+    * Fast - All IO is non-blocking, so a slow client or network will not
+             slow down the server.
+    * Portable - Written in standard C++ to the POSIX and Windows sockets
+             APIs. You do need a fairly recent compiler (g++ 3.1 or
+             MSVC++ .Net or MSVC++ 6 with the STL patches.)
+
+    * Free - This library is released under the GNU LGPL.
+
+WWW: http://xmlrpcpp.sourceforge.net/
--- /dev/null
+++ net/xmlrpc++/pkg-plist
@@ -0,0 +1,13 @@
+include/xmlrpc++/XmlRpc.h
+include/xmlrpc++/XmlRpcClient.h
+include/xmlrpc++/XmlRpcDispatch.h
+include/xmlrpc++/XmlRpcException.h
+include/xmlrpc++/XmlRpcServer.h
+include/xmlrpc++/XmlRpcServerConnection.h
+include/xmlrpc++/XmlRpcServerMethod.h
+include/xmlrpc++/XmlRpcSocket.h
+include/xmlrpc++/XmlRpcSource.h
+include/xmlrpc++/XmlRpcUtil.h
+include/xmlrpc++/XmlRpcValue.h
+ at dirrm include/xmlrpc++
+lib/libXmlRpc.a
--- /dev/null
+++ net/xmlrpc++/Makefile
@@ -0,0 +1,34 @@
+# ex:ts=8
+# Ports collection makefile for:	xmlrpc++
+# Date created:			Feb 26, 2008
+# Whom:				Lucas Holt <luke at midnightbsd.org>
+#
+# $MidnightBSD: mports/net/xmlrpc++/Makefile,v 1.1 2008/02/27 01:57:29 laffer1 Exp $
+#
+
+PORTNAME=	xmlrpc++
+PORTVERSION=	0.7
+CATEGORIES=	net
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=	xmlrpcpp
+DISTNAME=	${PORTNAME}${PORTVERSION}
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	A C++ implementation of the XML-RPC protocol
+LICENSE=	lgpl
+
+USE_GCC=	3.4
+USE_GMAKE=	yes
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -e "s|^CXX|#CXX|" -e "s|^CXXFLAGS|#CXXFLAGS|" \
+		-e "s|tests$$||" ${WRKSRC}/Makefile
+
+do-install:
+	${MKDIR} ${PREFIX}/include/xmlrpc++
+	${INSTALL_DATA} ${WRKSRC}/src/XmlRpc*.h ${PREFIX}/include/xmlrpc++
+	${INSTALL_PROGRAM} ${WRKSRC}/libXmlRpc.a ${PREFIX}/lib
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ net/xmlrpc++/distinfo
@@ -0,0 +1,3 @@
+MD5 (xmlrpc++0.7.tar.gz) = d88f0f9c36d938316d672d16f6c37d7e
+SHA256 (xmlrpc++0.7.tar.gz) = 39fc78ec6d15865009eef19241f58aa1a8e3685ce0f0c59a66ae44787d8d267f
+SIZE (xmlrpc++0.7.tar.gz) = 64037
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/net/Makefile,v
retrieving revision 1.56
retrieving revision 1.57
diff -L net/Makefile -L net/Makefile -u -r1.56 -r1.57
--- net/Makefile
+++ net/Makefile
@@ -63,6 +63,7 @@
     SUBDIR += ulxmlrpcpp
     SUBDIR += vncreflector
     SUBDIR += x11vnc
+    SUBDIR += xmlrpc++
     SUBDIR += xmlrpc-c
     SUBDIR += xmlrpc-epi
     SUBDIR += yaz
--- /dev/null
+++ net/xmlrpc++/files/patch-Validator.cpp
@@ -0,0 +1,11 @@
+--- test/Validator.cpp.orig	Thu Nov 13 14:47:39 2003
++++ test/Validator.cpp	Thu Nov 13 14:47:56 2003
+@@ -137,7 +137,7 @@
+   {
+     std::cerr << "ModerateSizeArrayCheck\n";
+     std::string s = params[0][0];
+-    s += params[0][params[0].size()-1];
++    s += (std::string)params[0][params[0].size()-1];
+     result = s;
+   }
+ } moderateSizeArrayCheck(&s);
--- /dev/null
+++ net/xmlrpc++/files/patch-src:XmlRpcDispatch.cpp
@@ -0,0 +1,13 @@
+--- src/XmlRpcDispatch.cpp.orig	Sun Jan 25 23:10:04 2004
++++ src/XmlRpcDispatch.cpp	Sun Jan 25 23:10:36 2004
+@@ -6,6 +6,10 @@
+ #include <math.h>
+ #include <sys/timeb.h>
+ 
++#include <sys/types.h>
++#include <sys/time.h>
++#include <unistd.h>
++
+ #if defined(_WINDOWS)
+ # include <winsock2.h>
+ 


More information about the Midnightbsd-cvs mailing list