History log of /freebsd-current/lib/libfetch/Makefile
Revision Date Author Comments
# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 77d788e2 25-May-2023 Pierre Pronchery <pierre@freebsdfoundation.org>

libfetch: specify OpenSSL 1.1 APIs

OPENSSL_API_COMPAT can be used to specify the OpenSSL API version in
use for the purpose of hiding deprecated interfaces and enabling
the appropriate deprecation notices.

This change is a NFC while we're still using OpenSSL 1.1.1 but will
avoid deprecation warnings upon the switch to OpenSSL 3.0.

Future work should migrate to use the OpenSSL 3.0 APIs.

PR: 271615
Reviewed by: emaste
Event: Kitchener-Waterloo Hackathon 202305
Sponsored by: The FreeBSD Foundation


# 13ef8134 14-Dec-2021 Emmanuel Vadot <manu@FreeBSD.org>

pkgbase: Create a FreeBSD-fetch package

It's useful for small image to fetch some data but we don't want to
install utilities nor bloat runtime.

MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33463


# 94179175 16-Aug-2020 Xin LI <delphij@FreeBSD.org>

Don't explicitly specify c99 or gnu99 as the default is now gnu99.

MFC after: 2 weeks


# 4c1a82ce 05-Sep-2019 Emmanuel Vadot <manu@FreeBSD.org>

pkgbase: Create a FreeBSD-utilities package and make it the default one

The default package use to be FreeBSD-runtime but it should only contain
binaries and libs enough to boot to single user and repair the system, it
is also very handy to have a package that can be tranform to a small mfsroot.
So create a new package named FreeBSD-utilities and make it the default one.
Also move a few binaries and lib into this package when it make sense.
Reviewed by: bapt, gjb
Differential Revision: https://reviews.freebsd.org/D21506


# f4e05cc5 28-Aug-2019 Mark Johnston <markj@FreeBSD.org>

Document fetchReqHTTP().

Submitted by: Farhan Khan <khanzf@gmail.com>
Reviewed by: 0mp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D18788


# a70cba95 04-Feb-2016 Glen Barber <gjb@FreeBSD.org>

First pass through library packaging.

Sponsored by: The FreeBSD Foundation


# 6b129086 25-Nov-2014 Baptiste Daroussin <bapt@FreeBSD.org>

Convert libraries to use LIBADD
While here reduce a bit overlinking


# c6063d0d 05-May-2014 Warner Losh <imp@FreeBSD.org>

Use src.opts.mk in preference to bsd.own.mk except where we need stuff
from the latter.


# 0e50a833 14-Sep-2012 Dag-Erling Smørgrav <des@FreeBSD.org>

Use libmd if and only if OpenSSL is not available.

PR: bin/171402
MFC after: 3 days


# ee3cb0e5 12-May-2011 Dag-Erling Smørgrav <des@FreeBSD.org>

Builds cleanly at the default WARNS level (WARNS=6).


# eb9b80c3 12-May-2011 Dag-Erling Smørgrav <des@FreeBSD.org>

Increase WARNS to 4.


# a42eecde 12-May-2011 Dag-Erling Smørgrav <des@FreeBSD.org>

Increase WARNS to 3.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# da4af7b6 26-Jan-2010 Dag-Erling Smørgrav <des@FreeBSD.org>

MFH (r202613, r202623): HTTP digest authentication support.


# 66c82e57 19-Jan-2010 Dag-Erling Smørgrav <des@FreeBSD.org>

Add missing DPADD and fix whitespace.

Submitted by: ru


# 79ad329d 19-Jan-2010 Dag-Erling Smørgrav <des@FreeBSD.org>

Add HTTP digest authentication.

Submitted by: Jean-Francois Dockes <jf@dockes.org>
Forgotten by: des (repeatedly)


# 3ca3047a 19-Jul-2009 Ken Smith <kensmith@FreeBSD.org>

Bump the version of all non-symbol-versioned shared libraries in
preparation for 8.0-RELEASE. Add the previous version of those
libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.

Reviewed by: kib
Approved by: re (rwatson)


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# edabafcb 18-Dec-2007 Ruslan Ermilov <ru@FreeBSD.org>

