Date: Sat, 03 Dec 2011 23:21:54 +0100 From: Rene Ladan <r.c.ladan@gmail.com> To: freebsd-ports@freebsd.org Subject: Re: CFR: add an example of manually fetching distfiles to Porter's Handbook Message-ID: <4EDAA102.30100@gmail.com> In-Reply-To: <20111202033058.GA25481@lonesome.com> References: <20111202033058.GA25481@lonesome.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 02-12-2011 04:30, Mark Linimon wrote: > A few people are getting "creative" again on ways to express this common > need. AFAIK the following is the best way to do it. What do people think? > > Index: book.sgml > =================================================================== > RCS file: /home/FreeBSD/dcvs/doc/en_US.ISO8859-1/books/porters-handbook/book.sgml,v > retrieving revision 1.1119 > diff -u -r1.1119 book.sgml > --- book.sgml 4 Nov 2011 14:28:43 -0000 1.1119 > +++ book.sgml 1 Dec 2011 22:26:38 -0000 > @@ -4698,6 +4698,19 @@ > <filename>/usr/ports/LEGAL</filename> for every listed distribution > file, describing exactly what the restriction entails.</para> > </sect2> > + > + <sect2> > + <title>Examples</title> > + > + <para>The preferred way to state "the distfiles for this port must be > + fetched manually" is as follows:<programlisting> > +.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) > +IGNORE= "may not be redistributed because of licensing reasons. Please visit <replaceable>some-website</replaceable> to accept their license and download ${DISTFILES} into ${DISTDIR}" > +.endif</programlisting></para> > + > + <para>This both informs the user, and sets the proper metadata on > + the user's machine for use by automated programs.</para> > + </sect2> > </sect1> > > <sect1 id="building"> > What about turning it into a bsd.<somefile>.mk target, e.g. : WEBSITE=some-website DISTFILES=same-as-usual MANUAL_DISTFILES=distfile1 distfile2 ... Regards, René -- http://www.rene-ladan.nl:8080/ GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4EDAA102.30100>