Commit graph

60 commits

Author SHA1 Message Date
wiz
6dbf2b6475 Follow a redirect. 2017-09-07 07:54:25 +00:00
joerg
402f70c7a7 Add the necessary dependencies for safe concurrent build. 2016-10-27 10:05:38 +00:00
jperkin
d67bfc310a libfetch-2.38: Support proxies for https URLs. From FreeBSD. 2016-10-21 11:51:18 +00:00
joerg
f61b804efd libfetch-2.37: Always run SSL_read first for SSL connections. It will
signal whether more input (or output) is needed, update the poll mask
accordingly.
2016-10-20 21:25:57 +00:00
jperkin
17661ff9a5 Bump PKGREVISION for security/openssl ABI bump. 2016-03-05 11:27:40 +00:00
jperkin
05a1c09ea7 Do not use TCP_NOPUSH on Darwin, it adds a 5 second delay after the initial
handshake.  Bump PKGREVISION.
2016-02-08 13:27:41 +00:00
jperkin
7d9ad47aa5 Ensure we do not try to regenerate the catpage. Fixes occasional timing
issues where nroff isn't native.
2014-08-28 10:46:24 +00:00
joerg
b2772d43f0 Revert bad _GNU_SOURCE change. 2014-06-11 13:12:12 +00:00
cheusov
6a70ba9b3f Define _GNU_SOURCE by default for glibc-based systems (vasprintf(3)).
This fixes bootstrap failure on AltLinux.
2014-06-07 19:22:51 +00:00
tron
73d05e2276 Recursive PKGREVISION bump for OpenSSL API version bump. 2014-02-12 23:17:32 +00:00
joerg
d67d75e529 libfetch-2.36: Support Server Name Identication.
From Michael Gmelin via FreeBSD.
2014-01-07 23:30:03 +00:00
joerg
5839ebc844 Apply some explicit int casts for size_t format string arguments. 2014-01-07 23:25:12 +00:00
jperkin
a4064761fd Add -D_FILE_OFFSET_BITS=64 to the largefile flags.
Bump PKGREVISION.
2013-07-22 16:14:25 +00:00
jperkin
becd113253 PKGREVISION bumps for the security/openssl 1.0.1d update. 2013-02-06 23:20:50 +00:00
asau
e059e7e469 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-23 17:18:07 +00:00
joerg
7e851cb392 Revert 1.43. 2012-10-21 09:00:16 +00:00
joerg
c6ec1b5a05 Revert bogus warning flags. 2012-10-15 21:27:08 +00:00
sbd
301411fc5e libfetch-2.34:
On Linux libfetch needs to be built with '-fPIC' so that it can be used
  to build shared libraries.  (Fixes databases/openldap-client build.)
2012-10-09 02:48:04 +00:00
marino
b042d71cd2 net/libfetch: Fix for gcc4.7
When building with gcc4.7, libfetch fails with the following error:
  ftp.c: In function 'unmappedaddr':
  ftp.c:149:2: error: dereferencing type-punned pointer will break
               strict-aliasing rules [-Werror=strict-aliasing]
  cc1: all warnings being treated as errors
  *** Error code 1

The code is intentionally grouping an array of four uint8_t bytes into a
uint32_t word.  Add -Wno-strict-aliasing in makefile to fix build in gcc4.7.
2012-10-07 07:23:21 +00:00
sbd
cf4a5b3a63 If using fetch in FETCH_USING then fetch and libfetch cannot use checkperms. 2011-12-17 00:12:29 +00:00
joerg
2878668528 libfetch-2.33:
Don't leak FTP connections on errors in fetch or if only stat is
requested. Reported via Xavier Chantry.
2010-08-20 17:56:49 +00:00
joerg
03e26a5ff9 libfetch-2.32:
Fix NULL dereference after failed calloc call. From Tavian Barnes.
2010-06-13 21:38:08 +00:00
joerg
aa3f206f83 libfetch-2.31:
PR 43013 by Brook Milligan: fetch(3) violates RFC 1738 for ftp:// URLs
if the home directory is not the root directory.

Remember the current directory the first time a CWD / CDUP has to be
issued. Use the document as full URL if the URL started with two /
(quoted or not), otherwise append it to the initial directory.
2010-03-21 16:48:42 +00:00
joerg
53b6ba40ee libfetch-2.30:
HTTP keep-alive support
2010-01-23 14:53:08 +00:00
joerg
8efe5cbf9f libfetch-2.29:
Push \r\n up to the users of fetch_putln and remove it. Use send instead
of write(v) to avoid SIGPIPE.
2010-01-23 14:25:26 +00:00
joerg
240552a2cf libfetch-2.28:
Revamp FTP connection cache. Move it to the common layer to be later
shared with HTTP (for persistent connection). The application controls
how much caching is desired. Drop the reference counting on connections.
Add a callback when the cached connection is dropped due to LRU.
Over all, this allows more than one session cached per host and sessions
cached to different servers.
2010-01-22 13:21:09 +00:00
joerg
d15b3b46b0 libfetch-2.27:
The connection sharing didn't handle the case of active transfers
correctly and tried to close the connection in that case (PR 42607).
Correctly check if there is a transfer going on and just leave the
connection alone in that case.
2010-01-11 17:23:10 +00:00
joerg
a1188fd0de libfetch-2.26:
- Add support to aggressively cache directory listenings, useful for
HTTP
- Avoid leaking memory in error cases. From Xavier from Arch Linux.
2009-10-15 12:36:57 +00:00
joerg
1fac8ccbb5 libfetch-2.24:
Fix a bug in the line reading optimisation, which could get confused if
the byte following the new line is a NUL. Adresses Arch Linux problem
report #15845.