Add missing dependencies on Makefile (fixes NO_CLEAN builds).


# a1b37df2 14-Dec-2007 Dag-Erling Smørgrav <des@FreeBSD.org>

Clean up namespace violations.

MFC after: 1 week


# 887ecc8d 24-May-2007 Dag-Erling Smørgrav <des@FreeBSD.org>

Enable FTP_COMBINE_CWDS.


# 419ecd5d 20-May-2007 Daniel Eischen <deischen@FreeBSD.org>

Bump library versions in preparation for 7.0.

Ok'd by: kan


# ad82a90b 26-Jul-2006 Yaroslav Tykhiy <ytykhiy@gmail.com>

Respect MK_INET6_SUPPORT.


# e1fe3dba 17-Mar-2006 Ruslan Ermilov <ru@FreeBSD.org>

Reimplementation of world/kernel build options. For details, see:

http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)


# a84020c2 22-Jul-2005 Ken Smith <kensmith@FreeBSD.org>

Bump the shared library version number of all libraries that have not
been bumped since RELENG_5.

Reviewed by: ru
Approved by: re (not needed for commit check but in principle...)


# a2161735 21-Dec-2004 Ruslan Ermilov <ru@FreeBSD.org>

NOCRYPT -> NO_CRYPT


# d37df47d 06-Aug-2004 Colin Percival <cperciva@FreeBSD.org>

Join the 21st century: Cryptography is no longer an optional component
of releases. The -DNOCRYPT build option still exists for anyone who
really wants to build non-cryptographic binaries, but the "crypto"
release distribution is now part of "base", and anyone installing from a
release will get cryptographic binaries.

Approved by: re (scottl), markm
Discussed on: freebsd-current, in late April 2004


# 36317d68 22-Jul-2003 Ruslan Ermilov <ru@FreeBSD.org>

Make sure the crypto versions of libfetch and fetch(1) appear in
the "crypto" distribution.

Approved by: des


# 7691f66a 19-May-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Retire the useless NOSECURE knob.

Approved by: re (scottl)


# 60a87a5f 01-May-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Mark libfetch as c99-clean. Always build at WARNS level 2 rather than
juggling with levels 2 and 3, as this has lead to world breakage for
NOCRYPT users in the past.


# edf34e80 31-Jan-2003 Mark Murray <markm@FreeBSD.org>

No need for the OPENSSL_NO_KRB5 switch anymore.

Fixed by: nectar


# cb9c19ff 28-Jan-2003 Mark Murray <markm@FreeBSD.org>

Adjust for OpenSSL 0.9.7.


# 7b628f43 03-Dec-2002 Jake Burkholder <jake@FreeBSD.org>

Reduce WARNS level to 3 in the non-crypto case to fix make release on sparc64.
This may only be turning up now to changes in the cpp predefines for sparc64,
which may be turning on more strict alignment checking.

Approved by: re


# 75c3973a 29-Oct-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Clarify my feelings towards fetch / libfetch.


# cf2d89d9 28-Oct-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

libfetch is now WARNS5 clean in the non-SSL case.


# 8497092d 27-Oct-2002 Bill Fenner <fenner@FreeBSD.org>

Up WARNS to 3 if not building with crypto.

Approved by: des


# 513829ec 20-Oct-2002 David E. O'Brien <obrien@FreeBSD.org>

Use a warns setting we can catch regressions with.


# 224af215 27-Sep-2002 Peter Wemm <peter@FreeBSD.org>

Zap now-unused SHLIB_MINOR


# a7a4510f 21-Jun-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Fix incorrect library ordering. I thought I'd committed this already...


# 4093807d 06-Jun-2002 Ruslan Ermilov <ru@FreeBSD.org>

libfetch now depends on libcrypto and libssl.


# 3070f6cb 05-Jun-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Make SSL support conditional on NOCRYPT.


# d9615d7d 05-Jun-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

During buildworld, "regular" libraries are built before crypto stuff, so
libfetch can't depend on lib{crypto,ssl}. Move the dependency to fetch
until we can figure out how to fix this.


# 4dc0da3f 05-Jun-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Add the necessary dependencies for SSL.


