Date: Sun, 4 Dec 2011 09:09:41 +0000 From: Chris Rees <crees@freebsd.org> To: Mark Linimon <linimon@lonesome.com> Cc: ports@freebsd.org, linimon@freebsd.org Subject: Re: CFR: add an example of manually fetching distfiles to Porter's Handbook Message-ID: <CADLo8380uznvonjTdkspYzo37ab6v5Cp-S9n-vhuDwLK3EN=Kg@mail.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 2 December 2011 03:30, Mark Linimon <linimon@lonesome.com> wrote: > A few people are getting "creative" again on ways to express this common > need. =A0AFAIK the following is the best way to do it. =A0What do people = think? > > mcl > > Index: book.sgml > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /home/FreeBSD/dcvs/doc/en_US.ISO8859-1/books/porters-handbook/b= ook.sgml,v > retrieving revision 1.1119 > diff -u -r1.1119 book.sgml > --- book.sgml =A0 4 Nov 2011 14:28:43 -0000 =A0 =A0 =A0 1.1119 > +++ book.sgml =A0 1 Dec 2011 22:26:38 -0000 > @@ -4698,6 +4698,19 @@ > =A0 =A0 =A0 =A0 =A0<filename>/usr/ports/LEGAL</filename> for every listed= distribution > =A0 =A0 =A0 =A0 =A0file, describing exactly what the restriction entails.= </para> > =A0 =A0 =A0 </sect2> > + > + =A0 =A0 =A0<sect2> > + =A0 =A0 =A0 <title>Examples</title> > + > + =A0 =A0 =A0 <para>The preferred way to state "the distfiles for this po= rt must be > + =A0 =A0 =A0 =A0 fetched manually" is as follows:<programlisting> > +.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) > +IGNORE=3D =A0 =A0 =A0 =A0 "may not be redistributed because of licensing= reasons. Please visit <replaceable>some-website</replaceable> to accept th= eir license and download ${DISTFILES} into ${DISTDIR}" > +.endif</programlisting></para> > + > + =A0 =A0 =A0 <para>This both informs the user, and sets the proper metad= ata on > + =A0 =A0 =A0 =A0 the user's machine for use by automated programs.</para= > > + =A0 =A0 =A0</sect2> > =A0 =A0 </sect1> > > =A0 =A0 <sect1 id=3D"building"> Apart from the quoted IGNORE, great :) Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo8380uznvonjTdkspYzo37ab6v5Cp-S9n-vhuDwLK3EN=Kg>