joerg
368d71b62e
Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.
2009-04-09 00:48:06 +00:00
joerg
2d1ba244e9
Simply and speed up buildlink3.mk files and processing.
...
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-20 19:23:50 +00:00
joerg
1f3e66ede2
Improve markup.
2009-03-16 18:11:39 +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
abs
413f2425e7
Add !__MINT__ to the HAVE_SA_LEN test
2009-03-05 19:08:47 +00:00
abs
d2473b09c1
Like Linux, MiNT wants _GNU_SOURCE (for strptime)
2009-03-05 19:07:03 +00:00
joerg
81a49ee88d
Always define _REENTRANT to get gmtime_r prototype on Interix.
2009-03-05 15:14:14 +00:00
joerg
c06ff1bd5f
Be nice to ancient NetBSD releases. From Hauke Fath.
2009-02-22 19:11:48 +00:00
joerg
d537ef643a
Suggest openssl option only if OpenSSL is builtin.
2009-02-09 13:34:02 +00:00
joerg
6216f6bf9d
Need sleep, unbreak: declare fetchRestartCalls as volatile, not extern.
2009-02-05 23:29:14 +00:00
joerg
9b190aca9e
Really mark fetchRestartCalls as volatile.
2009-02-05 23:27:39 +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
db16e614b2
Be a bit nicer to native linux use and define _GNU_SOURCE here as well.
2008-12-02 16:59:03 +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
d31f76bbcb
Explicitly initialise next to appease GCC and myself as it might be
...
possible to trigger due to early EOF or timeouts.
2008-10-07 15:50:00 +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
4af8dada8f
Require 2.16 for dependencies due to the changed fetch_read semantic.
2008-10-06 22:03:43 +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
a01e962e61
Deal with OpenSSL const changes as suggested by wiz.
2008-07-27 13:51:27 +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
0f925bb1b4
glibc loves to not define common string functions and fail miserably
...
as some headers are already included. Define _GNU_SOURCE early...
2008-05-06 17:37:30 +00:00
wiz
5c4b039686
Formatting improvements. Spelling. Use enough commas in enumeration.
...
Improve HTML output.
2008-04-30 11:43:59 +00:00
tnn
ae05948c53
fix build with Sun Studio by not using ranges in case stmt.
2008-04-26 22:42:49 +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
bc078bf3c7
Claim copyright on a few more files for completeness.
2008-04-24 10:24:04 +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
110e57f85e
Actually, just check for linux and ignore hurd...
2008-04-21 22:39:15 +00:00
joerg
566201d75d
Fix another surprise from the glibc folks.
2008-04-21 22:36:08 +00:00
joerg
5e626bd59c
Fix typo in delimiter.
2008-04-21 21:15:53 +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
joerg
70e1a5075b
libfetch-2.7:
...
Add fetchCopyURL.
2008-04-20 15:29:26 +00:00
joerg
b4415d1d0b
libfetch-2.6:
...
Change fetchList API to always return lists of full URLs.
2008-04-19 14:49:23 +00:00
joerg
b05cf0700b
libfetch-2.5:
...
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-18 21:13:10 +00:00
joerg
1a88f0800b
Claim copyright on the files I modified a lot.
2008-04-17 19:04:12 +00:00
joerg
c35c56dfb2
Avoid using %ju as it is not implemented on all platforms.
2008-04-17 08:35:20 +00:00
joerg
4ec3d2c430
Don't use inline.
2008-04-16 15:10:18 +00:00
joerg
1326c4fa04
Use nbcompat.
2008-04-16 01:01:50 +00:00
joerg
e3fc6a6999
Force depend target to run, bootstrap-mk-files doesn't have the
...
necessary logic for explicit dependencies as the NetBSD rules have.
Should fix build on Solaris and Darwin.
2008-04-08 11:45:49 +00:00
joerg
dfc4ab8bef
Be a bit nicer to users that want to play with the fire.
2008-04-07 19:39:24 +00:00
joerg
a41011ddfb
Actually return the list, not print it.
2008-04-05 02:51:14 +00:00
joerg
d3b6313e66
libfetch-2.4: FTP directory listenings.
2008-04-05 02:42:53 +00:00
joerg
70a1c0da87
Add somewhat ugly, but working directory listening code for FTP.
...
Note that using glob patterns that match directories can result in
recursive expansion, e.g. with tnftpd.
2008-04-05 02:42:13 +00:00
joerg
bebce94037
Regen.
2008-04-05 00:40:17 +00:00
joerg
472cf496e0
On second thought, don't filter out files with . Bump to 2.3.
2008-04-04 23:19:16 +00:00
joerg
5f8b22911d
libfetch-2.2:
...
Add interface to glob a directory.
2008-04-04 22:37:28 +00:00
joerg
f8bafbe7e8
Use inttypes.h, it is more portable and all that is needed here.
2008-04-04 15:17:51 +00:00
joerg
586f71a7c1
libfetch-2.1:
...
- remove most of the debug junk
- fix a buffer overflow in the config parser
- replace stdio usage with a simple abstract IO framework. currently
without explicit buffering, but that might be added later
2008-04-02 15:33:14 +00:00
tnn
4c718bd4e0
No sin_len on IRIX.
2008-02-21 14:40:43 +00:00
joerg
f39ec90913
The libfetch version is good enough as user-agent.
2008-02-07 18:02:01 +00:00
joerg
b5978b75bb
Conditionally declare arg on the existance of the socket options.
2008-02-07 17:57:28 +00:00
joerg
62b3753060
Don't use warnx, fprintf(stderr, ...) is good enough. Rename logname to
...
login_name to avoid shadowing a global variable.
2008-02-07 17:47:12 +00:00
joerg
ae18f14e95
Conditionally use IP_PORTRANGE sockopt and avoid using ss_len when other
...
operations already provided the value.
2008-02-07 17:42:14 +00:00
joerg
c893ace4e9
Kill more __unused.
2008-02-07 17:27:40 +00:00
joerg
3e2c8c39a9
Expand __func__.
2008-02-07 17:23:37 +00:00
joerg
48690f3324
Conditionalize sin_len assignment.
2008-02-07 17:20:50 +00:00
joerg
986863ab93
Replace u_char, u_short, u_long, u_int32_t with the unabbrivated version
...
or the POSIX type.
2008-02-07 17:19:50 +00:00
joerg
52d90533d8
Always compile for large file support.
2008-02-07 17:16:05 +00:00
joerg
7bc6b51917
Don't use __unused.
2008-02-07 17:12:12 +00:00
joerg
182d2d8055
Include sys/types.h to get time_t.
2008-02-07 17:10:35 +00:00
joerg
ed6c2007e4
Don't use __BEGIN_DECL/__END_DECL, just inline them. Ensure that
...
the external variables are covered as well. Directly include stdio.h.
2008-02-07 16:34:52 +00:00
joerg
208c8a0cb6
Don't shadow wait(2).
2008-02-07 16:30:49 +00:00
joerg
037ab467ac
EAUTH and ENEEDAUTH might not exist, so use them conditionally.
...
To flag HTTP authentication errors, fallback to EPERM.
2008-02-07 16:24:01 +00:00
joerg
d85b9063b3
bcopy -> memcpy
2008-02-07 16:14:44 +00:00
joerg
eac8e6ef8c
MAXNAMELEN -> PATH_MAX to match fetch.h.
2008-02-07 16:14:32 +00:00
joerg
9cf9dd43d1
Import libfetch-2.0, based on the FreeBSD version of today with a number
...
of smaller changes to not depend on sys/param.h. This library is
intended to replace the tnftp dependency in pkg_install.
2008-02-07 01:48:22 +00:00