# e19e6098 05-Feb-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Reindent, and add parentheses to return statements. Some functions in
ftp.c and http.c now have exceedingly long lines due to deep nesting;
this will be corrected by reorganizing the code in a later revision.


# 3c4b4d83 09-Dec-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Don't build with NDEBUG.

PR: bin/32615
MFC after: 1 week


# 5b31422b 19-Oct-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Add NO_WERROR so the build won't die because of discarded qualifiers


# f573a5fc 18-Oct-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Tons of type, style and warning fixes that have been rotting in my tree for
ages - some of which wouldn't be necessary if gcc wasn't broken or TPTB were
willing to do something (-fno-builtin) about it.


# 7ec6a14e 26-May-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Bump major number.


# 4a558355 27-Mar-2001 Ruslan Ermilov <ru@FreeBSD.org>

MAN[1-9] -> MAN.


# bf4dd407 08-Jan-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Back out previous (accidental) commit.


# 80ed165e 08-Jan-2001 Dag-Erling Smørgrav <des@FreeBSD.org>

Use "anonymous" rather than "ftp" as login name for anonymous ftp.

Rather than have a separate (misnamed) FTP_ANONYMOUS_PASSWORD constant, use
FTP_ANONYMOUS_USER (i.e. "anonymous") to construct the anonymous ftp password
if getlogin() fails.


# f18255c6 28-Oct-2000 David E. O'Brien <obrien@FreeBSD.org>

Install per function manpages so one doesn't mistakenly think we don't
have manpages for libfetch's functions.


# ba101983 25-May-2000 Dag-Erling Smørgrav <des@FreeBSD.org>

Dump com_err, it's a stinking crock of shit.


# 28c645cf 20-May-2000 Hajimu UMEMOTO <ume@FreeBSD.org>

IPv6 support.


# 96d7319a 11-May-2000 Dag-Erling Smørgrav <des@FreeBSD.org>

Bump major number, since struct url has changed.

Discussed with: jdp


# d05257b0 14-Jan-2000 Rodney W. Grimes <rgrimes@FreeBSD.org>

Replace beforeinstall target with new variables used by .mk system.

Reviewed by: marcel, and make world


# 7f3dea24 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# 5a537554 28-Jan-1999 Dag-Erling Smørgrav <des@FreeBSD.org>

Add MAINTAINER.


# d941fd2d 18-Dec-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Don't specify a language to compile_et.
Rename fetchConnect to _fetch_connect since it's internal.


# 0fba3a00 16-Dec-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Add verbose flag, and support functions.
Brucify the Makefile.
Differentiate atime and mtime in fetch*Stat().
Fix a few pointer bugs.
Tweak some error messages.
Don't #include sys/param.h and stdio.h in fetch.h.
Document that sys/param.h and stdio.h must be #included before fetch.h.


# 2878b308 14-Dec-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Fix the "Unknown HTTP error" message.
Make compile_et generate prototypes.


# 08f9fcbf 07-Nov-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

fetch_err.h is a generated file, so don't look for it in ${.CURDIR}.


# d8acd8dc 06-Nov-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Second of a series of cleanups to libfetch.

This commit introduces the following features:

a) the fetchStat*() functions, which return meta-information for a
document, such as size, modification time, etc.

b) the use of the com_err(3) facilities to report errors.

It also fixes a bunch of style bugs and a few logic bugs and somewhat
improves the man page.

Changed files, in alphabetical order:

Makefile:
Don't generate macros in {ftp,http}err.c.

Generate category fields for the error message lists.

Compile the error table.

Install fetch_err.h along with fetch.h.

common.c:
Remove the _netdb_errstring() macro, and add FETCH_ERR_NETDB to the
error code in the _netdb_seterr() macro.

Add categories to the _netdb_errlist table.

Report errors through the Common Error library.

common.h:
Add the DEBUG macros.

Add prototype for fetchConnect().

Remove the prototype for _fetch_errstring(), which is local to common.c

Add a categroy field to struct fetcherr, and define constants for
error categories.

Define macros for _{url,netdb,ftp,http}_seterr().

errors.et: (new file)
List error categories.

fetch.3:
Document the fetchStat*() functions.

Move the "unimplemented functionality" comments from NOTES to BUGS.

