How to maintain a manual download in a download restricted port?

O. Hartmann ohartman at zedat.fu-berlin.de
Mon Sep 24 12:29:36 UTC 2012


Am 09/24/12 12:21, schrieb Chris Rees:
> On 24 Sep 2012 11:12, "O. Hartmann" <ohartman at zedat.fu-berlin.de> wrote:
>>
>> Hello.
>>
>> I deal with an "in spe" port, which does provide the source tarball from
>> the website via a PHP interface - so, no automatic fetch() seems to be
>> possible.
>>
>> To provide the port in due time, I'd like to ask the people here how to
>> manage in the port's "Makefile" to refer the user to download manually
>> the sources, place them in ${DISTDIR} and restart installation.
>>
>> I tried to have my eyes on some ports like java/jdk16, but, to be
>> honest, the Makefile is not very convenient for my fast eyes to read and
>> it seems there are many workarounds which are not necessary for a simple
>> port.
>>
>> Maybe one of you is willing to answer me. Is there an elegant, BSDish
>> way to provide the message and stop doing the automatic fetch? I
>> couldn't find something in the "Porter's Handbook", but sometimes I'm
>> blind ;-) If there is a statement on that subject in the handbook,
>> please do not hesitate to refer to the section.
>>
> 
> http://www.freebsd.org/doc/en/books/porters-handbook/book.html#AEN3090
> 
> This appears to be a new feature- I didn't know about it either :)
> 
> Chris
> 


Thank you.

I tried - but failed again.

When setting those variables to:

NOFETCHFILES=           ${DISTFILES}

or

RESTRICTED_FILES=       ${DISTFILES}

and having
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= \n
IGNORE+= Due to download restrictions please download the source
IGNORE+= tarball ${DISTNAME}${EXTRACT_SUFX} manually
IGNORE+= and place the it in ${DISTDIR} and start again.
IGNORE+= \n
.endif

Somehow I expect that setting those "RESTRICTED" or "NOFETCHFILES"
variables will make the script automatically not fetching anything - but
whenever I start the build via "make all", the first step is that the
DISTFILES are getting fetched - or tried to get fetched. This is what I
need to avaoid completely.

Oliver


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120924/846f9327/signature.pgp


More information about the freebsd-ports mailing list