diff options
author | Patrick Kursawe <phosphan@gentoo.org> | 2003-06-23 07:03:05 +0000 |
---|---|---|
committer | Patrick Kursawe <phosphan@gentoo.org> | 2003-06-23 07:03:05 +0000 |
commit | cff3179ac13b6a5d4da672d3e14e44f6711e6fad (patch) | |
tree | fe36d65b9b042ff8a0d32fdc3b8f06c0492de825 /dev-libs/http-fetcher | |
parent | Moving from net-www to dev-libs (diff) | |
download | historical-cff3179ac13b6a5d4da672d3e14e44f6711e6fad.tar.gz historical-cff3179ac13b6a5d4da672d3e14e44f6711e6fad.tar.bz2 historical-cff3179ac13b6a5d4da672d3e14e44f6711e6fad.zip |
Moving from net-www to dev-libs
Diffstat (limited to 'dev-libs/http-fetcher')
-rw-r--r-- | dev-libs/http-fetcher/ChangeLog | 5 | ||||
-rw-r--r-- | dev-libs/http-fetcher/Manifest | 8 | ||||
-rw-r--r-- | dev-libs/http-fetcher/files/buffer-overflow-gentoo.patch | 35 | ||||
-rw-r--r-- | dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1 | 1 | ||||
-rw-r--r-- | dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1-r1 | 1 | ||||
-rw-r--r-- | dev-libs/http-fetcher/files/digest-http-fetcher-1.0.2 | 1 | ||||
-rw-r--r-- | dev-libs/http-fetcher/files/errno-link-gentoo.patch | 20 | ||||
-rw-r--r-- | dev-libs/http-fetcher/http-fetcher-1.0.1-r1.ebuild | 38 | ||||
-rw-r--r-- | dev-libs/http-fetcher/http-fetcher-1.0.1.ebuild | 30 | ||||
-rw-r--r-- | dev-libs/http-fetcher/http-fetcher-1.0.2.ebuild | 26 |
10 files changed, 160 insertions, 5 deletions
diff --git a/dev-libs/http-fetcher/ChangeLog b/dev-libs/http-fetcher/ChangeLog index 4c0205c18194..fd0d54330cc1 100644 --- a/dev-libs/http-fetcher/ChangeLog +++ b/dev-libs/http-fetcher/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-www/http-fetcher # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/http-fetcher/ChangeLog,v 1.1 2003/06/23 07:01:17 phosphan Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/http-fetcher/ChangeLog,v 1.2 2003/06/23 07:02:57 phosphan Exp $ + + 23 Jun 2003; Patrick Kursawe <phosphan@gentoo.org> : + Moving from net-www to dev-libs as requested by package author *http-fetcher-1.0.2 (18 Jun 2003) diff --git a/dev-libs/http-fetcher/Manifest b/dev-libs/http-fetcher/Manifest index 9debbfdf3b9d..0a1a07e8744e 100644 --- a/dev-libs/http-fetcher/Manifest +++ b/dev-libs/http-fetcher/Manifest @@ -1,7 +1,7 @@ -MD5 191201b4e0a39ed9fff0fe237db36abc http-fetcher-1.0.1.ebuild 875 -MD5 47990ace11b248a9d984eb0e45815e79 http-fetcher-1.0.2.ebuild 733 -MD5 6175022c6040e6c1db18ca1ce4d9540e ChangeLog 1008 -MD5 fc4cef2a2d88880b33e15964bffaa7c5 http-fetcher-1.0.1-r1.ebuild 1143 +MD5 5e7450805561e42f61dd3dc2ffb59115 http-fetcher-1.0.1.ebuild 878 +MD5 2180884cf514e1bae3f98b52e3a9c242 http-fetcher-1.0.2.ebuild 734 +MD5 fbe5905d9a3e399721b972df14ac5709 ChangeLog 1130 +MD5 d86b4979c30e2bbb2fd49a62b40b2109 http-fetcher-1.0.1-r1.ebuild 1144 MD5 986a8927fbf78398c94af18534ae8786 files/digest-http-fetcher-1.0.1-r1 70 MD5 5bed14995f10b0fafebd610a6b74deaf files/buffer-overflow-gentoo.patch 1173 MD5 986a8927fbf78398c94af18534ae8786 files/digest-http-fetcher-1.0.1 70 diff --git a/dev-libs/http-fetcher/files/buffer-overflow-gentoo.patch b/dev-libs/http-fetcher/files/buffer-overflow-gentoo.patch new file mode 100644 index 000000000000..ac54815a0758 --- /dev/null +++ b/dev-libs/http-fetcher/files/buffer-overflow-gentoo.patch @@ -0,0 +1,35 @@ +--- http_fetcher.c Tue Jul 31 03:47:15 2001 ++++ http_fetcher.patch.c Thu Jan 2 22:24:48 2003 +@@ -94,7 +94,7 @@ + * request */ + sprintf(requestBuf, "GET / %s\n", HTTP_VERSION); + else +- sprintf(requestBuf, "GET %s %s\n", charIndex, HTTP_VERSION); ++ snprintf(requestBuf, sizeof(requestBuf)/4-1,"GET %s %s\n", charIndex, HTTP_VERSION); + + /* Null out the end of the hostname if need be */ + if(charIndex != NULL) +@@ -102,13 +102,13 @@ + /* Use Host: even though 1.0 doesn't specify it. Some servers + * won't play nice if we don't send Host, and it shouldn't hurt anything */ + strcat(requestBuf, "Host: "); +- strcat(requestBuf, host); ++ strncat(requestBuf, host, sizeof(requestBuf)/4-1); + strcat(requestBuf, "\n"); + + if(!hideReferer && referer != NULL) /* NO default referer */ + { + strcat(requestBuf, "Referer: "); +- strcat(requestBuf, referer); ++ strncat(requestBuf, referer, sizeof(requestBuf)/4-1); + strcat(requestBuf, "\n"); + } + +@@ -123,7 +123,7 @@ + else if(!hideUserAgent) + { + strcat(requestBuf, "User-Agent: "); +- strcat(requestBuf, userAgent); ++ strncat(requestBuf, userAgent, sizeof(requestBuf)/4-1); + strcat(requestBuf, "\n"); + } diff --git a/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1 b/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1 new file mode 100644 index 000000000000..49a19aef6bdb --- /dev/null +++ b/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1 @@ -0,0 +1 @@ +MD5 3fd1b6c1cada35279f08bf6874dab98e http_fetcher-1.0.1.tar.gz 173544 diff --git a/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1-r1 b/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1-r1 new file mode 100644 index 000000000000..49a19aef6bdb --- /dev/null +++ b/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.1-r1 @@ -0,0 +1 @@ +MD5 3fd1b6c1cada35279f08bf6874dab98e http_fetcher-1.0.1.tar.gz 173544 diff --git a/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.2 b/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.2 new file mode 100644 index 000000000000..6e838952469e --- /dev/null +++ b/dev-libs/http-fetcher/files/digest-http-fetcher-1.0.2 @@ -0,0 +1 @@ +MD5 e522fc221e94fa1735667a5d61a72b78 http_fetcher-1.0.2.tar.gz 277015 diff --git a/dev-libs/http-fetcher/files/errno-link-gentoo.patch b/dev-libs/http-fetcher/files/errno-link-gentoo.patch new file mode 100644 index 000000000000..4ba2771291fa --- /dev/null +++ b/dev-libs/http-fetcher/files/errno-link-gentoo.patch @@ -0,0 +1,20 @@ +diff -ur http_fetcher-1.0.1/src/http_fetcher.c http_fetcher-1.0.1~/src/http_fetcher.c +--- http_fetcher-1.0.1/src/http_fetcher.c 2001-07-30 13:47:15.000000000 -0500 ++++ http_fetcher-1.0.1~/src/http_fetcher.c 2003-03-24 11:38:19.000000000 -0600 +@@ -24,6 +24,7 @@ + #include <netinet/in.h> + #include <sys/types.h> + #include <sys/time.h> ++#include <errno.h> + #include "http_fetcher.h" + + /* Globals */ +@@ -457,7 +458,6 @@ + */ + const char *http_strerror() + { +- extern int errno; + extern int *sys_errlist[]; + + if(errorSource == ERRNO) +Only in http_fetcher-1.0.1~/src: http_fetcher.c~ diff --git a/dev-libs/http-fetcher/http-fetcher-1.0.1-r1.ebuild b/dev-libs/http-fetcher/http-fetcher-1.0.1-r1.ebuild new file mode 100644 index 000000000000..2359fc2a3fcc --- /dev/null +++ b/dev-libs/http-fetcher/http-fetcher-1.0.1-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/http-fetcher/http-fetcher-1.0.1-r1.ebuild,v 1.1 2003/06/23 07:01:17 phosphan Exp $ + +DESCRIPTION="HTTP Fetcher is a small, robust, flexible library for downloading files via HTTP using the GET method." +HOMEPAGE="http://cs.nmu.edu/~lhanson/http_fetcher/" +SRC_URI="http://cs.nmu.edu/~lhanson/http_fetcher/dls/${P/-/_}.tar.gz" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="x86" +IUSE="" + +DEPEND="virtual/glibc" + +S=${WORKDIR}/${P/-/_} + +src_unpack () { + unpack ${A} + # source: InetCop Security Advisory, Bugtraq, 06 Jan 2003 + cd ${S}/src && patch -p0 <${FILESDIR}/buffer-overflow-gentoo.patch || die + # glibc2.3.2 linking problems + cd ${S} && patch -p1 <${FILESDIR}/errno-link-gentoo.patch || die +} + +src_compile() { + ./configure \ + --host=${CHOST} \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man || die "./configure failed" + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + dohtml -r docs/index.html docs/html + dodoc README ChangeLog INSTALL LICENSE +} diff --git a/dev-libs/http-fetcher/http-fetcher-1.0.1.ebuild b/dev-libs/http-fetcher/http-fetcher-1.0.1.ebuild new file mode 100644 index 000000000000..d6a2be9b8d88 --- /dev/null +++ b/dev-libs/http-fetcher/http-fetcher-1.0.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/http-fetcher/http-fetcher-1.0.1.ebuild,v 1.1 2003/06/23 07:01:17 phosphan Exp $ + +DESCRIPTION="HTTP Fetcher is a small, robust, flexible library for downloading files via HTTP using the GET method." +HOMEPAGE="http://cs.nmu.edu/~lhanson/http_fetcher/" +SRC_URI="http://cs.nmu.edu/~lhanson/http_fetcher/dls/${P/-/_}.tar.gz" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="x86" +IUSE="" + +DEPEND="virtual/glibc" + +S=${WORKDIR}/${P/-/_} + +src_compile() { + ./configure \ + --host=${CHOST} \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man || die "./configure failed" + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + dohtml -r docs/index.html docs/html + dodoc README ChangeLog INSTALL LICENSE +} diff --git a/dev-libs/http-fetcher/http-fetcher-1.0.2.ebuild b/dev-libs/http-fetcher/http-fetcher-1.0.2.ebuild new file mode 100644 index 000000000000..fb0bbe194560 --- /dev/null +++ b/dev-libs/http-fetcher/http-fetcher-1.0.2.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/http-fetcher/http-fetcher-1.0.2.ebuild,v 1.1 2003/06/23 07:01:17 phosphan Exp $ + +DESCRIPTION="HTTP Fetcher is a small, robust, flexible library for downloading files via HTTP using the GET method." +HOMEPAGE="http://http-fetcher.sourceforge.net" +SRC_URI="mirror://sourceforge/http-fetcher/${P/-/_}.tar.gz" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND="virtual/glibc" + +S=${WORKDIR}/${P/-/_} + +src_compile() { + econf + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + dohtml -r docs/index.html docs/html + dodoc README ChangeLog INSTALL LICENSE +} |