M7350v1_en_gpl

This commit is contained in:
T
2024-09-09 08:52:07 +00:00
commit f9cc65cfda
65988 changed files with 26357421 additions and 0 deletions
@@ -0,0 +1,749 @@
--- libghttp-1.0.9.orig/debian/libghttp-dev.docs
+++ libghttp-1.0.9/debian/libghttp-dev.docs
@@ -0,0 +1,2 @@
+TODO
+AUTHORS
--- libghttp-1.0.9.orig/debian/control
+++ libghttp-1.0.9/debian/control
@@ -0,0 +1,63 @@
+Source: libghttp
+Section: net
+Priority: optional
+Maintainer: Debian QA Group <packages@qa.debian.org>
+Standards-Version: 3.6.1
+Build-Depends: dpatch, libtool, debhelper (>> 4.1), autotools-dev (>= 20010601.1)
+
+Package: libghttp1
+Architecture: any
+Depends: ${shlibs:Depends}
+Section: oldlibs
+Description: original GNOME HTTP client library - run-time kit
+ The HTTP protocol is the protocol that is the underlying transport
+ mechanism for the modern world wide web. The protocol is well
+ documented and widely implemented. While the use of the protocol is
+ generally associated with the web, its uses can be extended to many
+ other areas where a stateless, transactional protocol may be
+ appropriate.
+ .
+ The original GNOME HTTP library was designed to be simple and easy to
+ use while still allowing one to get one's feet wet at the protocol
+ layer if needed. It was also designed with graphical, non-threaded
+ applications in mind. One should be able to use the library in an
+ application and never block waiting to send or receive data to a
+ remote server. The main thread of execution should always be
+ available to refresh its display.
+ .
+ This library is fully compliant with HTTP 1.1 as defined in the draft
+ 5 update of RFC 2068.
+ .
+ This package contains the run-time kit consisting of the shared
+ version of the library.
+
+Package: libghttp-dev
+Architecture: any
+Depends: libghttp1 (= ${Source-Version})
+Replaces: libghttp1 (<= 1.0.7-1)
+Section: oldlibs
+Description: original GNOME HTTP client library - development kit
+ The HTTP protocol is the protocol that is the underlying transport
+ mechanism for the modern world wide web. The protocol is well
+ documented and widely implemented. While the use of the protocol is
+ generally associated with the web, its uses can be extended to many
+ other areas where a stateless, transactional protocol may be
+ appropriate.
+ .
+ The original GNOME HTTP library was designed to be simple and easy to
+ use while still allowing one to get one's feet wet at the protocol
+ layer if needed. It was also designed with graphical, non-threaded
+ applications in mind. One should be able to use the library in an
+ application and never block waiting to send or receive data to a
+ remote server. The main thread of execution should always be
+ available to refresh its display.
+ .
+ This library has been replaced in the GNOME project by gnome-vfs, and
+ is orphaned upstream. New projects will probably want to use gnome-vfs
+ or libcurl instead of libghttp.
+ .
+ This library is fully compliant with HTTP 1.1 as defined in the draft
+ 5 update of RFC 2068.
+ .
+ This packages contains the development kit consisting of the header
+ files and the static version of the library.
--- libghttp-1.0.9.orig/debian/rules
+++ libghttp-1.0.9/debian/rules
@@ -0,0 +1,95 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+#export DH_VERBOSE=1
+export DH_ALWAYS_EXCLUDE=CVS:.svn
+
+version := $(shell sed -n 's/Package: \(.*\)/\1/p' debian/control | head -1)
+
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+include /usr/share/dpatch/dpatch.make
+
+config: config-stamp
+config-stamp: patch-stamp
+ dh_testdir
+ dh_clean -k
+
+ cp /usr/share/misc/config.guess /usr/share/misc/config.sub .
+
+ ./configure --prefix=/usr --host=$(DEB_HOST_GNU_TYPE) \
+ --build=$(DEB_BUILD_GNU_TYPE)
+
+ touch config-stamp
+
+build: build-stamp
+build-stamp: config-stamp
+ dh_testdir
+ dh_clean -k
+
+ $(MAKE)
+
+ touch build-stamp
+
+clean: patch clean1 unpatch
+clean1:
+ dh_testdir
+ dh_testroot
+
+ [ ! -f Makefile ] || $(MAKE) distclean
+
+ dh_clean config.guess config.sub build-stamp config-stamp
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+ $(MAKE) install prefix=$(CURDIR)/debian/libghttp-dev/usr
+
+ dh_installdirs -plibghttp-dev usr/share/doc/libghttp-dev/html \
+ usr/include
+ cp -p doc/ghttp.html debian/libghttp-dev/usr/share/doc/libghttp-dev/html
+# Install http*.h header files
+ cp -p http*.h debian/libghttp-dev/usr/include
+
+ dh_movefiles -p${version} --sourcedir=debian/libghttp-dev
+
+# Prune empty directories
+ find debian -type d | xargs rmdir -p --ignore-fail-on-non-empty
+
+# Build architecture-independent files here.
+binary-indep:
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installdocs -s
+ dh_installexamples -s
+ dh_installchangelogs -plibghttp-dev ChangeLog
+ dh_installchangelogs -p${version}
+ dh_link -s
+ dh_strip -s
+ dh_compress -s
+ dh_fixperms -s
+ dh_makeshlibs -s
+ dh_installdeb -s
+ dh_shlibdeps -s
+ dh_gencontrol -s
+ dh_md5sums -s
+ dh_builddeb -s
+
+binary: binary-indep binary-arch
+.PHONY: patch unpatch config build clean clean1 install binary-indep binary-arch binary
--- libghttp-1.0.9.orig/debian/changelog
+++ libghttp-1.0.9/debian/changelog
@@ -0,0 +1,188 @@
+libghttp (1.0.9-17) unstable; urgency=low
+
+ * QA upload.
+ * Fixed FSF address in debian/copyright.
+ * Update libtool for GNU/kFreeBSD.
+
+ -- Aurelien Jarno <aurel32@debian.org> Sun, 4 Dec 2005 16:23:03 +0100
+
+libghttp (1.0.9-16) unstable; urgency=low
+
+ * QA Group upload orphaning this package
+
+ -- Andrew Pollock <apollock@debian.org> Tue, 16 Aug 2005 10:17:06 +1000
+
+libghttp (1.0.9-15) unstable; urgency=low
+
+ * GPG key / UID change (sign with subkey of securely managed primary key)
+
+ -- Michael K. Edwards <medwards-debian@sane.net> Mon, 19 Jan 2004 01:18:25 -0800
+
+libghttp (1.0.9-14) unstable; urgency=low
+
+ * New maintainer (closes: Bug#210202)
+ - this package is still needed by 'libhttp-ghttp-perl'
+ * Re-debianized to current packaging standards
+ * Moved to oldlibs
+ * Standards-Version --> 3.6.1
+ * Fixed chunked encoding allocation and flushing (closes: Bug#165101)
+ * Added simple-get example from bug report (thanks to Devin Carraway
+ <devin@bluemug.com>)
+
+ -- Michael K. Edwards (in Debian context) <mkedeb@sane.net> Sun, 28 Dec 2003 20:33:59 -0800
+
+libghttp (1.0.9-13) unstable; urgency=low
+
+ * Officially orphaned
+
+ -- Ardo van Rangelrooij <ardo@debian.org> Sun, 12 Oct 2003 12:14:01 -0500
+
+libghttp (1.0.9-12) unstable; urgency=low
+
+ * ghttp.c: fixed failure handling for malloc function ghttp_request_new()
+ (closes: Bug#211215)
+ * debian/control: improved short and long descriptions
+ (closes: Bug#209870)
+
+ -- Ardo van Rangelrooij <ardo@debian.org> Sat, 4 Oct 2003 10:57:02 -0500
+
+libghttp (1.0.9-11) unstable; urgency=low
+
+ * New maintainer
+ (closes: Bug#197389)
+ - this package is still needed by 'libhttp-ghttp-perl'
+ - no other changes yet
+
+ -- Ardo van Rangelrooij <ardo@debian.org> Sat, 23 Aug 2003 11:57:25 -0500
+
+libghttp (1.0.9-10) unstable; urgency=low
+
+ * Orphaned. gnome-vfs replace this library now.
+ * Update section
+ * Standards-Version --> 3.5.10
+
+ -- Christian Marillat <marillat@debian.org> Sat, 14 Jun 2003 17:47:56 +0200
+
+libghttp (1.0.9-9) unstable; urgency=low
+
+ * Include all http*.h header in the -dev package.
+
+ -- Christian Marillat <marillat@debian.org> Mon, 25 Mar 2002 13:57:02 +0100
+
+libghttp (1.0.9-8) unstable; urgency=low
+
+ * New patch for http_proxy environment support. Thanks to Martijn van de Streek
+ for the patch. (Closes: #127195)
+
+ -- Christian Marillat <marillat@debian.org> Mon, 31 Dec 2001 15:07:47 +0100
+
+libghttp (1.0.9-7) unstable; urgency=low
+
+ * Switch to debhelper V3
+ * debian/rules remove libtoolize and use autotools-dev (Closes: #101492)
+
+ -- Christian Marillat <marillat@debian.org> Tue, 5 Jun 2001 16:43:49 +0200
+
+libghttp (1.0.9-6) unstable; urgency=low
+
+ * Run libtoolize (Closes: #94815)
+ * Install a lintian override file for libghttp-dev
+
+ -- Christian Marillat <marillat@debian.org> Sun, 22 Apr 2001 09:34:49 +0200
+
+libghttp (1.0.9-5) unstable; urgency=low
+
+ * Use strdup instead of g_strdup (Closes: #93791)
+
+ -- Christian Marillat <marillat@debian.org> Wed, 18 Apr 2001 15:31:11 +0200
+
+libghttp (1.0.9-4) unstable; urgency=low
+
+ * Use free instead of g_free in my last patch (Closes: #93791)
+
+ -- Christian Marillat <marillat@debian.org> Fri, 13 Apr 2001 00:19:33 +0200
+
+libghttp (1.0.9-3) unstable; urgency=low
+
+ * Patch http_req.c to always call LC_NUMERIC=C. (Closes: #92175)
+
+ -- Christian Marillat <marillat@debian.org> Mon, 9 Apr 2001 16:26:50 +0200
+
+libghttp (1.0.9-2) unstable; urgency=low
+
+ * Add build-depends field (Closes: #93183)
+
+ -- Christian Marillat <marillat@debian.org> Sat, 7 Apr 2001 11:41:09 +0200
+
+libghttp (1.0.9-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Christian Marillat <marillat@debian.org> Tue, 23 Jan 2001 15:09:23 +0100
+
+libghttp (1.0.8-3) unstable; urgency=low
+
+ * debian/control Replaces: <= not << (Closes: #79216)
+
+ -- Christian Marillat <marillat@debian.org> Thu, 4 Jan 2001 00:20:37 +0100
+
+libghttp (1.0.8-2) unstable; urgency=low
+
+ * Add a Repleces libghttp1 in -dev package. (Closes: #79216)
+
+ -- Christian Marillat <marillat@debian.org> Sun, 10 Dec 2000 09:39:56 +0100
+
+libghttp (1.0.8-1) unstable; urgency=low
+
+ * New upstream release.
+ * Switch to debhelper v2.
+ * Move ghttpConf.sh in the -dev package.
+
+ -- Christian Marillat <marillat@debian.org> Sat, 9 Dec 2000 12:10:07 +0100
+
+libghttp (1.0.7-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Christian Marillat <marillat@debian.org> Tue, 15 Aug 2000 23:29:27 +0200
+
+libghttp (1.0.6-1) unstable; urgency=low
+
+ * New upstream release.
+ * New maintainer (Thanks James).
+ * debian/rules rewrited.
+ * Added dhelp support.
+
+ -- Christian Marillat <marillat@debian.org> Thu, 27 Jul 2000 18:31:57 +0200
+
+libghttp (1.0.4-2) unstable; urgency=low
+
+ * Include doc from doc directory.
+
+ -- James LewisMoss <dres@debian.org> Tue, 11 Jan 2000 16:34:49 -0500
+
+libghttp (1.0.4-1) unstable; urgency=low
+
+ * New upstream.
+ * New maintainer.
+
+ -- James LewisMoss <dres@debian.org> Fri, 25 Jun 1999 23:43:23 -0400
+
+libghttp (1.0.2-0.2) unstable; urgency=low
+
+ * The library wasn't actually put into libghttp1...
+
+ -- Steve Haslam <araqnid@debian.org> Sun, 18 Apr 1999 15:50:36 +0100
+
+libghttp (1.0.2-0.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * New upstream version.
+
+ -- Steve Haslam <araqnid@debian.org> Fri, 16 Apr 1999 20:32:17 +0100
+
+libghttp (0.99.2-1) unstable; urgency=low
+
+ * New package.
+
+ -- Jim Pick <jim@jimpick.com> Sat, 23 Jan 1999 21:00:31 -0800
--- libghttp-1.0.9.orig/debian/compat
+++ libghttp-1.0.9/debian/compat
@@ -0,0 +1 @@
+4
--- libghttp-1.0.9.orig/debian/patches/05_kfreebsd_libtool.dpatch
+++ libghttp-1.0.9/debian/patches/05_kfreebsd_libtool.dpatch
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+
+if [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
+ -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1;;
+esac
+exit 0
+
+--- libghttp-1.0.9/ltconfig.orig 2001-01-05 23:04:40.000000000 +0100
++++ libghttp-1.0.9/ltconfig 2005-12-04 16:11:44.000000000 +0100
+@@ -1360,7 +1360,7 @@
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+- freebsd*)
++ freebsd* | kfreebsd*-gnu)
+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+@@ -1882,6 +1882,18 @@
+ lt_cv_dlopen_libs=
+ ;;
+
++kfreebsd-*gnu*)
++ version_type=linux
++ need_lib_prefix=no
++ need_version=no
++ library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
++ soname_spec='${libname}${release}.so$major'
++ shlibpath_var=LD_LIBRARY_PATH
++ shlibpath_overrides_runpath=no
++ deplibs_check_method=pass_all
++ dynamic_linker='GNU ld.so'
++ ;;
++
+ freebsd1*)
+ dynamic_linker=no
+ ;;
--- libghttp-1.0.9.orig/debian/patches/03_ghttp.c.dpatch
+++ libghttp-1.0.9/debian/patches/03_ghttp.c.dpatch
@@ -0,0 +1,31 @@
+#! /bin/sh -e
+
+# DP: Modified
+
+if [ $# -ne 1 ]; then
+ echo >&2 "$0: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch) patch -f -p0 < $0;;
+ -unpatch) patch -f -R -p0 < $0;;
+ *)
+ echo >&2 "$0: script expects -patch|-unpatch as argument"
+ exit 1
+esac
+exit 0
+
+--- ghttp.c.orig_debian_patch1 Tue Sep 16 18:22:09 2003
++++ ghttp.c Tue Sep 16 18:25:37 2003
+@@ -61,6 +61,11 @@
+
+ /* create everything */
+ l_return = malloc(sizeof(struct _ghttp_request));
++
++ /* 16.09.2003 GM Failure handling */
++ if (l_return == NULL)
++ return l_return;
++
+ memset(l_return, 0, sizeof(struct _ghttp_request));
+ l_return->uri = http_uri_new();
+ l_return->proxy = http_uri_new();
--- libghttp-1.0.9.orig/debian/patches/02_http_req.c.dpatch
+++ libghttp-1.0.9/debian/patches/02_http_req.c.dpatch
@@ -0,0 +1,55 @@
+#! /bin/sh -e
+
+if [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch) patch -f --no-backup-if-mismatch -p0 < $0;;
+ -unpatch) patch -f --no-backup-if-mismatch -R -p0 < $0;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1;;
+esac
+exit 0
+
+--- http_req.c.orig 2000/12/02 18:45:35 1.24
++++ http_req.c 2001/05/01 21:58:49
+@@ -108,6 +108,7 @@
+ int l_headers_len = 0;
+ int l_rv = 0;
+ char *l_content = NULL;
++ int l_ver_major, l_ver_minor;
+
+ /* see if we need to jump into the function somewhere */
+ if (a_conn->sync == HTTP_TRANS_ASYNC)
+@@ -125,21 +126,25 @@
+ memset(l_request, 0, 30 + strlen(a_req->resource) + (a_conn->proxy_host ?
+ (strlen(a_req->host) + 20) : 0));
+ /* copy it into the buffer */
++ l_ver_major = (int)a_req->http_ver;
++ l_ver_minor = ((int)(a_req->http_ver*10.0)) % 10;
+ if (a_conn->proxy_host)
+ {
+ l_request_len = sprintf(l_request,
+- "%s %s HTTP/%01.1f\r\n",
++ "%s %s HTTP/%d.%d\r\n",
+ http_req_type_char[a_req->type],
+ a_req->full_uri,
+- a_req->http_ver);
++ l_ver_major,
++ l_ver_minor);
+ }
+ else
+ {
+ l_request_len = sprintf(l_request,
+- "%s %s HTTP/%01.1f\r\n",
++ "%s %s HTTP/%d.%d\r\n",
+ http_req_type_char[a_req->type],
+ a_req->resource,
+- a_req->http_ver);
++ l_ver_major,
++ l_ver_minor);
+ }
+ /* set the request in the connection buffer */
+ http_trans_append_data_to_buf(a_conn, l_request, l_request_len);
--- libghttp-1.0.9.orig/debian/patches/00list
+++ libghttp-1.0.9/debian/patches/00list
@@ -0,0 +1,5 @@
+01_ghttp.c
+02_http_req.c
+03_ghttp.c
+04_flush_chunked
+05_kfreebsd_libtool
--- libghttp-1.0.9.orig/debian/patches/04_flush_chunked.dpatch
+++ libghttp-1.0.9/debian/patches/04_flush_chunked.dpatch
@@ -0,0 +1,61 @@
+#! /bin/sh -e
+
+if [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
+ -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1;;
+esac
+exit 0
+
+diff -aur libghttp-1.0.9/http_resp.c libghttp-1.0.9-patched/http_resp.c
+--- libghttp-1.0.9/http_resp.c 2001-01-22 16:32:15.000000000 -0800
++++ libghttp-1.0.9-patched/http_resp.c 2003-12-28 20:20:38.000000000 -0800
+@@ -634,12 +634,21 @@
+ free(a_resp->body);
+ }
+ a_resp->flushed_length += a_resp->body_len;
+- a_resp->body_len = a_conn->io_buf_alloc;
+- a_resp->body = malloc(a_conn->io_buf_alloc + 1);
+- memset(a_resp->body, 0, a_conn->io_buf_alloc + 1);
+- memcpy(a_resp->body, a_conn->io_buf, a_conn->io_buf_alloc);
+- /* clean the buffer */
+- http_trans_buf_reset(a_conn);
++ if (a_resp->body_state == http_resp_body_read_chunked)
++ {
++ a_resp->body_len = 0;
++ a_resp->body = NULL;
++ /* leave conn buffer alone (can't just copy it with chunked encoding) */
++ }
++ else
++ {
++ a_resp->body_len = a_conn->io_buf_alloc;
++ a_resp->body = malloc(a_conn->io_buf_alloc + 1);
++ memset(a_resp->body, 0, a_conn->io_buf_alloc + 1);
++ memcpy(a_resp->body, a_conn->io_buf, a_conn->io_buf_alloc);
++ /* clean the buffer */
++ http_trans_buf_reset(a_conn);
++ }
+ }
+
+ void
+diff -aur libghttp-1.0.9/http_trans.c libghttp-1.0.9-patched/http_trans.c
+--- libghttp-1.0.9/http_trans.c 1998-12-07 14:18:58.000000000 -0800
++++ libghttp-1.0.9-patched/http_trans.c 2003-12-28 19:47:42.000000000 -0800
+@@ -176,9 +176,8 @@
+ /* make sure there's enough space */
+ if (http_trans_buf_free(a_conn) < a_conn->io_buf_io_left)
+ {
+- a_conn->io_buf = realloc(a_conn->io_buf,
+- a_conn->io_buf_len + a_conn->io_buf_io_left);
+- a_conn->io_buf_len += a_conn->io_buf_io_left;
++ a_conn->io_buf_len = a_conn->io_buf_alloc + a_conn->io_buf_io_left;
++ a_conn->io_buf = realloc(a_conn->io_buf, a_conn->io_buf_len);
+ }
+ /* check to see how much we should try to read */
+ if (a_conn->io_buf_io_left > a_conn->io_buf_chunksize)
--- libghttp-1.0.9.orig/debian/patches/01_ghttp.c.dpatch
+++ libghttp-1.0.9/debian/patches/01_ghttp.c.dpatch
@@ -0,0 +1,38 @@
+#! /bin/sh -e
+
+if [ $# -ne 1 ]; then
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1
+fi
+case "$1" in
+ -patch) patch -f --no-backup-if-mismatch -p0 < $0;;
+ -unpatch) patch -f --no-backup-if-mismatch -R -p0 < $0;;
+ *)
+ echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
+ exit 1;;
+esac
+exit 0
+
+--- ghttp.c.orig Mon Dec 31 15:10:16 2001
++++ ghttp.c Mon Dec 31 15:11:33 2001
+@@ -57,6 +57,8 @@
+ {
+ struct _ghttp_request *l_return = NULL;
+
++ char *proxy_env = NULL;
++
+ /* create everything */
+ l_return = malloc(sizeof(struct _ghttp_request));
+ memset(l_return, 0, sizeof(struct _ghttp_request));
+@@ -65,6 +67,11 @@
+ l_return->req = http_req_new();
+ l_return->resp = http_resp_new();
+ l_return->conn = http_trans_conn_new();
++
++ /* FIXME: Should this be done here or somewhere else? */
++ if((proxy_env = getenv("http_proxy")))
++ ghttp_set_proxy(l_return, proxy_env);
++
+ return l_return;
+ }
+
--- libghttp-1.0.9.orig/debian/libghttp-dev.examples
+++ libghttp-1.0.9/debian/libghttp-dev.examples
@@ -0,0 +1 @@
+debian/examples/*
--- libghttp-1.0.9.orig/debian/libghttp-dev.doc-base
+++ libghttp-1.0.9/debian/libghttp-dev.doc-base
@@ -0,0 +1,11 @@
+Document: libghttp
+Title: libgHTTP Manual
+Author: Christopher Blizzard
+Abstract: The gHTTP library is designed to be simple and easy to use while
+ still allowing you to get your feet wet at the protocol layer if you
+ have to.
+Section: Apps/Programming
+
+Format: HTML
+Index: /usr/share/doc/libghttp-dev/html/ghttp.html
+Files: /usr/share/doc/libghttp-dev/html/*.html
--- libghttp-1.0.9.orig/debian/copyright
+++ libghttp-1.0.9/debian/copyright
@@ -0,0 +1,38 @@
+This package was debianized by Jim Pick jim@jimpick.com on
+Sat, 14 Mar 1998 20:12:23 -0800.
+
+It was re-debianized by Michael K. Edwards <mkedeb@sane.net> on
+Fri, 26 Dec 2003 23:08:41 -0800.
+
+It was downloaded from ftp://ftp.gnome.org/pub/GNOME/sources/libghttp/1.0/
+
+Upstream Authors: Christopher Blizzard <blizzard@redhat.com>
+ Justin Maurer <justin@debian.org>
+ Frederic Devernay <devernay@istar.fr>
+ Robert Richardson <robert.richardson@edgeint.com.au>
+ Heath Martin <martinh@pegasus.cc.ucf.edu>
+ James Henstridge <james@daa.com.au>
+ Tue Wennerberg <tue@nybro.dk>
+
+Copyright: 1998-2003 Free Software Foundation
+
+libghttp is free software; you can redistribute it and/or modify
+it under the terms of the GNU Library General Public License as
+published by the Free Software Foundation; either version 2, or
+(at your option) any later version, including its successor, the
+GNU Lesser General Public License.
+
+libghttp 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 Lesser General Public License for more details.
+
+You may have received a copy of the GNU Library General Public License
+along with libghttp; see the file COPYING.LIB. If not, write to the
+Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+Boston, MA 02110-1301 USA
+
+On Debian systems the complete text of Version 2 of the Library General
+Public License can be found in /usr/share/common-licenses/LGPL-2, and
+its successor, Version 2.1 of the Lesser General Public License, can
+be found in /usr/share/common-licenses/LGPL-2.1.
--- libghttp-1.0.9.orig/debian/examples/simple-get.c
+++ libghttp-1.0.9/debian/examples/simple-get.c
@@ -0,0 +1,66 @@
+/* simple-get.c */
+
+/* Contributed by Devin Carraway <devin@bluemug.com> in Debian Bug #165101 */
+
+#include <stdio.h>
+#include <ghttp.h>
+#include <unistd.h>
+
+
+void bail(char *s)
+{
+ fputs(s, stderr); fputc('\n', stderr);
+ exit(1);
+}
+
+void status(ghttp_request *r, char *desc)
+{
+ ghttp_current_status st;
+
+ st = ghttp_get_status(r);
+ fprintf(stderr, "%s: %s [%d/%d]\n",
+ desc,
+ st.proc == ghttp_proc_request ? "request" :
+ st.proc == ghttp_proc_response_hdrs ? "response-headers" :
+ st.proc == ghttp_proc_response ? "response" : "none",
+ st.bytes_read, st.bytes_total);
+}
+
+int main(int argc, char **argv)
+{
+ int bytes = 0;
+ ghttp_request *req;
+ ghttp_status req_status;
+
+ if (argc < 2) bail("usage: simple-get URI");
+
+ req = ghttp_request_new();
+ if (ghttp_set_uri(req,argv[1]) < 0)
+ bail("ghttp_set_uri");
+ if (ghttp_prepare(req) < 0)
+ bail("ghttp_prepare");
+
+ if (ghttp_set_sync(req, ghttp_async) < 0)
+ bail("ghttp_set_sync");
+
+ do {
+ status(req, "conn0");
+ req_status = ghttp_process(req);
+
+ if (req_status == ghttp_error) {
+ fprintf(stderr, "ghttp err: %s\n",
+ ghttp_get_error(req));
+ return 2;
+ }
+
+ if (req_status != ghttp_error && ghttp_get_body_len(req) > 0) {
+ bytes += ghttp_get_body_len(req);
+ ghttp_flush_response_buffer(req);
+ }
+ } while (req_status == ghttp_not_done);
+
+ fprintf(stderr, "conn0 received %d bytes\n", bytes);
+ ghttp_clean(req);
+ return 0;
+}
+
--- libghttp-1.0.9.orig/debian/libghttp1.files
+++ libghttp-1.0.9/debian/libghttp1.files
@@ -0,0 +1 @@
+usr/lib/libghttp.so.*
@@ -0,0 +1,16 @@
DESCRIPTION = "libghttp components."
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
inherit autotools
PR = r1
SRC_URI = "http://libghttp.sourcearchive.com/downloads/${PV}/libghttp_${PV}.orig.tar.gz \
file://libghttp_1.0.9-17.patch"
SRC_URI[md5sum] = "a3b3ebdece45543b41a129cd5a0b0431"
S = "${WORKDIR}/${PN}-${PV}"
do_configure () {
./configure --build=${BUILD_SYS} --host=${HOST_SYS} --target=${TARGET_SYS} --prefix=${prefix}
}