From 1253a1dc72b47ff5377f91d59c6be43a0c3c95cb Mon Sep 17 00:00:00 2001 From: todd Date: Thu, 8 Feb 2007 03:23:35 +0000 Subject: [PATCH] xmlrpc-epi 0.51 xmlrpc-epi is an implementation of the xmlrpc protocol in C. It provides an easy to use API for developers to serialize RPC requests to and from XML. It does *not* include a transport layer, such as HTTP. The API is primarily based upon proprietary code written for internal usage at Epinions.com, and was later modified to incorporate concepts from the xmlrpc protocol. It passed the xmlrpc validation test suite in December 2000. --- net/xmlrpc-epi/Makefile | 35 ++++++++++++++++++ net/xmlrpc-epi/distinfo | 4 ++ net/xmlrpc-epi/patches/patch-Makefile_in | 12 ++++++ net/xmlrpc-epi/patches/patch-configure_in | 12 ++++++ .../patches/patch-sample_Makefile_in | 12 ++++++ net/xmlrpc-epi/patches/patch-src_Makefile_in | 37 +++++++++++++++++++ .../patches/patch-src_xml_element_c | 15 ++++++++ net/xmlrpc-epi/patches/patch-src_xmlrpc_c | 15 ++++++++ net/xmlrpc-epi/pkg/DESCR | 8 ++++ net/xmlrpc-epi/pkg/PFRAG.shared | 2 + net/xmlrpc-epi/pkg/PLIST | 19 ++++++++++ 11 files changed, 171 insertions(+) create mode 100644 net/xmlrpc-epi/Makefile create mode 100644 net/xmlrpc-epi/distinfo create mode 100644 net/xmlrpc-epi/patches/patch-Makefile_in create mode 100644 net/xmlrpc-epi/patches/patch-configure_in create mode 100644 net/xmlrpc-epi/patches/patch-sample_Makefile_in create mode 100644 net/xmlrpc-epi/patches/patch-src_Makefile_in create mode 100644 net/xmlrpc-epi/patches/patch-src_xml_element_c create mode 100644 net/xmlrpc-epi/patches/patch-src_xmlrpc_c create mode 100644 net/xmlrpc-epi/pkg/DESCR create mode 100644 net/xmlrpc-epi/pkg/PFRAG.shared create mode 100644 net/xmlrpc-epi/pkg/PLIST diff --git a/net/xmlrpc-epi/Makefile b/net/xmlrpc-epi/Makefile new file mode 100644 index 00000000000..cf5e85d61b3 --- /dev/null +++ b/net/xmlrpc-epi/Makefile @@ -0,0 +1,35 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2007/02/08 03:23:35 todd Exp $ + +COMMENT= "XML-RPC C/C++ client-server implementation" +CATEGORIES= net devel textproc + +DISTNAME= xmlrpc-epi-0.51 +SHARED_LIBS += xmlrpc 0.3 + +HOMEPAGE= http://xmlrpc-epi.sourceforge.net/ + +WANTLIB += c expat + +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xmlrpc-epi/} + +# BSD +PERMIT_DISTFILES_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_PACKAGE_CDROM= Yes + +LIB_DEPENDS= iconv::devel/gettext + +CONFIGURE_STYLE= gnu autoconf +USE_LIBTOOL= Yes +USE_GMAKE= Yes + +CONFIGURE_ENV+= CPPFLAGS="-I${PREFIX}/include" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +CFLAGS+= -I${PREFIX}/include + +LDFLAGS= -L${PREFIX}/lib -liconv + +post-extract: + rm -rf ${WRKSRC}/expat + +.include diff --git a/net/xmlrpc-epi/distinfo b/net/xmlrpc-epi/distinfo new file mode 100644 index 00000000000..e7917277d77 --- /dev/null +++ b/net/xmlrpc-epi/distinfo @@ -0,0 +1,4 @@ +MD5 (xmlrpc-epi-0.51.tar.gz) = 51c5f062365f82ff1c26c2763e7f0654 +RMD160 (xmlrpc-epi-0.51.tar.gz) = c505ee80460cbf521cdee8895a02273d5a773e8e +SHA1 (xmlrpc-epi-0.51.tar.gz) = dc986663a1d996844dacd8787bee427a03a0c01b +SIZE (xmlrpc-epi-0.51.tar.gz) = 458208 diff --git a/net/xmlrpc-epi/patches/patch-Makefile_in b/net/xmlrpc-epi/patches/patch-Makefile_in new file mode 100644 index 00000000000..40ccd0e027e --- /dev/null +++ b/net/xmlrpc-epi/patches/patch-Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-Makefile_in,v 1.1.1.1 2007/02/08 03:23:35 todd Exp $ +--- Makefile.in.orig Thu Feb 1 23:16:01 2007 ++++ Makefile.in Thu Feb 1 23:16:08 2007 +@@ -77,7 +77,7 @@ RANLIB = @RANLIB@ + STRIP = @STRIP@ + VERSION = @VERSION@ + +-SUBDIRS = expat src sample ++SUBDIRS = src sample + + CHANGE_LOG_GEN_BIN = scripts/cvs2cl.pl + CHANGE_LOG_GEN_FLAGS = -t -r -b --accum -I ChangeLog --gmt --prune diff --git a/net/xmlrpc-epi/patches/patch-configure_in b/net/xmlrpc-epi/patches/patch-configure_in new file mode 100644 index 00000000000..3981c2cacba --- /dev/null +++ b/net/xmlrpc-epi/patches/patch-configure_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-configure_in,v 1.1.1.1 2007/02/08 03:23:35 todd Exp $ +--- configure.in.orig Thu Feb 1 23:14:28 2007 ++++ configure.in Thu Feb 1 23:14:39 2007 +@@ -36,7 +36,7 @@ AC_FUNC_STRFTIME + + AC_CHECK_FUNCS(mktime strstr) + +-AC_OUTPUT(src/Makefile Makefile sample/Makefile expat/Makefile expat/xmltok/Makefile expat/xmlparse/Makefile) ++AC_OUTPUT(src/Makefile Makefile sample/Makefile) + + + diff --git a/net/xmlrpc-epi/patches/patch-sample_Makefile_in b/net/xmlrpc-epi/patches/patch-sample_Makefile_in new file mode 100644 index 00000000000..978b80b0b80 --- /dev/null +++ b/net/xmlrpc-epi/patches/patch-sample_Makefile_in @@ -0,0 +1,12 @@ +$OpenBSD: patch-sample_Makefile_in,v 1.1.1.1 2007/02/08 03:23:35 todd Exp $ +--- sample/Makefile.in.orig Thu Feb 1 23:27:51 2007 ++++ sample/Makefile.in Thu Feb 1 23:28:04 2007 +@@ -111,7 +111,7 @@ PROGRAMS = $(bin_PROGRAMS) + + DEFS = @DEFS@ -I. -I$(srcdir) + CPPFLAGS = @CPPFLAGS@ +-LDFLAGS = @LDFLAGS@ ++LDFLAGS = @LDFLAGS@ -liconv + LIBS = @LIBS@ + sample_OBJECTS = sample.$(OBJEXT) + sample_DEPENDENCIES = ../src/libxmlrpc.la diff --git a/net/xmlrpc-epi/patches/patch-src_Makefile_in b/net/xmlrpc-epi/patches/patch-src_Makefile_in new file mode 100644 index 00000000000..af9ad092b33 --- /dev/null +++ b/net/xmlrpc-epi/patches/patch-src_Makefile_in @@ -0,0 +1,37 @@ +$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2007/02/08 03:23:35 todd Exp $ +--- src/Makefile.in.orig Sun Jun 23 18:48:29 2002 ++++ src/Makefile.in Wed Feb 7 18:47:17 2007 +@@ -75,11 +75,10 @@ RANLIB = @RANLIB@ + STRIP = @STRIP@ + VERSION = @VERSION@ + +-INCLUDES = -I../liblm -I../expat/xmltok -I../expat/xmlparse -I/usr/local/ssl/include ++INCLUDES = -I../liblm + + lib_LTLIBRARIES = libxmlrpc.la + +-libxmlrpc_la_LIBADD = ../expat/xmltok/libexpat_tok.la ../expat/xmlparse/libexpat_parse.la + + libxmlrpc_la_SOURCES = base64.c encodings.c queue.c simplestring.c xml_element.c xml_to_dandarpc.c xml_to_xmlrpc.c xml_to_soap.c xmlrpc.c xmlrpc_introspection.c system_methods.c + +@@ -128,10 +127,8 @@ LTLIBRARIES = $(lib_LTLIBRARIES) + + DEFS = @DEFS@ -I. -I$(srcdir) + CPPFLAGS = @CPPFLAGS@ +-LDFLAGS = @LDFLAGS@ ++LDFLAGS = @LDFLAGS@ -liconv -lexpat + LIBS = @LIBS@ +-libxmlrpc_la_DEPENDENCIES = ../expat/xmltok/libexpat_tok.la \ +-../expat/xmlparse/libexpat_parse.la + libxmlrpc_la_OBJECTS = base64.lo encodings.lo queue.lo simplestring.lo \ + xml_element.lo xml_to_dandarpc.lo xml_to_xmlrpc.lo xml_to_soap.lo \ + xmlrpc.lo xmlrpc_introspection.lo system_methods.lo +@@ -139,7 +136,7 @@ CFLAGS = @CFLAGS@ + COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) + LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) + CCLD = $(CC) +-LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ ++LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -liconv -o $@ + HEADERS = $(include_HEADERS) + + DIST_COMMON = README Makefile.am Makefile.in diff --git a/net/xmlrpc-epi/patches/patch-src_xml_element_c b/net/xmlrpc-epi/patches/patch-src_xml_element_c new file mode 100644 index 00000000000..a9038b1a285 --- /dev/null +++ b/net/xmlrpc-epi/patches/patch-src_xml_element_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_xml_element_c,v 1.1.1.1 2007/02/08 03:23:35 todd Exp $ +--- src/xml_element.c.orig Wed Feb 7 18:44:03 2007 ++++ src/xml_element.c Wed Feb 7 18:44:29 2007 +@@ -88,10 +88,10 @@ static const char rcsid[] = "#(@) $Id: x + #include + #include + #include ++#include + + #include "xml_element.h" + #include "queue.h" +-#include "xmlparse.h" + #include "encodings.h" + + #define my_free(thing) if(thing) {free(thing); thing = 0;} diff --git a/net/xmlrpc-epi/patches/patch-src_xmlrpc_c b/net/xmlrpc-epi/patches/patch-src_xmlrpc_c new file mode 100644 index 00000000000..5ecedb4d993 --- /dev/null +++ b/net/xmlrpc-epi/patches/patch-src_xmlrpc_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_xmlrpc_c,v 1.1.1.1 2007/02/08 03:23:35 todd Exp $ +--- src/xmlrpc.c.orig Wed Feb 7 18:45:59 2007 ++++ src/xmlrpc.c Wed Feb 7 18:46:16 2007 +@@ -117,10 +117,10 @@ static const char rcsid[] = + #include + #include + #include ++#include + + #include "queue.h" + #include "xmlrpc.h" +-#include "xmlparse.h" + #include "base64.h" + + #include "xml_to_xmlrpc.h" diff --git a/net/xmlrpc-epi/pkg/DESCR b/net/xmlrpc-epi/pkg/DESCR new file mode 100644 index 00000000000..84ac5444ccb --- /dev/null +++ b/net/xmlrpc-epi/pkg/DESCR @@ -0,0 +1,8 @@ +xmlrpc-epi is an implementation of the xmlrpc protocol +in C. It provides an easy to use API for developers to +serialize RPC requests to and from XML. It does *not* +include a transport layer, such as HTTP. The API is +primarily based upon proprietary code written for +internal usage at Epinions.com, and was later modified +to incorporate concepts from the xmlrpc protocol. It +passed the xmlrpc validation test suite in December 2000. diff --git a/net/xmlrpc-epi/pkg/PFRAG.shared b/net/xmlrpc-epi/pkg/PFRAG.shared new file mode 100644 index 00000000000..a0bb551cac4 --- /dev/null +++ b/net/xmlrpc-epi/pkg/PFRAG.shared @@ -0,0 +1,2 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2007/02/08 03:23:35 todd Exp $ +@lib lib/libxmlrpc.so.${LIBxmlrpc_VERSION} diff --git a/net/xmlrpc-epi/pkg/PLIST b/net/xmlrpc-epi/pkg/PLIST new file mode 100644 index 00000000000..bbf9d5433c0 --- /dev/null +++ b/net/xmlrpc-epi/pkg/PLIST @@ -0,0 +1,19 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2007/02/08 03:23:35 todd Exp $ +%%SHARED%% +bin/client +bin/hello_client +bin/hello_server +bin/memtest +bin/sample +bin/server +bin/server_compliance_test +include/base64.h +include/encodings.h +include/queue.h +include/simplestring.h +include/xml_element.h +include/xml_to_xmlrpc.h +include/xmlrpc.h +include/xmlrpc_introspection.h +lib/libxmlrpc.a +lib/libxmlrpc.la