--- libaws-2.2dfsg.orig/patches/series +++ libaws-2.2dfsg/patches/series @@ -0,0 +1,3 @@ +docs.patch +demos.patch +ada2wsdl.patch --- libaws-2.2dfsg.orig/patches/docs.patch +++ libaws-2.2dfsg/patches/docs.patch @@ -0,0 +1,287 @@ +Index: libaws-2.2/docs/makefile +=================================================================== +--- libaws-2.2.orig/docs/makefile 2006-07-30 22:14:50.000000000 +0200 ++++ libaws-2.2/docs/makefile 2006-07-30 22:15:09.000000000 +0200 +@@ -1,6 +1,5 @@ + +-.SILENT: +- ++.SUFFIXES: + + BUILD_DOC_SCRIPT = true + +@@ -14,88 +13,21 @@ + subtype generic limited access all tagged abstract renames \ + pragma new case when null + +-APIFILES = ../src/aws.ads.texi \ +- ../src/aws-attachments.ads.texi \ +- ../src/aws-client.ads.texi \ +- ../src/aws-client-hotplug.ads.texi \ +- ../src/aws-communication-client.ads.texi \ +- ../src/aws-communication-server.ads.texi \ +- ../src/aws-communication.ads.texi \ +- ../src/aws-config-ini.ads.texi \ +- ../src/aws-config-set.ads.texi \ +- ../src/aws-config.ads.texi \ +- ../src/aws-containers-tables.ads.texi \ +- ../src/aws-default.ads.texi \ +- ../src/aws-dispatchers-callback.ads.texi \ +- ../src/aws-dispatchers.ads.texi \ +- ../src/aws-exceptions.ads.texi \ +- ../src/aws-headers.ads.texi \ +- ../src/aws-headers-values.ads.texi \ +- ../src/aws-ldap-client.ads.texi \ +- ../src/aws-log.ads.texi \ +- ../src/aws-messages.ads.texi \ +- ../src/aws-mime.ads.texi \ +- ../src/aws-net.ads.texi \ +- ../src/aws-net-buffered.ads.texi \ +- ../src/aws-net-log.ads.texi \ +- ../src/aws-net-log-callbacks.ads.texi \ +- ../src/aws-net-ssl.ads.texi \ +- ../src/aws-net-ssl-certificate.ads.texi \ +- ../src/aws-parameters.ads.texi \ +- ../src/aws-pop.ads.texi \ +- ../src/aws-resources-files.ads.texi \ +- ../src/aws-resources-embedded.ads.texi \ +- ../src/aws-resources-streams.ads.texi \ +- ../src/aws-resources-streams-disk.ads.texi \ +- ../src/aws-resources-streams-disk-once.ads.texi \ +- ../src/aws-resources-streams-memory.ads.texi \ +- ../src/aws-resources-streams-memory-zlib.ads.texi \ +- ../src/aws-resources.ads.texi \ +- ../src/aws-response.ads.texi \ +- ../src/aws-server-hotplug.ads.texi \ +- ../src/aws-server-push.ads.texi \ +- ../src/aws-server-status.ads.texi \ +- ../src/aws-server-log.ads.texi \ +- ../src/aws-server.ads.texi \ +- ../src/aws-services-callbacks.ads.texi \ +- ../src/aws-services-directory.ads.texi \ +- ../src/aws-services-dispatchers-linker.ads.texi \ +- ../src/aws-services-dispatchers-method.ads.texi \ +- ../src/aws-services-dispatchers-uri.ads.texi \ +- ../src/aws-services-dispatchers-virtual_host.ads.texi \ +- ../src/aws-services-dispatchers.ads.texi \ +- ../src/aws-services-download.ads.texi \ +- ../src/aws-services-page_server.ads.texi \ +- ../src/aws-services-split_pages.ads.texi \ +- ../src/aws-services-split_pages-uniform.ads.texi \ +- ../src/aws-services-split_pages-uniform-alpha.ads.texi \ +- ../src/aws-services-split_pages-uniform-overlapping.ads.texi \ +- ../src/aws-services-split_pages-alpha.ads.texi \ +- ../src/aws-services-split_pages-alpha-bounded.ads.texi \ +- ../src/aws-services-transient_pages.ads.texi \ +- ../src/aws-session.ads.texi \ +- ../src/aws-smtp-client.ads.texi \ +- ../src/aws-smtp.ads.texi \ +- ../src/aws-status.ads.texi \ +- ../src/aws-templates.ads.texi \ +- ../src/aws-translator.ads.texi \ +- ../src/aws-url.ads.texi \ +- ../xsrc/aws-jabber.ads.texi \ +- ../soap/soap.ads.texi \ +- ../soap/soap-client.ads.texi \ +- ../soap/soap-dispatchers.ads.texi \ +- ../soap/soap-dispatchers-callback.ads.texi \ +- ../soap/soap-message-xml.ads.texi \ +- ../soap/soap-message.ads.texi \ +- ../soap/soap-parameters.ads.texi \ +- ../soap/soap-types.ads.texi +- +-build_doc: $(APIFILES) aws_docs sg_docs +- echo "" +- echo AWS Documentation built with success. +- ${MAKE} -C ../templates_parser doc ++DIRS := ../src ../wsrc ../soap ../ssl ../xsrc ++vpath %.ads $(DIRS) ../include ++ ++APIREFS := $(foreach dir,$(DIRS),$(wildcard $(dir)/*.ads)) \ ++ $(wildcard ../include/strings_cutter.ads) \ ++ $(wildcard ../include/zlib*.ads) \ ++ $(wildcard ../include/memory_streams.ads) ++ ++APIFILES := $(foreach f,$(APIREFS),$(notdir $(f)).texi) + +-aws_docs: aws.texi aws.pdf aws.ps aws.html aws.txt aws.info ++build_doc: aws_docs sg_docs ++ @echo "" ++ @echo AWS Documentation built with success. ++ ++aws_docs: aws.pdf aws.ps aws.html aws.txt aws.info + + force: + +@@ -122,12 +54,9 @@ + %.ads.texi: %.ads ada.sed gentexifile + ./gentexifile $< NOGROUP + +-%.adb.texi: %.adb ada.sed gentexifile +- ./gentexifile $< NOGROUP +- + %.dvi: %.texi + ifneq (${TEXI2DVI},) +- echo Building $@ ++ @echo Building $@ + -${TEXI2DVI} --expand --clean --quiet $< + else + @echo "--------------------------------------------------------" +@@ -137,7 +66,7 @@ + + %.ps: %.dvi + ifneq (${DVIPS},) +- echo Building $@ ++ @echo Building $@ + -${DVIPS} -q $< -o $@ + else + @echo "------------------------------------------------------" +@@ -148,7 +77,7 @@ + %.pdf: %.texi + ifneq (${TEXI2DVI},) + ifneq (${PDFTEX},) +- echo Building $@ ++ @echo Building $@ + ${TEXI2DVI} -p --expand --clean --quiet $< + else + @echo "------------------------------------------------" +@@ -163,8 +92,8 @@ + + %.info: %.texi + ifneq (${MAKEINFO},) +- echo Building $@ +- -${MAKEINFO} $< ++ @echo Building $@ ++ -${MAKEINFO} --no-split $< + else + @echo "---------------------------------------------------" + @echo "makeinfo not found, cannot build INFO documentation" +@@ -173,7 +102,7 @@ + + %.html: %.texi + ifneq (${MAKEINFO},) +- echo Building $@ ++ @echo Building $@ + -${MAKEINFO} --html --no-split --css-include=aws.css --ifinfo $< + else + @echo "---------------------------------------------------" +@@ -183,7 +112,7 @@ + + %.txt: %.texi + ifneq (${MAKEINFO},) +- echo Building $@ ++ @echo Building $@ + -${MAKEINFO} --plaintext --no-headers $< --output $@ + else + @echo "---------------------------------------------------" +@@ -198,11 +127,11 @@ + + ifeq (${BUILD_DOC_SCRIPT},false) + aws.texi: prog aws.texi.tmplt +- echo build from ada ++ @echo build from ada + ./build | tr -d '\r' > aws.texi + else + aws.texi: aws.texi.tmplt +- echo build from script ++ @echo build from script + sed -f ./gen_doc.sed < aws.texi.tmplt > aws.texi + endif + +@@ -214,60 +143,13 @@ + exit 1; \ + fi; + +-# apiref can be set to gnathtml_apiref or adabrowse_apiref to select the tool +-# used to generate the API cross-reference. +-apiref: gnathtml_apiref +- +-APIREFS = src/a*.ad[sb] templates_parser/src/templates*.ad[sb] xsrc/*.ad* \ +- include/strings_cutter.ad[sb] include/zlib*.ad[sb] \ +- include/memory_streams.ad[sb] \ +- soap/soap*.ad[sb] templates_parser/xsrc/templates*.ad[sb] +- +-pref1 = $(BDIR)/obj +-pref2 = $(BDIR)/include +- +-# API cross-references using gnathtml +- +-gnathtml_apiref: check_api +- (cd ..; fileset=; \ +- for file in $(APIREFS); do \ +- echo -n $$file; \ +- bfile=`basename $$file | sed -e 's/\.ad[sb]/.ali/'`; \ +- if [ -f $(pref1)/$$bfile ] || [ -f $(pref2)/$$bfile ]; then \ +- echo " included"; \ +- fileset="$$fileset `basename $$file`"; \ +- else \ +- echo " skipped"; \ +- fi; \ +- done; \ +- gnathtml.pl -Isrc -Iinclude -Isoap -Ixsrc -I$(pref1) -I$(pref2) \ +- -Itemplates_parser/src -Itemplates_parser/xsrc \ +- -odocs/html $$fileset; \ +- ) +- $(MV) html/index.htm html/aws_index.htm +- +-# API cross-references using AdaBrowse +- +-adabrowse_apiref: check_api +- (cd ..; \ +- for file in $(APIREFS); \ +- do \ +- echo -n $$file; \ +- if [ -f `echo $$file | sed -e 's/\.ad[sb]/.ali/'` ]; then \ +- echo " included"; \ +- adabrowse -o docs\\html\\ -f $$file -Isrc -Iinclude \ +- -Itemplates_parser/src -Itemplates_parser/xsrc; \ +- else \ +- echo " skipped"; \ +- fi; \ +- done; \ +- ) ++aws.info aws.pdf aws.dvi aws.txt aws.html: $(APIFILES) + + clean: +- -$(RM) -f aws.texi aws.dvi aws.html aws.info* aws.log aws.ps aws.txt \ +- $(APIFILES) *~ *.o *.ali genout ++ -$(RM) -f aws.texi aws.dvi aws.html aws.info* aws.log aws.ps aws.txt aws.pdf ++ -$(RM) -f *.ads.texi *~ *.o *.ali genout .ads.texi ada.sed + -$(RM) -f style-guide.dvi style-guide.html style-guide.info* \ +- style-guide.log style-guide.ps style-guide.txt ++ style-guide.log style-guide.ps style-guide.pdf style-guide.txt + + clean_apiref: + -$(RM) -fr html +Index: libaws-2.2/docs/aws.texi.tmplt +=================================================================== +--- libaws-2.2.orig/docs/aws.texi.tmplt 2006-08-09 18:22:25.000000000 +0200 ++++ libaws-2.2/docs/aws.texi.tmplt 2006-08-09 18:23:44.000000000 +0200 +@@ -10,6 +10,11 @@ + @afourpaper + @end iftex + ++@dircategory GNU Ada tools ++@direntry ++* AWS: (aws). The Ada Web Server. ++@end direntry ++ + @c ----------------------------------------- MACRO + + @c Macro used for all AWS examples +Index: libaws-2.2/docs/style-guide.texi +=================================================================== +--- libaws-2.2.orig/docs/style-guide.texi 2006-08-09 18:26:38.000000000 +0200 ++++ libaws-2.2/docs/style-guide.texi 2006-08-09 18:27:25.000000000 +0200 +@@ -17,6 +17,11 @@ + @settitle AWS Coding Style + @c %**end of header + ++@dircategory GNU Ada tools ++@direntry ++* AWS Style Guide: (style-guide). AWS Coding Style. ++@end direntry ++ + @ifinfo + @center AWS Coding Style + --- libaws-2.2dfsg.orig/patches/demos.patch +++ libaws-2.2dfsg/patches/demos.patch @@ -0,0 +1,229 @@ +Index: libaws-2.2/demos/demos.gpr +=================================================================== +--- libaws-2.2.orig/demos/demos.gpr 2006-07-30 12:58:20.000000000 +0200 ++++ libaws-2.2/demos/demos.gpr 2006-07-30 12:58:31.000000000 +0200 +@@ -1,117 +1,38 @@ +------------------------------------------------------------------------------- +--- Ada Web Server -- +--- -- +--- Copyright (C) 2003-2005 -- +--- AdaCore -- +--- -- +--- Authors: Dmitriy Anisimkov - Pascal Obry -- +--- -- +--- This library is free software; you can redistribute it and/or modify -- +--- it under the terms of the GNU General Public License as published by -- +--- the Free Software Foundation; either version 2 of the License, or (at -- +--- your option) any later version. -- +--- -- +--- This library is distributed in the hope that it will be useful, but -- +--- WITHOUT ANY WARRANTY; without even the implied warranty of -- +--- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- +--- General Public License for more details. -- +--- -- +--- You should have received a copy of the GNU General Public License -- +--- along with this library; if not, write to the Free Software Foundation, -- +--- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -- +--- -- +------------------------------------------------------------------------------- +- +-with "../shared"; +-with "../include/include"; +-with "../src/src"; +-with "../win32/win32"; +-with "demos_shared"; +- ++-- Ada Web server - project file to build the examples ++-- Copyright (c) 2004 Ludovic Brenta ++-- ++-- This program is free software; you can redistribute it and/or modify ++-- it under the terms of the GNU General Public License as published by ++-- the Free Software Foundation; either version 2 of the License, or ++-- (at your option) any later version. ++-- ++-- This program is distributed in the hope that it will be useful, ++-- but WITHOUT ANY WARRANTY; without even the implied warranty of ++-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++-- GNU General Public License for more details. ++-- ++-- You should normally copy the examples directory to a user-writable ++-- directory before trying to compile. ++with "aws.gpr"; ++with "xmlada2.gpr"; + project Demos is +- +- for Languages use ("Ada", "Project file"); +- +- Mains := ("hello_world.adb", "com_1.adb", "com_2.adb", "main.adb", +- "hotplug.adb", "dispatch.adb", "wps.adb", "ws.adb", +- "auth.adb", "text_input.adb", "vh_demo.adb", "res_demo.adb", +- "zdemo.adb", "split.adb", "web_mail.adb", "web_elements.adb", +- "web_elements_containers.ads", "web_elements_containers.adb"); +- +- Mains_XMLAda := ("soap_client.adb", "soap_server.adb", "soap_svs.adb", +- "soap_cvs.adb", "wsdl_demo_client.adb", +- "wsdl_demo_server.adb", "interoplab_main.adb", +- "soap_server_disp.adb", "test_jabber.adb"); +- +- for Source_Files use +- Mains & ("dispatch_cb.adb", "auth_cb.adb", "text_input_cb.adb", +- "vh_demo_cb.adb", "ws_cb.adb", "zdemo_cb.adb", "rdemo.adb", +- "hotplug_cb.adb", "hello_world_cb.adb", "res_demo_cb.adb", +- "rdemo-adains_png.ads", "rdemo-page3_html.ads", "demos.gpr"); +- +- for Main use Mains; +- +- case Shared.XMLAda is +- when "Installed" => +- for Main use project'Main & Mains_XMLAda; +- for Source_Files use +- project'Source_Files +- & Mains_XMLADA +- & ("hello_demo.ads", "hello_demo-client.adb", +- "hello_demo-server.adb", "hello_demo-types.ads", +- "wsdl_demo_server_cb.adb", "interoplab.ads", +- "interoplab-client.adb", "interoplab-types.ads", +- "soap_server_cb.adb", "soap_server_disp_cb.adb", +- "soap_svs_cb.adb", "soap_svs_cb.adb", +- "soapinterop-org-xsd-arrayoffloat_type_pkg.ads", +- "soapinterop-org-xsd-arrayofint_type_pkg.ads", +- "soapinterop-org-xsd-arrayofsoapstruct_type_pkg.ads", +- "soapinterop-org-xsd-arrayofstring_type_pkg.ads", +- "soapinterop-org-xsd-soapstruct_type_pkg.adb", +- "soapinterop-org-xsd-soapstruct_type_pkg.ads", +- "soapinterop-org-xsd.ads", +- "soapinterop-org.ads", "soapinterop.ads"); +- when "Disabled" => +- null; +- end case; +- +- case Shared.Build is +- when "Debug" => +- for Object_Dir use "../.build/debug/demos/obj"; +- for Exec_Dir use "../.build/debug/demos"; +- when "Release" => +- for Object_Dir use "../.build/release/demos/obj"; +- for Exec_Dir use "../.build/release/demos"; +- end case; +- +- --------- +- -- Ide -- +- --------- +- +- package Ide renames Shared.Ide; +- +- ------------ +- -- Binder -- +- ------------ +- +- package Binder renames Shared.Binder; +- +- ------------- +- -- Builder -- +- ------------- +- +- package Builder renames Shared.Builder; +- +- -------------- +- -- Compiler -- +- -------------- +- +- package Compiler renames Demos_Shared.Compiler; +- +- ------------ +- -- Linker -- +- ------------ +- +- package Linker renames Demos_Shared.Linker; +- ++ for Source_Dirs use ("."); ++ for Object_Dir use "obj"; ++ for Exec_Dir use "."; ++ ++ for Main use ("runme", "agent", "auth", "ws", "wps", "com_1", "com_2", ++ "main", "hotplug", "hello_world", "text_input", "vh_demo", ++ "dispatch", "res_demo", "zdemo", "split", "web_mail", ++ "test_jabber", "soap_client", "soap_server", "soap_svs", ++ "soap_cvs", "wsdl_demo_client", "wsdl_demo_server", ++ "interoplab_main", "soap_server_disp"); ++ ++ package Compiler is ++ for Default_Switches ("Ada") use ("-g", "-gnatafoy", "-gnatVa"); ++ end Compiler; ++ ++ package Linker is ++ for Default_Switches ("Ada") use (AWS.Linker_Switches, ++ XMLAda2.Linker_Switches); ++ end Linker; + end Demos; +Index: libaws-2.2/demos/makefile +=================================================================== +--- libaws-2.2.orig/demos/makefile 2006-07-30 13:02:35.000000000 +0200 ++++ libaws-2.2/demos/makefile 2006-07-30 13:02:43.000000000 +0200 +@@ -1,29 +1,40 @@ ++# AWS examples makefile ++# Copyright (c) 2004 Ludovic Brenta + +-build_res: +- echo Generate resources for res_demo +- $(AWSRES) -q -r rdemo adains.png page3.html +- +-build_wsdl: +- echo Generate stub/skel from WSDL documents +- $(WSDL2AWS) -q -f -doc hello.wsdl +- $(WSDL2AWS) -q -f -doc -noskel interoplab_main.wsdl +- +-force: +- +-AWSRES = ../$(BDIR)/tools/awsres +-WSDL2AWS = ../$(BDIR)/tools/wsdl2aws +- +-ifeq (${PRJ_XMLADA}, Installed) +-BUILD_EXT = build_wsdl +-endif +- +-setup: +- -$(MKDIR) -p ../$(BDIR)/demos/obj +- +-build: build_res $(BUILD_EXT) +- $(GNATMAKE) -Pdemos -XBuild=${PRJ_BUILD} -XXMLADA=${PRJ_XMLADA} +- $(GNATMAKE) -Pdemos_ssl -XSOCKET=${SOCKET} \ +- -XBuild=${PRJ_BUILD} -XXMLADA=${PRJ_XMLADA} ++# This program is free software; you can redistribute it and/or modify ++# it under the terms of the GNU General Public License as published by ++# the Free Software Foundation; either version 2 of the License, or ++# (at your option) any later version. ++ ++# This program is distributed in the hope that it will be useful, but ++# WITHOUT ANY WARRANTY; without even the implied warranty of ++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++# General Public License for more details. ++ ++# You should normally copy the examples directory to a user-writable ++# directory before trying to compile. ++ ++# This Makefile builds all the Ada Web Server examples, using the ++# Debian way of organising files. In particular, it uses project ++# files to do most of the work, instead of specifying dependencies ++# explicitly. ++ ++.SUFFIXES= ++ ++all: obj rdemo.ads hello_demo.ads interoplab.ads ++ gnatmake -Pdemos ++ ++rdemo.ads: adains.png page3.html ++ awsres -q -r rdemo $< ++ ++hello_demo.ads: hello.wsdl ++ wsdl2aws -q -f -doc $< ++ ++interoplab.ads: interoplab_main.wsdl ++ wsdl2aws -q -f -doc -noskel $< ++ ++obj: ++ mkdir -p obj + + clean: +- $(RM) -fr ../$(BDIR)/demos ++ rm -rf obj rdemo.ads hello_demo* interoplab-* interoplab.ads --- libaws-2.2dfsg.orig/patches/ada2wsdl.patch +++ libaws-2.2dfsg/patches/ada2wsdl.patch @@ -0,0 +1,33 @@ +Index: libaws-2.2/tools/ada2wsdl-options.adb +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ libaws-2.2/tools/ada2wsdl-options.adb 2006-07-30 12:57:08.000000000 +0200 +@@ -0,0 +1,28 @@ ++-- Ada2WSDL.Options - Debian-specific file ++-- Copyright (c) 2004, 2006 Ludovic Brenta ++-- ++-- This program is free software; you can redistribute it and/or modify ++-- it under the terms of the GNU General Public License as published by ++-- the Free Software Foundation; either version 2 of the License, or ++-- (at your option) any later version. ++-- ++-- This program is distributed in the hope that it will be useful, ++-- but WITHOUT ANY WARRANTY; without even the implied warranty of ++-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++-- GNU General Public License for more details. ++-- ++-- The upstream makefile normally generates this file before ++-- compiling the AWS tools. The generated file does however not ++-- contain the options appropriate for Debian. This file contains ++-- Debian-specific options. ++ ++with Ada2WSDL.Parser; ++package body Ada2WSDL.Options is ++ procedure Set_Default is ++ begin ++ Parser.Add_Option ("-aI/usr/share/ada/adainclude/xmlada2"); ++ Parser.Add_Option ("-aO/usr/lib/ada/adalib/xmlada2"); ++ Parser.Add_Option ("-aI/usr/share/ada/adainclude/aws"); ++ Parser.Add_Option ("-aO/usr/lib/ada/adalib/aws"); ++ end Set_Default; ++end Ada2WSDL.Options; --- libaws-2.2dfsg.orig/debian/ada2wsdl.1 +++ libaws-2.2dfsg/debian/ada2wsdl.1 @@ -0,0 +1,79 @@ +.TH ADA2WSDL 1 "11 JUN 2004" "GNU Ada Tools" "AWS User's Guide" +.SH NAME +ada2wsdl \- Generate a WDSL document from an Ada package specification +.SH SYNOPSIS +\fBada2wsdl\fR [options] \fIada_spec\fR +.SH DESCRIPTION +The Ada Web Server is a library that allows you to embed a web server +into your Ada application. It provides not only HTTP but also SOAP, +WSDL and several other facilities. Thus you can write full-fledged +web applications. + +WSDL (Web Service Definition Language) is a language based on XML. +WSDL documents describe, in a formal way, the interface to Web +Services. This description consists of the end-point (URL to the +server offering the service), the SOAPAction (needed to call the +remote procedure), the procedure names and a description of the input +and output parameters. + +Using \fBada2wsdl\fR, you can create a WSDL document that describes +Web Services provided by an Ada package. \fBada2wsdl\fR uses ASIS to +parse your Ada package specification, and generates a WSDL document by +mapping Ada types to Web Services types, and Ada subprograms to +operations. + +Please see the AWS User's guide for more details on how \fBada2wsdl\fR +works, and how you can use it to develop web services. + +.SH OPTIONS +.IP \fB-a\fR\ \fIurl\fR +Specify the URL for the Web Server address. Web Services will be +available at this address. A port can be specified on the URL, +\fBhttp://server[:port]\fR. The default value is \fBhttp://.../\fR. + +.IP \fB-f\fR +Force creation of the WSDL file. Overwrite exiting file with the +same name. + +.IP \fB-I\fR\ \fIpath\fR +Add path option for the ASIS compilation step. This option can appear +any number of time on the command line. + +.IP \fB-noenum\fR +Do not generate WSDL representation for Ada enumerations, map them to +standard string. + +.IP \fB-o\fR\ \fIfile\fR +Generate the WSDL document into \fIfile\fR. + +.IP \fB-q\fR +Quiet mode (no output). + +.IP \fB-s\fR\ \fIname\fR +Specify the Web Service name for the WSDL document, by default the +spec package's name is used. + +.IP \fB-v\fR +Verbose mode, display the parsed spec. + +.SH "BUGS" +\fBada2wsdl\fR does not handle constrained arrays in records. + +\fBUnbounded_String\fR are supported with full interoperability only +inside a record. + +Only unconstrained arrays are supported. + +Arrays with multiple dimensions are not supported. + +.SH "SEE ALSO" +.BR awsres (1), +.BR wsdl2aws (1) + +The Ada Web Server User's Guide in package libaws-doc. +.SH AUTHOR +\fBwsdl2aws\fR was written by Dmitriy Anisimkov +and Pascal Obry as part of the Ada Web Server. + +This manual page was written by Ludovic Brenta + for Debian GNU/Linux. --- libaws-2.2dfsg.orig/debian/aws.gpr +++ libaws-2.2dfsg/debian/aws.gpr @@ -0,0 +1,53 @@ +-- Ada Web Server project file for use with GNAT 3.15p +-- Copyright (c) 2004 Ludovic Brenta +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- This project file is designed to help build applications that use +-- Ada Web Server. Here is an example of how to use this project file: +-- +-- with "/usr/share/ada/adainclude/aws"; +-- project Example is +-- for Object_Dir use "obj"; +-- for Exec_Dir use "."; +-- for Main use ("example"); +-- package Linker renames AWS.Linker; +-- -- Alternatively, if you need additional switches: +-- -- package Linker is +-- -- for Default_Switches ("Ada") use (AWS.Ada_Switches & ...) +-- -- end Linker; +-- end Example; + +with "xmlada2.gpr"; +with "templates_parser.gpr"; +project AWS is + for Source_Dirs use ("/usr/share/ada/adainclude/aws"); + for Object_Dir use "/usr/lib/ada/adalib/aws"; + + package Naming is + -- Configuration for GNU/Linux using GNU TLS for strong crypto + for Body ("AWS.Net.SSL") use "aws-net-ssl__gnutls.adb"; + for Body ("AWS.Net.SSL.Certificate") + use "aws-net-ssl-certificate__gnutls.adb"; + for Body ("AWS.Net.Std") use "aws-net-std__gnat.adb"; + for Body ("AWS.OS_Lib") use "aws-os_lib__gnat.adb"; + for Body ("AWS.Translator.Conversion") + use "aws-translator-conversion__f.adb"; + for Spec ("SSL.Thin") use "ssl-thin__gnutls.ads"; + for Spec ("Templates_Parser.Configuration") + use "templates_parser-configuration__aws.ads"; + end Naming; + + Ada_Switches := "-laws"; + package Linker is + for Default_Switches ("Ada") use (Ada_Switches); + end Linker; +end AWS; --- libaws-2.2dfsg.orig/debian/awsres.1 +++ libaws-2.2dfsg/debian/awsres.1 @@ -0,0 +1,63 @@ +.TH AWSRES 1 "29 JAN 2004" "GNU Ada Tools" "AWS User's Guide" +.SH NAME +awsres \- build resource files for Ada Web Server applications +.SH SYNOPSIS +\fBawsres\fR [\fB-h\fR] [\fB-r\fR \fIunit\fR] [\fB-q\fR] \fIfile\fR... +.SH DESCRIPTION +The Ada Web Server is a library that allows you to embed a web server +into your Ada application. It provides not only HTTP but also SOAP, +WSDL and several other facilities. Thus you can write full-fledged +web applications. \fBawsres\fR allows you to embed resources, such as +pictures, into your final executable, so that your executable is +completely self-contained and does not need to read other files at run +time. + +\fBawsres\fR works by creating Ada source files that contain the data +for your resources as arrays of bytes. You then compile these Ada +source files into your executable. At run time, the AWS library +automatically loads the resources from the executable whenever +available. + +\fBawsres\fR creates one parent Ada package named, by default, `res', +and one child package for each of the \fIfiles\fR given on the command +line. The package `res' registers each resource when your application +starts. To link `res' into your executable you simply add a `with +res;' statement in one of your source files. +.SH EXAMPLE +.de Vb \" Begin verbatim text +.ft CW +.nf +.. +.de Ve \" End verbatim text +.ft R +.fi +.. +.Vb +$ ls +image.png +$ awsres image.png +AWSRes - Resource Creator v1.0 + +creating image.png... + -> registered + +$ ls +res.adb res.ads res-image_png.ads image.png +.Ve +.SH OPTIONS +.IP \fB-h\fR +Display help message. +.IP \fB-r\fR\ \fIname\fR +Set the root unit name. Default is `res'. +.IP \fB-q\fR +Quiet mode. +.SH "SEE ALSO" +.BR wsdl2aws (1) + +The Ada Web Server User's Guide in package libaws1-doc. +.SH AUTHOR +\fBawsres\fR was written by Dmitriy Anisimkov +and Pascal Obry as part of the Ada Web Server. + +This manual page was written by Ludovic Brenta + for Debian GNU/Linux. --- libaws-2.2dfsg.orig/debian/changelog +++ libaws-2.2dfsg/debian/changelog @@ -0,0 +1,173 @@ +libaws (2.2dfsg-1) unstable; urgency=low + + * Fake a new upstream release; new source tarball in which I removed the + IETF's non-free Request For Comments. Closes: #387250. + * debian/rules: ugly hack to take the "dfsg" part of the version into + account, and leave it out of sonames etc. There is no soname change. + * (I talked to upstream; they're not planning a new release before the + Etch freeze). + + -- Ludovic Brenta Wed, 20 Sep 2006 18:53:21 +0200 + +libaws (2.2-3) unstable; urgency=low + + * debian/rules, debian/ada2wsdl.gpr, debian/tools.gpr: + do not link the libaws.so object files statically into the tools + (package libaws-bin); reduces their size significantly. + * debian/control (libaws-dev): depend on libtemplates-parser-dev. + Closes: #387896. (Olleg, thanks for your patience). + + -- Ludovic Brenta Sun, 17 Sep 2006 22:30:01 +0200 + +libaws (2.2-2) unstable; urgency=low + + * aws.gpr: add a package Naming to tell gnatmake which files to use for + sgtrong crypto; we use GNU TLS. Closes: #387899. + + -- Ludovic Brenta Sun, 17 Sep 2006 21:09:41 +0200 + +libaws (2.2-1) unstable; urgency=low + + * New upstream version. Closes: #370560, #379921. + * debian/control: + (source) change maintainer's email address, I am now a full DD. + (build-depends): gnat (>= 3.15p) -> gnat (>= 4.1) + libasis-3.15p-1-dev -> libasis-dev (>= 2005) + libssl-dev -> libgnutls-dev + libxmlada1-dev -> libxmlada2-dev + - -> libtemplates_parser-dev + - -> quilt, texinfo, tetex-extra + (Standards-Version): update to 3.7.2 with no changes required. + (Architecture): add support for alpha, amd64, hppa, ia64 and s390. + (libaws2): rename to libaws2.2. + (libaws-dev): depend on libaws2.2 and gnat-4.1. + (libaws-bin): new package containing programs, will become mandatory for + multiarch. + (libaws-doc): provide the new web_elements (reusable pieces of web + applications) + * patches/series, + patches/demos.patch, + patches/docs.patch, + patches/ada2wsdl.patch: new; move from libaws_2.0p-11.diff.gz, and update. + * debian/rules: + - change the library's soname from libaws.so.2 to libaws.so.2.2 (new ABI) + - use quilt to apply and revert patches. + * debian/copyright: switch from GMGPL to pure GPL; explain. + + -- Ludovic Brenta Wed, 9 Aug 2006 21:08:18 +0200 + +libaws (2.0p-11) unstable; urgency=low + + * debian/rules (regexp): accept any character as part of the Debian + uplodad number. Closes: #359881. + + -- Ludovic Brenta Fri, 31 Mar 2006 08:14:06 +0200 + +libaws (2.0p-10) unstable; urgency=low + + * debian/control: enable support for GNU/kFreeBSD per request from + Aurélien Jarno. Build-depend on gnat (>= 3.15p-19), + libasis-3.15p-1-dev (>= 3.15p-10), and libxmlada-dev + (>= 1.0-3), which enable this support. Closes: #345060. + * debian/ada2wsdl.1: apply patch from Nicolas François that fixes a + typo. Thanks, Nicolas. Closes: #350486. + + -- Ludovic Brenta Wed, 8 Feb 2006 18:41:27 +0100 + +libaws (2.0p-9) unstable; urgency=low + + * debian/control: Add (>= 3.15p-9) to the existing Build-Depend on + libasis-3.15p-1-dev. Closes: #344699. + + -- Ludovic Brenta Mon, 26 Dec 2005 16:07:13 +0100 + +libaws (2.0p-8) unstable; urgency=low + + * debian/rules (ada2wsdl, awsres, wsdl2aws): pass -L. to the linker to + properly link against the just-built libaws.so. + + -- Ludovic Brenta Thu, 22 Dec 2005 12:54:13 +0100 + +libaws (2.0p-7) unstable; urgency=low + + * debian/rules: do not build the shared library twice, and do not put PIC + objects in the static library. Detect the number of CPUs available and + do a parallel build with that number instead of just 2. + * aws.gpr: remove the tools directory from the sources. + * tools.gpr: new. Use to build the tools. + + -- Ludovic Brenta Wed, 14 Dec 2005 09:45:17 +0100 + +libaws (2.0p-6) unstable; urgency=low + + * Bad, bad engineer! See what you've done! + * debian/control: build-depend on libasis-3.15p-dev on powerpc, too. Fixes + FTBFS on powerpc. + * debian/control: bump standards-version to 3.6.2. + + -- Ludovic Brenta Mon, 19 Sep 2005 20:34:12 +0200 + + +libaws (2.0p-5) unstable; urgency=low + + * Now that #177703 is resolved, build ada2wsdl on powerpc. + * Change maintainer's email address + + -- Ludovic Brenta Thu, 25 Aug 2005 23:13:23 +0200 + +libaws (2.0p-4) unstable; urgency=low + + * libaws-dev: Depend on zlib1g-dev. Closes: #268680. Also depend on + libldap2-dev, libssl-dev, and libxmlada1-dev for good measure. + * debian/rules: do not strip the static library. + + -- Ludovic Brenta Sat, 28 Aug 2004 17:56:19 +0200 + +libaws (2.0p-3) unstable; urgency=low + + * Do not use the same project file for ada2wsdl as for the other things; + ada2wsdl needs asis whereas the others don't. Fixes a FTBFS bug on + powerpc. + + -- Ludovic Brenta Tue, 13 Jul 2004 18:19:50 +0200 + +libaws (2.0p-2) unstable; urgency=low + + * Temporarily disable building ada2wsdl on powerpc. It requires asis, + and asis is not available on powerpc (see #177703). + * debian/rules (build): reorganised into several sub-targets. + * Update Standards-Version to 3.6.1.1. + + -- Ludovic Brenta Sat, 10 Jul 2004 17:31:30 +0200 + +libaws (2.0p-1) unstable; urgency=low + + * New upstream version. Change package name from libaws1 to libaws2. + * Build-Depend on libasis-3.15p-1-dev. + * libaws-doc: For the examples, replace the makefile with a simple one + and a GNAT project file. Both use the Debian paths to installed + libraries. Closes: #244815. + * debian/ada2wsdl.1: new man page. + * debian/wsdl2aws.1: updated man page. + + -- Ludovic Brenta Sat, 12 Jun 2004 20:15:35 +0200 + +libaws (1.4-2) unstable; urgency=low + + * Fix the maintainer's email address in control file. + * Force a recompile on powerpc. The buildd log reports a strange + (transient?) error. + * Build-Depend on gnat (>= 3.15p-7) to avoid problems with non-PIC code + in libgnat-3.15p-1 (= 3.15p-6). + + -- Ludovic Brenta Tue, 24 Feb 2004 16:21:51 +0100 + +libaws (1.4-1) unstable; urgency=low + + * Initial Release. Closes: #232471. + + -- Ludovic Brenta Fri, 13 Feb 2004 08:57:34 +0100 + +Local variables: +left-margin: 2 +End: --- libaws-2.2dfsg.orig/debian/control +++ libaws-2.2dfsg/debian/control @@ -0,0 +1,108 @@ +Source: libaws +Priority: optional +Maintainer: Ludovic Brenta +Build-Depends: debhelper (>= 4.0.0), libldap2-dev, libgnutls-dev, libxmlada2-dev, zlib1g-dev, gnat (>= 4.1), libasis-dev (>= 2005), libtemplates-parser-dev, texinfo, tetex-extra, quilt +Standards-Version: 3.7.2 + +Package: libaws-dev +Section: libdevel +Architecture: alpha amd64 hppa i386 ia64 kfreebsd-i386 powerpc s390 sparc +Depends: libaws2.2 (= ${Source-Version}), gnat-4.1, libldap2-dev, libgnutls-dev, libtemplates-parser-dev, libxmlada2-dev, zlib1g-dev, ${shlibs:Depends} +Recommends: libaws-bin (= ${Source-Version}) +Description: Ada Web Server development files + AWS is a complete framework to develop Web based applications. The + main part of the framework is the embedded Web server. This small yet + powerful Web server can be embedded into your application so your + application will be able to talk with a Web browser. Around this Web + server a lot of services have been developed. + . + WARNING: the license has changed to the pure GPL; see the copyright file. + . + - A Web parameters module. This module takes care of retrieving the + forms or URL parameters and to build an associative table for easy + access. + - A session server, this is a very important module to be able to + keep client's data from page to page. + - Support SOAP to develop Web Services. + - A tool to generate Web Services stubs/skeletons from a WSDL + document. + - A template parser, this module makes it possible to completely + separate the Web design from the code. No more scripting into your Web + page. + - Support for Secure Sockets (HTTPS/SSL), this is based on the GNU TLS + library. + - Support for large servers using dispatchers based on URI, request + methods. + - Support for virtual hosting (dispatchers based on the host name). + - Support for server push. + - A directory browser ready to be used in any application. + - A status page to get many information about the current AWS server. + - A log module. Log files keep information about all resources + requested to the server. + - Hotplug modules which can be loaded/unloaded dynamically to add + specific features to a server. + - A communication API to exchange data between applications using the + HTTP protocol. + - A configuration API to tune/change the server parameters without + recompilation. + - A client API to retrieve any Web page from a Web site. + - A Web Page service to build a simple static page server. + - Support for SMTP, LDAP and Jabber protocols. + +Package: libaws-bin +Section: devel +Architecture: alpha amd64 hppa i386 ia64 kfreebsd-i386 powerpc s390 sparc +Depends: ${shlibs:Depends} +Description: Ada Web Server utilities + AWS is a complete framework to develop Web based applications. The + main part of the framework is the embedded Web server. This small yet + powerful Web server can be embedded into your application so your + application will be able to talk with a Web browser. Around this Web + server a lot of services have been developed. + . + WARNING: the license has changed to the pure GPL; see the copyright file. + . + This package contains utility programs to help develop web applications + with AWS: + . + awsres transforms any text or binary file into an Ada unit which you + can compile into your application, thereby making your application + completely independent of any external files (think: embedded) + . + ada2wsdl, an ASIS program, reads Ada unit specifications and creates + descriptions in the Web Service Description Language, so that you can + advertise your web service application to the world. + . + wsdl2aws does the opposite job: it creates an Ada unit (spec and + skeleton body) conforming to a specified description in WSDL. + +Package: libaws2.2 +Section: libs +Architecture: alpha amd64 hppa i386 ia64 kfreebsd-i386 powerpc s390 sparc +Depends: ${shlibs:Depends} +Description: Ada Web Server shared library + AWS is a complete framework to develop Web based applications. The + main part of the framework is the embedded Web server. This small yet + powerful Web server can be embedded into your application so your + application will be able to talk with a Web browser. Around this Web + server a lot of services have been developed. + . + WARNING: the license has changed to the pure GPL; see the copyright file. + . + This is the runtime library for the Ada Web Server. + +Package: libaws-doc +Section: doc +Architecture: all +Description: Ada Web Server documentation + AWS is a complete framework to develop Web based applications. The + main part of the framework is the embedded Web server. This small yet + powerful Web server can be embedded into your application so your + application will be able to talk with a Web browser. Around this Web + server a lot of services have been developed. + . + WARNING: the license has changed to the pure GPL; see the copyright file. + . + This package contains the documentation for the Ada Web Server in + info, ASCII and HTML formats, as well as demos and source code of + reusable web elements. --- libaws-2.2dfsg.orig/debian/copyright +++ libaws-2.2dfsg/debian/copyright @@ -0,0 +1,58 @@ +This package was debianized by Ludovic Brenta on +Thu, 29 Jan 2004 14:57:34 +0100. + +It was downloaded from http://libre.act-europe.fr/aws + +Upstream Authors: Dmitriy Anisimkov and + Pascal Obry . + +Copyright: Copyright (c) 2000-2006 AdaCore + +This library is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or (at +your option) any later version. + +This library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this library; if not, write to the Free Software Foundation, +Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +The full text of the GNU Public License is available in +/usr/share/common-licenses/GPL. + +License change +-------------- + +AWS 2.2 has switched to the pure GNU GPL license. As a result, if +you use AWS 2.2 in your program, you have four options: + +- do not distribute your program at all (you can always use it for + yourself). + +- distribute your program under the terms of the GPL, i.e. with full + sources and the four freedoms: inspection, redistribution, + modification, and distribution of modified copies. + +- distribute your program in source form only, under licensing terms + of your choosing (perhaps under non-disclosure, non-redistribution + terms), and ask your licensees to recompile your program for + themselves. + +- contact AdaCore (sales@adacore.com) and purchase a GNAT-Modified + GPL which will allow you to distribute your program in binary-only + form without disclosing your sources. + +If you obtain AWS 2.2 or later from AdaCore's CVS or web server, you +may notice that the source files still contain the GNAT-Modified +license boilerplate. This boilerplate has no legal force; you must +ask AdaCore for clarification. The license is really the pure GPL. +In order to reduce the risk for confusion, I have removed this license +boilerplate from the sources in the Debian package. + +-- +Ludovic Brenta, 2006-07-13 --- libaws-2.2dfsg.orig/debian/rules +++ libaws-2.2dfsg/debian/rules @@ -0,0 +1,165 @@ +#!/usr/bin/make -f +# Debian build script for AWS - Copyright (c) 2003, 2004, 2005, 2006 +# Ludovic Brenta + +# This build script is free software; you can redistribute it and/or +# modify it under terms of the GNU General Public License as published +# by the Free Software Foundation; either version 2, or (at your +# option) any later version. This build script is distributed in the +# hope that it will be useful, but WITHOUT ANY WARRANTY; without even +# the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. You +# should have received a copy of the GNU General Public License +# distributed with this build script; see file +# /usr/share/common-licenses/GPL. If not, write to the Free Software +# Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +SHELL=/bin/bash +CC=gnatgcc + +export DH_COMPAT=4 +export SHELL=/bin/bash + +# Parse the version number from the change log: +# major.minor-revision +regexp:=^Version: \([0-9]\+\)\.\([0-9]\+\)dfsg-\(.\+\)$$ +major:=$(shell dpkg-parsechangelog | grep ^Version: | sed 's/$(regexp)/\1/') +minor:=$(shell dpkg-parsechangelog | grep ^Version: | sed 's/$(regexp)/\2/') +revision:=$(shell dpkg-parsechangelog | grep ^Version: | sed 's/$(regexp)/\3/') + +file_to_spec=sed -e "s/\.ads//" -e "s/-/./g" -e "s!.*/!!g" + +DEB_BUILD_ARCH=$(shell dpkg-architecture -qDEB_BUILD_ARCH) +CPUS := $(shell getconf _NPROCESSORS_ONLN) + +.SUFFIXES: + +build: patch build-stamp +build-stamp: static-lib shared-lib tools doc + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + rm -rf debian/tmp obj-static obj-shared obj-tools libaws.so + $(MAKE) -C docs $@ + -quilt pop -a + dh_clean -a -i + +# Build architecture-independent files here. +binary-indep: build-stamp + dh_testdir + dh_testroot + : # The doc package + dh_installinfo -plibaws-doc docs/aws.info docs/style-guide.info + dh_installdocs -plibaws-doc docs/*.html docs/*.txt readme.txt + dh_installexamples -plibaws-doc demos/* -Xmakefile + dh_installexamples -plibaws-doc web_elements + dh_fixperms -i + dh_installchangelogs -i + dh_compress -i -X.adb -X.ads -X.thtml -X.wsdl + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +DIRS := config include include/ai302 soap src ssl xsrc +SOURCES := $(foreach d,$(DIRS),$(wildcard $(d)/*.ad[bs])) + +# Build architecture-dependent files here. +binary-arch: build-stamp + dh_testdir + dh_testroot + dh_installchangelogs -a + dh_installdocs -a + : # The development package + dh_installdirs -plibaws-dev \ + /usr/bin /usr/lib \ + /usr/share/ada/adainclude/aws \ + /usr/lib/ada/adalib/aws + dh_install -plibaws-dev debian/tmp/libaws.a /usr/lib + dh_install -plibaws-dev obj-shared/*.ali /usr/lib/ada/adalib/aws + dh_install -plibaws-dev debian/aws.gpr /usr/share/ada/adainclude + dh_install -plibaws-dev $(SOURCES) /usr/share/ada/adainclude/aws + dh_install -plibaws-dev debian/tmp/aws-os_lib-definitions.ads \ + /usr/share/ada/adainclude/aws + dh_link -plibaws-dev \ + usr/lib/libaws.so.$(major).$(minor) usr/lib/libaws.so + : # The -bin package + for i in ada2wsdl awsres wsdl2aws; do \ + if [ -x debian/tmp/$$i ] ; then \ + dh_install -plibaws-bin debian/tmp/$$i /usr/bin; \ + dh_installman -plibaws-bin debian/$$i.1; \ + fi \ + done + : # The shared library package + dh_install -plibaws$(major).$(minor) \ + debian/tmp/libaws.so.$(major).$(minor) /usr/lib + : # Common to all architecture-dependent packages + dh_strip -a -X.a + dh_compress -a + dh_fixperms -a -X.ali + dh_makeshlibs -a + dh_installdeb -a + dh_shlibdeps -a -Llibaws$(major).$(minor) -ldebian/libaws$(major).$(minor)/usr/lib + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary + +patch: + -quilt push -a + +static-lib: debian/tmp/libaws.a +debian/tmp/libaws.a: debian/tmp/aws-os_lib-definitions.ads +debian/tmp/libaws.a: | debian/tmp obj-static + : # Build the static library + gnatmake -c -j$(CPUS) -g -Pdebian/build_aws.gpr -XOBJ_DIR=obj-static + ar rc $@ obj-static/*.o + ranlib $@ + +shared-lib: debian/tmp/libaws.so.$(major).$(minor) +debian/tmp/libaws.so.$(major).$(minor): debian/tmp/aws-os_lib-definitions.ads +debian/tmp/libaws.so.$(major).$(minor): | debian/tmp obj-shared + : # Build the shared library + gnatmake -c -j$(CPUS) -fPIC -Pdebian/build_aws.gpr -XOBJ_DIR=obj-shared + gnatgcc -shared -o $@ obj-shared/*.o \ + -lgnat -lgnarl -lxmlada2 -ltemplates_parser -lgnutls -lldap -lz \ + -Wl,--soname,libaws.so.$(major).$(minor) -Wl,--export-dynamic + chmod a=r obj-shared/*.ali + : # A symlink for to build the tools + ln -sf debian/tmp/libaws.so.$(major).$(minor) libaws.so + +debian/tmp/aws-os_lib-definitions.ads: debian/tmp/check_config | debian/tmp + $< $@ + +debian/tmp/check_config: config/src/check_config.c | debian/tmp + $(CC) -o $@ $< + +tools: debian/tmp/ada2wsdl debian/tmp/awsres debian/tmp/wsdl2aws + +debian/tmp/ada2wsdl: debian/tmp/libaws.so.$(major).$(minor) | debian/tmp obj-tools + gnatmake -j$(CPUS) -Pdebian/ada2wsdl.gpr -largs -L. + +debian/tmp/awsres debian/tmp/wsdl2aws: debian/tmp/libaws.so.$(major).$(minor) +debian/tmp/awsres debian/tmp/wsdl2aws: | debian/tmp obj-tools + : # Build awsres and wsdl2aws + gnatmake -j$(CPUS) -Pdebian/tools.gpr -largs -L. + +debian/tmp obj-static obj-shared: + -mkdir $@ + +obj-tools: obj-shared debian/tmp/libaws.so.$(major).$(minor) + -mkdir $@ + cp -p obj-shared/*.ali $@ + chmod a=r $(patsubst obj-shared/%,obj-tools/%,$(wildcard obj-shared/*.ali)) + +doc: + chmod u+x docs/gentexifile + $(MAKE) -C docs + +.PHONY: patch static-lib shared-lib tools doc + --- libaws-2.2dfsg.orig/debian/wsdl2aws.1 +++ libaws-2.2dfsg/debian/wsdl2aws.1 @@ -0,0 +1,142 @@ +.TH WSDL2AWS 1 "11 JUN 2004" "GNU Ada Tools" "AWS User's Guide" +.SH NAME +wsdl2aws \- Generate stubs and skeletons for web services +.SH SYNOPSIS +\fBwsdl2aws\fR [options] \fIURL\fR +.SH DESCRIPTION +The Ada Web Server is a library that allows you to embed a web server +into your Ada application. It provides not only HTTP but also SOAP, +WSDL and several other facilities. Thus you can write full-fledged +web applications. + +WSDL (Web Service Definition Language) is a language based on XML. +WSDL documents describe, in a formal way, the interface to Web +Services. This description consists of the end-point (URL to the +server offering the service), the SOAPAction (needed to call the +remote procedure), the procedure names and a description of the input +and output parameters. + +Using \fBwsdl2aws\fR, you can create both the client and server sides +of a Web Service. On both sides, the generated code handles +marshalling and unmarshalling of parameters and return values, so you +do not have to deal with SOAP directly. + +The client side is an Ada package that contains stubs for the remote +subprograms declared by the WSDL document. These stubs call the +remote subprograms using SOAP. + +The server side is another package consisting of skeleton +implementations of these subprograms. + +The \fIURL\fR points to the WSDL document to be processed. +.SH OPTIONS +.IP \fB-a\fR +Generate using Ada style names. For example `getPrice' will be +converted to `Get_Price'. This formatting is done for packages, +routines and formal parameters. + +.IP \fB-cb\fR +Generate a SOAP dispatcher callback routine for the server. This +dispatcher routine contains the code to handle all the operations as +described in the WSDL document. You need also to specify the +\fB-types\fR option, see below. + +.IP \fB-cvs\fR +Add CVS id tag in every generated file. + +.IP \fB-doc\fR +Handle document style binding as RPC ones. This is sometimes needed +because some WSDL documents specify a document style binding even +though it is really an RPC one. + +.IP \fB-f\fR +Force creation of the file. Overwrite any exiting files with the same +name. + +.IP \fB-main\fR\ \fIfilename\fR +Specify the name of the server's procedure main to generate. If file +\fIfilename\fR.amt (Ada Main Template) is present, it uses this template +file to generate the main procedure. The template can reference the +following variable tags: + +.RS +.IP \fBSOAP_SERVICE\fR +The name of the service as described into the WSDL document. This tag +can be used to include the right units + + with @_SOAP_SERVICE_@.Client; + with @_SOAP_SERVICE_@.CB; + +.IP \fBSOAP_VERSION\fR +The AWS SOAP version. + +.IP \fBBAWS_VERSION\fR +The AWS version. + +.IP \fBUNIT_NAME\fR +The name of the generated unit. This is the name of the +procedure that will be created. + + procedure @_UNIT_NAME_@ is + begin + ... +.RE + +.IP \fB-noskel\fR +Do not generate skeletons, only stubs. + +.IP \fB-nostub\fR +Do not generate stubs, only skeletons. + +.IP \fB-o\fR\ \fIname\fR +Specify the name of the local WSDL document. This option can be used +only when using a Web WSDL document (i.e. passing an URL to +\fBwsdl2aws\fR). + +.IP \fB-pp\fR\ \fIpassword\fR +User password for the proxy if proxy authentication required. + +.IP \fB-proxy\fR\ \fIname\|IP\fR +Use this proxy to access the WSDL document and generate code to +access to these Web Services via this proxy. The proxy can be +specified by its DNS name or IP address. + +.IP \fB-pu\fR\ \fIname\fR +User name for the proxy if proxy authentication required. + +.IP \fB-q\fR +Quiet mode (no output). + +.IP \fB-s\fR +Skip non supported SOAP routines. By default, \fBwsdl2aws\fR exits +with an error when a problem is found while parsing the WSDL +document. This option is useful to skip routines using non supported +types and still be able to compile the generated files. + +.IP \fB-types\fR\ \fIspec\fR +Specify the name of the spec containing the Ada implementation of the +SOAP routines. This is used for example by the \fB-cb\fR option above +to instantiate all the server side SOAP callbacks used by the main +SOAP dispatcher routine. + +.IP \fB-v\fR +Verbose mode, display the parsed spec. + +.IP \fB-v\ -v\fR +Verbose mode, display the parsed spec and lots of information while +parsing the WSDL document. + +.IP \fB-wsdl\fR +Add WSDL document as comment into the generated root unit. + +.SH "SEE ALSO" +.BR ada2wsdl (1), +.BR awsres (1) + +The Ada Web Server User's Guide in package libaws-doc. +.SH AUTHOR +\fBwsdl2aws\fR was written by Dmitriy Anisimkov +and Pascal Obry as part of the Ada Web Server. + +This manual page was written by Ludovic Brenta + for Debian GNU/Linux. --- libaws-2.2dfsg.orig/debian/ada2wsdl.gpr +++ libaws-2.2dfsg/debian/ada2wsdl.gpr @@ -0,0 +1,44 @@ +with "asis.gpr"; +with "templates_parser.gpr"; +with "xmlada2.gpr"; +project Ada2WSDL is + for Source_Dirs use ("../debian/tmp", "../config", + "../include", "../include/ai302", "../soap", "../src", + "../ssl", "../tools", "../xsrc"); + for Object_Dir use "../obj-tools"; + for Main use ("ada2wsdl-main.adb"); + for Exec_Dir use "tmp"; + + package Builder is + for Executable ("ada2wsdl-main.adb") use "ada2wsdl"; + end Builder; + + package Compiler is + for Default_Switches ("Ada") use ("-O2", "-gnato", "-gnatn", "-gnatVa"); + + -- Work aound an ICE in referenced_var_lookup, at tree-dfa.c:581 + for Switches ("ada2wsdl-generator.adb") + use ("-O0", "-gnato", "-gnatn", "-gnatVa"); + end Compiler; + + package Naming is + -- Configuration for GNU/Linux using GNU TLS for strong crypto + for Body ("AWS.Net.SSL") use "aws-net-ssl__gnutls.adb"; + for Body ("AWS.Net.SSL.Certificate") + use "aws-net-ssl-certificate__gnutls.adb"; + for Body ("AWS.Net.Std") use "aws-net-std__gnat.adb"; + for Body ("AWS.OS_Lib") use "aws-os_lib__gnat.adb"; + for Body ("AWS.Translator.Conversion") + use "aws-translator-conversion__f.adb"; + for Spec ("SSL.Thin") use "ssl-thin__gnutls.ads"; + for Spec ("Templates_Parser.Configuration") + use "templates_parser-configuration__aws.ads"; + end Naming; + + package Linker is + for Default_Switches ("Ada") use + (XMLAda2.Linker_Switches, ASIS.Linker_Switches, + Templates_Parser.Linker_Switches, "-laws"); + end Linker; + +end Ada2WSDL; --- libaws-2.2dfsg.orig/debian/tools.gpr +++ libaws-2.2dfsg/debian/tools.gpr @@ -0,0 +1,35 @@ +with "templates_parser"; +with "xmlada2"; +project Tools is + for Source_Dirs use ("../debian/tmp", "../config", + "../include", "../include/ai302", "../soap", "../src", + "../ssl", "../tools", "../xsrc"); + for Object_Dir use "../obj-tools"; + for Exec_Dir use "tmp"; + for Main use ("awsres", "wsdl2aws"); + + package Compiler is + for Default_Switches ("Ada") use ("-O2", "-gnatafno", "-gnatVa"); + end Compiler; + + package Naming is + -- Configuration for GNU/Linux using GNU TLS for strong crypto + for Body ("AWS.Net.SSL") use "aws-net-ssl__gnutls.adb"; + for Body ("AWS.Net.SSL.Certificate") + use "aws-net-ssl-certificate__gnutls.adb"; + for Body ("AWS.Net.Std") use "aws-net-std__gnat.adb"; + for Body ("AWS.OS_Lib") use "aws-os_lib__gnat.adb"; + for Body ("AWS.Translator.Conversion") + use "aws-translator-conversion__f.adb"; + for Spec ("SSL.Thin") use "ssl-thin__gnutls.ads"; + for Spec ("Templates_Parser.Configuration") + use "templates_parser-configuration__aws.ads"; + end Naming; + + package Linker is + for Default_Switches ("Ada") use + (Templates_Parser.Linker_Switches, XMLAda2.Linker_Switches, + "-laws", "-lz"); + end Linker; + +end Tools; --- libaws-2.2dfsg.orig/debian/build_aws.gpr +++ libaws-2.2dfsg/debian/build_aws.gpr @@ -0,0 +1,46 @@ +with "xmlada2"; +with "templates_parser"; +project Build_AWS is + for Source_Dirs use ("../debian/tmp", "../config", + "../include", "../include/ai302", "../soap", "../src", + "../ssl", "../xsrc"); + for Object_Dir use "../" & External ("OBJ_DIR", "obj-shared"); + + package Naming is + -- Configuration for GNU/Linux using GNU TLS for strong crypto + for Body ("AWS.Net.SSL") use "aws-net-ssl__gnutls.adb"; + for Body ("AWS.Net.SSL.Certificate") + use "aws-net-ssl-certificate__gnutls.adb"; + for Body ("AWS.Net.Std") use "aws-net-std__gnat.adb"; + for Body ("AWS.OS_Lib") use "aws-os_lib__gnat.adb"; + for Body ("AWS.Translator.Conversion") + use "aws-translator-conversion__f.adb"; + for Spec ("SSL.Thin") use "ssl-thin__gnutls.ads"; + for Spec ("Templates_Parser.Configuration") + use "templates_parser-configuration__aws.ads"; + end Naming; + + package Compiler is + for Default_Switches ("Ada") use ("-O2", "-gnatafno", "-gnatVa"); + + -- Work around a compiler bug that is triggered at -O1, -O2. + -- (in referenced_var_lookup, at tree-dfa.c:581) + -- raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:380 + + for Switches ("aws-containers-key_value.ads") + use ("-O0", "-gnatafno", "-gnatVa"); + for Switches ("aws-containers-tables.adb") + use ("-O0", "-gnatafno", "-gnatVa"); + for Switches ("aws-resources-embedded.adb") + use ("-O0", "-gnatafno", "-gnatVa"); + for Switches ("aws-server-hotplug.adb") + use ("-O0", "-gnatafno", "-gnatVa"); + for Switches ("aws-services-dispatchers-virtual_host.adb") + use ("-O0", "-gnatafno", "-gnatVa"); + for Switches ("aws-services-transient_pages.adb") + use ("-O0", "-gnatafno", "-gnatVa"); + for Switches ("aws-session.adb") use ("-O0", "-gnatafno", "-gnatVa"); + for Switches ("soap-wsdl-parser.adb") + use ("-O0", "-gnatafno", "-gnatVa"); + end Compiler; +end Build_AWS;