Soup is a SOAP (Simple Object Access Protocol) implementation in C.

It provides an queued asynchronous callback-based mechanism for sending
and servicing SOAP requests, and a WSDL (Web Service Definition Language)
to C compiler which generates client stubs and server skeletons for easily
calling and implementing SOAP methods.

ok todd@
This commit is contained in:
marcm 2002-12-03 19:39:32 +00:00
parent fa81b9fc3d
commit 04d8022c67
9 changed files with 268 additions and 0 deletions

35
devel/soup/Makefile Normal file
View File

@ -0,0 +1,35 @@
# $OpenBSD: Makefile,v 1.1.1.1 2002/12/03 19:39:32 marcm Exp $
COMMENT= "a SOAP (Simple Object Access Protocol) implementation in C"
DISTNAME= soup-0.7.4
CATEGORIES= devel
HOMEPAGE= http://www.gnome.org/
MAINTAINER= Marc Matteo <marcm@openbsd.org>
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/soup/0.7/}
EXTRACT_SUFX= .tar.bz2
LIB_DEPENDS= glib.1.2,gmodule.1.2::devel/glib \
popt::devel/popt \
xml.9.17::textproc/libxml1
SEPARATE_BUILD= concurrent
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --with-libxml=1
CONFIGURE_ARGS+= --disable-glib2
CONFIGURE_ARGS+= --disable-gtk-doc
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.mk>

3
devel/soup/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (soup-0.7.4.tar.bz2) = 848ccf5e7616cd897593bab72bbc9b5a
RMD160 (soup-0.7.4.tar.bz2) = cb304e8d14d9e8322ce951df21261fc8a2a483c8
SHA1 (soup-0.7.4.tar.bz2) = 4b5ebaa22cff35ae82dde8cc0a44408b65018359

View File

@ -0,0 +1,45 @@
$OpenBSD: patch-configure,v 1.1.1.1 2002/12/03 19:39:32 marcm Exp $
--- configure.orig Wed Oct 16 08:48:58 2002
+++ configure Wed Oct 16 08:54:45 2002
@@ -3087,6 +3087,16 @@ newos6*)
lt_cv_file_magic_test_file=/usr/lib/libnls.so
;;
+openbsd*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
+ else
+ lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
+ fi
+ ;;
+
osf3* | osf4* | osf5*)
# this will be overridden with pass_all, but let us keep it just in case
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
@@ -4797,8 +4807,8 @@ else
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
- hardcode_libdir_flag_spec='-R$libdir'
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='${wl}-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no
;;
@@ -5281,10 +5291,9 @@ newsos6)
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=yes
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH

View File

@ -0,0 +1,72 @@
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2002/12/03 19:39:32 marcm Exp $
--- ltmain.sh.orig Wed Oct 16 08:47:01 2002
+++ ltmain.sh Wed Oct 16 08:48:43 2002
@@ -1037,6 +1037,17 @@ compiler."
continue
;;
+ -pthread)
+ case $host in
+ *-*-openbsd*)
+ deplibs="$deplibs $arg"
+ ;;
+ *)
+ continue
+ ;;
+ esac
+ ;;
+
-module)
module=yes
continue
@@ -1473,6 +1484,9 @@ compiler."
fi
continue
;;
+ -pthread)
+ continue
+ ;;
%DEPLIBS%)
alldeplibs=yes
continue
@@ -4412,40 +4426,6 @@ relink_command=\"$relink_command\""
# Exit here if they wanted silent mode.
test "$show" = ":" && exit 0
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- echo " $libdir"
- done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
- fi
- if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
exit 0
;;

View File

