On 04.06.2014 17:25, A.J. 'Fonz' van Werven wrote:
Torsten Zuehlsdorff wrote:
3. If you can, mirror the distfile and add your site to MASTER_SITES.

I could easily mirror the distfile. But i'm unsure where to add the entry.
There is an entry MASTER_SITE_NETLIB in /usr/ports/Mk/bsd.sites.mk, which
definies the url for the distfiles. But if i understand correctly, the
MASTER_SITES listed there provide every file from Netlib, not just the
single distfile.

So how could i add my mirror http://ports.toco-domains.de/fdfpp.tgz to the
port?

Just add it to the port's Makefile (/usr/ports/devel/fpp/Makefile).

It currently says:
MASTER_SITES=   NL
MASTER_SITE_SUBDIR=     fortran

Make that:
MASTER_SITES=   NL/fortran/ \
                 http://ports.toco-domains.de/

Note that the use of MASTER_SITE_SUBDIR is, well, maybe technically not
deprecated, but no longer necessary either and in this case it's actually
inconvenient, so get rid of that.

Okay, i changed it this way. :)

You can test the mirror by temporarily removing the NL bit, making it
MASTER_SITES=   http://ports.toco-domains.de/
and doing
# cd /usr/ports/devel/fpp
# make distclean
# make fetch

It should then fetch the distfile from your mirror (note that it will try
distcache.FreeBSD.org next if it fails). If it works, you can add the NL
bit back in.

This worked :)

Hope this helps,

Yes, it does. Thank you very much. I've submitted the PR with the patch for the maintainer update a minute ago.

Thank you very much!

Greetings,
Torsten
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to