[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sponsors.



On Tue, Aug 29, 2000 at 01:59:52PM +0200, Hubert Feyrer wrote:
> That's why we're at finding out features that we'd like to take, then see
> how they can be arranged together. E.g. 'make-maker' vs. 'fetch-list'.

`make-maker' is a replacement for `fetch-list'. It's slightly more intricate
to use, but it has lots of advantages.

For starters, make-maker is designed so that it can be used on nearly every
system, as long as a decent make is available (pmake or gnu-make will do).

Excerpt from make-maker output:

default:: ftp cdrom
.PHONY: default all ftp cdrom
all ftp:: archivers/arc/arc-5.21e
.PHONY: archivers/arc/arc-5.21e
archivers/arc/arc-5.21e::  arc521e.pl8.tar.Z
arc521e.pl8.tar.Z: $F
        @MAINTAINER="ports@openbsd.org" \
         SITES="ftp://ftp.kiarchive.ru/pub/unix/arcers/ ftp://ftp.quorus.ru/pub/unix/arcers/ ftp://ftp.openbsd.org/pub/OpenBSD/distfiles// ftp://ftp.openbsd.org/pub/OpenBSD/licensed// ftp://ftp.freebsd.org/pub/FreeBSD/distfiles//"; \
         CIPHER="sha1" CKSUM="34210f9aeaac39a15b34e6aa400b38127b6a2a20" \
         exec ${FETCH} "$@"

There is no specific script hard-coded. We have a small `fetch-all' sample
script in OpenBSD, that depends on Lukeftp and sha1 to work, but it's
likely a very similar script can be written using wget, and whatever to
do the sha1 checksumming.

This can be very useful if, for instance, you have a low network connectivity,
want to grab all distfiles from a foreign machine, burn a CD and bring it back
home: you just generate the Makefile, go to the foreign machine, put together
a suitable fetch script, and let it run at make -j50.

No *BSD specific applications are needed. You just need to find a decent make,
and something that will grab urls.

As a related feature, we have a SUPDISTFILES variable: there are ports where
supplementary files will only be fetched for some architecture, or for some
specific combination of switch. This can become very frustrating, because
major repositories will only include the i386* files, or forget the optional
files.  With that mechanism, we simply list in SUPDISTFILES all the
supplementary files that a port *may* need to work. Normal fetch will only
retrieves DISTFILES/PATCHFILES, but mirroring targets will retrieve all
files.
-- 
	Marc Espie		
|anime, sf, juggling, unicycle, acrobatics, comics...
|AmigaOS, OpenBSD, C++, perl, Icon, PostScript...
| `real programmers don't die, they just get out of beta'

To unsubscribe: send mail to <majordomo@unixathome.org>
with "unsubscribe bsdports" in the body of the message