summaryrefslogtreecommitdiff
path: root/net/libfetch
AgeCommit message (Collapse)AuthorFilesLines
2009-05-19Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENTwiz1-2/+2
block). Uncomment some commented out LICENSE lines while here.
2009-04-09Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.joerg1-3/+1
2009-03-20Simply and speed up buildlink3.mk files and processing.joerg1-13/+6
This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
2009-03-16Improve markup.joerg1-3/+3
2009-03-10libfetch-2.23:joerg2-3/+6
Don't leak file descriptors when iterating local directories or checking local files for if-modified-since.
2009-03-05Add !__MINT__ to the HAVE_SA_LEN testabs1-2/+3
2009-03-05Like Linux, MiNT wants _GNU_SOURCE (for strptime)abs1-3/+3
2009-03-05Always define _REENTRANT to get gmtime_r prototype on Interix.joerg1-1/+4
2009-02-22Be nice to ancient NetBSD releases. From Hauke Fath.joerg3-9/+13
2009-02-09Suggest openssl option only if OpenSSL is builtin.joerg1-2/+8
2009-02-05Need sleep, unbreak: declare fetchRestartCalls as volatile, not extern.joerg1-2/+2
2009-02-05Really mark fetchRestartCalls as volatile.joerg1-2/+2
2009-02-05libfetch-2.22:joerg3-6/+6
Allow overriding fetchRestartCalls from signal handlers by making it volatile.
2009-02-05libfetch-2.21:joerg10-22/+104
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.
2008-12-02Be a bit nicer to native linux use and define _GNU_SOURCE here as well.joerg1-1/+6
2008-11-04libfetch-2.20:joerg2-6/+5
Allow HTTP basic auth to be specified in the URL. Also allow : in the password while here.
2008-10-10libfetch-2.19:joerg2-4/+4
Fix a conditional in my quoting code to not be always true. This makes ~ be quoted as %7e as intended.
2008-10-08libfetch-2.18:joerg4-36/+52
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-07Explicitly initialise next to appease GCC and myself as it might bejoerg1-1/+2
possible to trigger due to early EOF or timeouts.
2008-10-06libfetch-2.17:joerg3-10/+28
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-06Require 2.16 for dependencies due to the changed fetch_read semantic.joerg1-2/+2
2008-10-06libfetch-2.16:joerg13-40/+83
- 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-08-21libfetch-2.15:joerg4-20/+19
Rewrite errlist processing to include the full message, not just the first word.
2008-07-27Deal with OpenSSL const changes as suggested by wiz.joerg1-2/+6
2008-05-09libfetch-2.14:joerg2-5/+5
Fix brain dead error in the quoting of unsafe characters.
2008-05-06glibc loves to not define common string functions and fail miserablyjoerg1-6/+6
as some headers are already included. Define _GNU_SOURCE early...
2008-04-30Formatting improvements. Spelling. Use enough commas in enumeration.wiz1-36/+46
Improve HTML output.
2008-04-26fix build with Sun Studio by not using ranges in case stmt.tnn1-4/+5
2008-04-25libfetch-2.13:joerg5-12/+59
Add a function to turn struct url back into a string.
2008-04-25libfetch-2.12:joerg8-52/+112
Make function naming consistent before external code depend on it. Update man page.
2008-04-24Claim copyright on a few more files for completeness.joerg2-2/+4
2008-04-24libfetch-2.11:joerg6-57/+124
Implement full quoting support in FILE and FTP protocols.
2008-04-24libfetch-2.4.10:joerg7-73/+162
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-21Actually, just check for linux and ignore hurd...joerg1-2/+2
2008-04-21Fix another surprise from the glibc folks.joerg1-1/+6
2008-04-21Fix typo in delimiter.joerg1-2/+2
2008-04-21libfetch-2.9:joerg3-4/+53
Add fetch_extract_filename to extract the unquoted filename of a URL.
2008-04-21libfetch-2.8:joerg3-7/+5
Fix a number of small bugs introduced in the last version.
2008-04-20libfetch-2.7:joerg3-4/+30
Add fetchCopyURL.
2008-04-19libfetch-2.6:joerg11-261/+177
Change fetchList API to always return lists of full URLs.
2008-04-18libfetch-2.5:joerg2-7/+196
Add basic index parsing support for HTTP based on the ftpio.c code in pkg_install. Permission to use the 3-clause BSD license from Thomas Klausner in private mail.
2008-04-17Claim copyright on the files I modified a lot.joerg2-2/+4
2008-04-17Avoid using %ju as it is not implemented on all platforms.joerg1-2/+2
2008-04-16Don't use inline.joerg1-2/+2
2008-04-16Use nbcompat.joerg3-3/+23
2008-04-08Force depend target to run, bootstrap-mk-files doesn't have thejoerg1-1/+2
necessary logic for explicit dependencies as the NetBSD rules have. Should fix build on Solaris and Darwin.
2008-04-07Be a bit nicer to users that want to play with the fire.joerg1-1/+2
2008-04-05Actually return the list, not print it.joerg2-6/+10
2008-04-05libfetch-2.4: FTP directory listenings.joerg1-2/+2
2008-04-05Add somewhat ugly, but working directory listening code for FTP.joerg3-25/+72
Note that using glob patterns that match directories can result in recursive expansion, e.g. with tnftpd.