Reducing the size of the ports tree (brainstorm v2)
Christian Weisgerber
naddy at mips.inka.de
Mon Nov 3 22:18:01 UTC 2014
On 2014-10-31, Tijl Coosemans <tijl at FreeBSD.org> wrote:
> For distinfo I was thinking about something like this in the Makefile:
>
> DIST_FILES= FOO BAR
>
> FOO_FILE= foo-1.0
> FOO_SITES= http://www.example.com/foo/
> FOO_SIZE= 12345
> FOO_SHA256= 0123456789abcdef.....
This is where OpenBSD's sha256(1)'s support for checksums in base64
notation would come in handy.
> Then for ports with a single distfile named after PORTNAME (the large
> majority), the above would reduce to: [...]
> Also, if BAR_SITES is the same as FOO_SITES you can use somthing like
> BAR_SITES=${FOO_SITES} of course.
Well, as long as "make makesum" does the right thing...
--
Christian "naddy" Weisgerber naddy at mips.inka.de
More information about the freebsd-ports
mailing list