@ -0,0 +1,41 @@
$OpenBSD: patch-src_libsoup_soup-message_c,v 1.1.1.1 2002/12/03 19:39:32 marcm Exp $
--- src/libsoup/soup-message.c.orig Fri Nov 22 21:29:02 2002
+++ src/libsoup/soup-message.c Fri Nov 22 21:29:54 2002
@@ -907,9 +907,9 @@ typedef struct {
SoupHandlerKind kind;
union {
+ const gchar *header;
guint errorcode;
SoupErrorClass errorclass;
- const gchar *header;
} data;
} SoupHandlerData;
@@ -922,7 +922,7 @@ static SoupHandlerData global_handlers [
redirect_handler,
NULL,
RESPONSE_HEADER_HANDLER,
- { (guint) "Location" }
+ { "Location" }
},
/*
* Handle authorization.
@@ -932,7 +932,7 @@ static SoupHandlerData global_handlers [
(SoupCallbackFn) authorize_handler,
GINT_TO_POINTER (FALSE),
RESPONSE_ERROR_CODE_HANDLER,
- { 401 }
+ { GINT_TO_POINTER(401) }
},
/*
* Handle proxy authorization.
@@ -942,7 +942,7 @@ static SoupHandlerData global_handlers [
(SoupCallbackFn) authorize_handler,
GINT_TO_POINTER (TRUE),
RESPONSE_ERROR_CODE_HANDLER,
- { 407 }
+ { GINT_TO_POINTER(407) }
},
{ 0 }
};

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_libsoup_soup-queue_c,v 1.1.1.1 2002/12/03 19:39:32 marcm Exp $
--- src/libsoup/soup-queue.c.orig Thu Oct 17 09:49:11 2002
+++ src/libsoup/soup-queue.c Thu Oct 17 09:49:16 2002
@@ -30,7 +30,7 @@
#include "soup-ssl.h"
#include "soup-transfer.h"
-static GSList *soup_active_requests = NULL, *soup_active_request_next = NULL;
+GSList *soup_active_requests = NULL, *soup_active_request_next = NULL;
static guint soup_queue_idle_tag = 0;

6
devel/soup/pkg/DESCR Normal file
View File

@ -0,0 +1,6 @@
Soup is a SOAP (Simple Object Access Protocol) implementation in C.
It provides an queued asynchronous callback-based mechanism for sending and
servicing SOAP requests, and a WSDL (Web Service Definition Language) to C
compiler which generates client stubs and server skeletons for easily calling
and implementing SOAP methods.

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2002/12/03 19:39:32 marcm Exp $
lib/libsoup-apache.so.5.0
lib/libsoup.so.5.0
DYNLIBDIR(%D/lib)

50
devel/soup/pkg/PLIST Normal file
View File

@ -0,0 +1,50 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2002/12/03 19:39:32 marcm Exp $
bin/soup-config
bin/soup-httpd
bin/soup-ssl-proxy
bin/soup-wsdl
include/soup/libsoup/soup-context.h
include/soup/libsoup/soup-dav-server.h
include/soup/libsoup/soup-dav.h
include/soup/libsoup/soup-env.h
include/soup/libsoup/soup-error.h
include/soup/libsoup/soup-fault.h
include/soup/libsoup/soup-headers.h
include/soup/libsoup/soup-message.h
include/soup/libsoup/soup-method.h
include/soup/libsoup/soup-misc.h
include/soup/libsoup/soup-ntlm.h
include/soup/libsoup/soup-parser.h
include/soup/libsoup/soup-serializer.h
include/soup/libsoup/soup-server-auth.h
include/soup/libsoup/soup-server.h
include/soup/libsoup/soup-socket.h
include/soup/libsoup/soup-uri.h
include/soup/libsoup/soup.h
include/soup/libwsdl/wsdl-param.h
include/soup/libwsdl/wsdl-schema-glib.h
include/soup/libwsdl/wsdl-schema.h
include/soup/libwsdl/wsdl-soap-marshal.h
include/soup/libwsdl/wsdl-soap-memory.h
include/soup/libwsdl/wsdl-soap-parse.h
include/soup/libwsdl/wsdl-typecodes.h
include/soup/libwsdl/wsdl.h
lib/libsoup-apache.a
lib/libsoup-apache.la
lib/libsoup.a
lib/libsoup.la
lib/pkgconfig/soup.pc
lib/soupConf.sh
lib/soup_apacheConf.sh
lib/soup_wsdlConf.sh
share/aclocal/soup.m4
%%SHARED%%
@comment @exec mkdir -p %D/share/gtk-doc/html/soup
@comment @dirrm share/gtk-doc/html/soup
@comment @dirrm share/gtk-doc/html
@comment @dirrm share/gtk-doc
@comment @dirrm share/aclocal
@comment @dirrm lib/pkgconfig
@dirrm include/soup/libwsdl
@dirrm include/soup/libsoup
@dirrm include/soup