Do not reuse a FTP connection if there is currently a transfer active.
Some FTP servers hang on the NOOP command. Reported by Manuel Bouyer.
2009-08-16 20:31:29 +00:00
hasso
993f949798 It's not MAKE_JOBS safe. 2009-08-11 21:03:56 +00:00
tnn
6de948e3aa Drop PKGREVISION and bump to libfetch-2.24 instead. (in-tree package) 2009-08-06 14:38:18 +00:00
tnn
833925dd97 Bump the PKGREVISION for ftp.c change 2009-08-06 14:03:23 +00:00
wiz
60f460ab01 Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENT
block). Uncomment some commented out LICENSE lines while here.
2009-05-19 08:59:00 +00:00
joerg
368d71b62e Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions. 2009-04-09 00:48:06 +00:00
joerg
a63df80f2c libfetch-2.23:
Don't leak file descriptors when iterating local directories or checking
local files for if-modified-since.
2009-03-10 00:33:38 +00:00
joerg
6b3683e296 libfetch-2.22:
Allow overriding fetchRestartCalls from signal handlers by making it
volatile.
2009-02-05 22:45:25 +00:00
joerg
5af00eebb3 libfetch-2.21:
Add support for conditional GET using the 'i' flag. Inspired by
the HTTP support for the same feature in FreeBSD by Murray Stokely, but
mostly rewritten and extended to work for all protocols.
2009-02-05 16:59:45 +00:00
joerg
dc256020e3 libfetch-2.20:
Allow HTTP basic auth to be specified in the URL. Also allow : in the
password while here.
2008-11-04 16:14:24 +00:00
joerg
f0ae7519aa libfetch-2.19:
Fix a conditional in my quoting code to not be always true.
This makes ~ be quoted as %7e as intended.
2008-10-10 22:51:41 +00:00
joerg
33cbc91d96 libfetch-2.18:
Change FTP backend to use passive mode by default and fallback to active
mode on syntax errors as discussed with and suggested by Luke Mewburn.
Retire 'p' now and introduce 'a' flag to get the old default behavior.
2008-10-08 15:11:21 +00:00
joerg
bcb8113794 libfetch-2.17:
Fix line buffering to not drop content after the line we are interested
in. This magically worked for a local tnftpd that was only sending a
normal one line return message due to the challenge response protocol
always having the desired size. With the patch fetch_read will process
the remaining part of the buffer and fetch_getln will remember how much
of the data it was actually interested in, so it will now process the
complete output again.
2008-10-06 23:37:56 +00:00
joerg
a627d8f327 libfetch-2.16:
- only include openssl if the openssl option is present
- include arpa/inet.h to get ntohl and friends on older platforms like
  Interix
- use new netdb.h compat code from libnbcompat
- include inttypes.h only when present
- don't name local variables err, Interix has a symbol like that in
  default namespace
- allow fetch_read to do short read and do more intelligent buffering
  for header processing; effectively don't do a system call for each
  byte read
2008-10-06 12:58:29 +00:00
joerg
a53176bf0e libfetch-2.15:
Rewrite errlist processing to include the full message, not just the
first word.
2008-08-21 15:22:45 +00:00
joerg
adacbef13f libfetch-2.14:
Fix brain dead error in the quoting of unsafe characters.
2008-05-09 00:39:06 +00:00
joerg
634d70f1f6 libfetch-2.13:
Add a function to turn struct url back into a string.
2008-04-25 19:59:30 +00:00
joerg
d332b7e9e2 libfetch-2.12:
Make function naming consistent before external code depend on it.
Update man page.
2008-04-25 16:25:25 +00:00
joerg
db63178315 libfetch-2.11:
Implement full quoting support in FILE and FTP protocols.
2008-04-24 10:21:33 +00:00
joerg
bda08cd402 libfetch-2.4.10:
Start URL quoting cleanup.  All URLs are now quoted correctly on parsing
and when appending URLs.  URLs without schema and starting with slash are
considered to be file:// URLs.
2008-04-24 07:55:00 +00:00
joerg
6dff822714 libfetch-2.9:
Add fetch_extract_filename to extract the unquoted filename of a URL.
2008-04-21 17:15:31 +00:00
joerg
e3a9871309 libfetch-2.8:
Fix a number of small bugs introduced in the last version.
2008-04-21 13:09:57 +00:00