Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2004 21:23:13 -0700
From:      Kris Kennaway <kris@obsecurity.org>
To:        ports@FreeBSD.org
Subject:   Wanted: Move fetch shell scripts out of bsd.port.mk
Message-ID:  <20040519042313.GB62080@xor.obsecurity.org>

next in thread | raw e-mail | index | archive | help

--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

A large chunk of bsd.port.mk is taken up by various scripts that
implement the fetching of distfiles and patchfiles.  There are
several permutations and available options (e.g. various kinds of
sorting of MASTER_SITES), with yet more options waiting in PRs in
GNATS, and all of it gets in the way of each other and of users trying
to read bsd.port.mk.

What I'd like to see is for the processing of distfile lists to be
extracted out into external shell scripts, which users could select to
choose a different sorting behaviour.  For example, one way would be
for bsd.port.mk to feed the value of MASTER_SITES to the script, which
returns with its sorted version of the same list for bsd.port.mk to
fetch from.  I don't know if there's a need for the fetching itself to
be done externally (you can already specify your own external program
to do the fetching), as this code will probably be common to every
script.

This will simplify bsd.port.mk, simplify the fetching logic (don't
have one massive target trying to implement all the alternative
sorting behaviours) and simplify the shell scripts themselves (as they
don't have to have most of their metacharacters escaped).

Any takers?

Kris


--dDRMvlgZJXvWKvBx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAquExWry0BWjoQKURAgOWAJ9ltcJxbnM6VT2LLeF6myJVlk6y4wCg+aXo
8yuGUbMGX7PAxsna/IOUGpY=
=DR5H
-----END PGP SIGNATURE-----

--dDRMvlgZJXvWKvBx--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040519042313.GB62080>