Date: Sun, 4 Dec 2011 09:14:20 +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: <CADLo839MMOaRY6GSCA3=JYRw27ReiTzAruJYBNe8o11KUKeLkQ@mail.gmail.com> In-Reply-To: <CADLo8380uznvonjTdkspYzo37ab6v5Cp-S9n-vhuDwLK3EN=Kg@mail.gmail.com> References: <20111202033058.GA25481@lonesome.com> <CADLo8380uznvonjTdkspYzo37ab6v5Cp-S9n-vhuDwLK3EN=Kg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 4 December 2011 09:09, Chris Rees <crees@freebsd.org> wrote: > 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/= book.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 liste= d 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 p= ort 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 licensin= g reasons. Please visit <replaceable>some-website</replaceable> to accept t= heir license and download ${DISTFILES} into ${DISTDIR}" >> +.endif</programlisting></para> >> + >> + =A0 =A0 =A0 <para>This both informs the user, and sets the proper meta= data on >> + =A0 =A0 =A0 =A0 the user's machine for use by automated programs.</par= a> >> + =A0 =A0 =A0</sect2> >> =A0 =A0 </sect1> >> >> =A0 =A0 <sect1 id=3D"building"> > > Apart from the quoted IGNORE, great :) Ah, also we need to add .include <bsd.port.pre.mk> before it, so it knows where DISTDIR is. Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo839MMOaRY6GSCA3=JYRw27ReiTzAruJYBNe8o11KUKeLkQ>