Document that applications which use libfetch must also use
libcom_err, and list existing error codes.

Undocument fetchLastErr{Code,String}.

Remove the (empty) DIAGNOSTICS section.

Mention Eugene Skepner in the AUTHORS section.

fetch.c:
Move the DEBUG macros to common.c

Add fetchStat() and fetchStatURL().

Generate error messages for URL parser errors, and fix a minor bug
in the parser.

Use 'struct url' instead of 'url_t'.

Remove fetchLastErr{Code,String}.

fetch.h:
Use 'struct url' instead of 'url_t', and remove the typedef.

Define struct url_stat (used by fetchStat()).

Add prototypes for fetchStat*().

Remove the declarations for fetchLastErr{Code,String}.

Include fetch_err.h.

fetch_err.et: (new file)
Error table for libfetch.

file.c:
Add fetchStatFile().

Use 'struct url' instead of 'url_t'.

ftp.c:
Add fetchStatFTP().

Use 'struct url' instead of 'url_t'.

Don't use fetchLastErrCode.

ftp.errors:
Add categories to all error messages.

http.c:
Add fetchStatHTTP().

Use 'struct url' instead of 'url_t'.

Don't use fetchLastErr{Code,Text}.

http.errors:
Add categories to all error messages.

Prompted by: jkh and Eugene Skepner
Numerous sugestions from: Garett Wollman and Eugene Skepner


# 842a95cc 05-Nov-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

First of a series of cleanups to libfetch. Changed files, in
alphabetical order:

Makefile:
Add common.c to SRCS.

Make debugging easier by making 'CFLAGS += -DNDEBUG' conditional on DEBUG

Don't declare struct {ftp,http}err in {ftp,http}err.c; use struct fetcherr
instead.

README:
Remove the todo list, which is out of date anyway.

common.c: (new file)
Gather utility functions in this file.

Merge the error reporting functions intp _fetch_errstring(),
_fetch_seterr() and _fetch_syserr().

Set fetchLastErrCode and fetchLastErrText appropriately when fetchConnect
fails.

common.h: (new file)
Gather internal prototypes and structures in this files.

fetch.3:
Undocument fetchFreeURL().

Document a few more known bugs.

Document fetchLastErrCode and fetchLastErrText.

fetch.c:
Add descriptive comments to all functions that lacked them.

Move fetchConnect() to common.c.

Obviate the need for fetchFreeURL(), and remove it.

fetch.h:
Modify struct url_t so the document part is at the end.

ftp.c:
Remove code that is duplicated elsewhere.

http.c:
Remove code that is duplicated elsewhere.

Prompted by: jkh


# 90152d9d 17-Aug-1998 Bruce Evans <bde@FreeBSD.org>

Made this actually work when there's an object directory:
- replaced bogus dependencies of distribution sources on generated
sources by the same ones that bsd.lib.mk would generate if it knew
all the sources. We shoot ourself in the foot by not naming the
generated (included) sources *.h, so we can just put the generated
sources in SRCS.
- replaced -I${.CURDIR} by `-I.'. Here `.' is an alias for ${.OBJDIR}.
-I${.CURDIR} didn't do anything, since ${.CURDIR} is the default in
all cases here (it would be necessary for ""-style includes made from
sources in ${.OBJDIR}.

Don't use `+=' for setting CLEANFILES for the first time.

Added $Id$.


# ecc91352 17-Aug-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Commit a bunch of patches that have been accumulating:

- Fix the README to reflect the new status of the ftp code.
- Change tons of 'if (xxx < 0)' to 'if (xxx == -1)'
- Add two new interface functions
- Fix the Makefile so it actually works (yay!)

Now the manpage is lagging even further behind... :( Next on the todo
list is to clean up the http code.


# 44bcb03a 12-Jul-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Forgot to remove base64.c from SRCS in the Makefile.


# 8e3986ea 11-Jul-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Too many changes to list. Basically, FTP is nearly there and error
reporting is kinda sorted out. Now HTTP needs to catch up...


# 4ca1ab94 09-Jul-1998 Dag-Erling Smørgrav <des@FreeBSD.org>

Imported libfetch into the tree. It compiles, but there's still some
work to do. I especially need help with the man page.