From owner-freebsd-ports@FreeBSD.ORG Sun Dec 4 09:10:13 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 147081065675; Sun, 4 Dec 2011 09:10:13 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id C974F8FC18; Sun, 4 Dec 2011 09:10:12 +0000 (UTC) Received: by iafi7 with SMTP id i7so1845176iaf.13 for ; Sun, 04 Dec 2011 01:10:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=kCaLL9BFpQs91NQUjz67fsqd/JvYrMy2gRm1WqFctKA=; b=utg63cyDBAsm/mF4w0vT6JnnTe1abrkW4PTdO0+Ln/TNcmh8GbbXrabaf9LXg8Fbr4 v777vsfVyw/6B6LUYE0M8oeXRqbqQwSMruPtyynWGXzTgtdjRMgN8saktH/64aPTShZD fyA3Kd6djaldLPHxINwXIPwtSxwRqbcwC+R8c= Received: by 10.50.169.33 with SMTP id ab1mr5755605igc.0.1322989812400; Sun, 04 Dec 2011 01:10:12 -0800 (PST) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.12.139 with HTTP; Sun, 4 Dec 2011 01:09:41 -0800 (PST) In-Reply-To: <20111202033058.GA25481@lonesome.com> References: <20111202033058.GA25481@lonesome.com> From: Chris Rees Date: Sun, 4 Dec 2011 09:09:41 +0000 X-Google-Sender-Auth: fk0Gf6bCKnOnLCEn_VooMfoU9Fw Message-ID: To: Mark Linimon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org, linimon@freebsd.org Subject: Re: CFR: add an example of manually fetching distfiles to Porter's Handbook X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Dec 2011 09:10:13 -0000 On 2 December 2011 03:30, Mark Linimon 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/usr/ports/LEGAL for every listed= distribution > =A0 =A0 =A0 =A0 =A0file, describing exactly what the restriction entails.= > =A0 =A0 =A0 > + > + =A0 =A0 =A0 > + =A0 =A0 =A0 Examples > + > + =A0 =A0 =A0 The preferred way to state "the distfiles for this po= rt must be > + =A0 =A0 =A0 =A0 fetched manually" is as follows: > +.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) > +IGNORE=3D =A0 =A0 =A0 =A0 "may not be redistributed because of licensing= reasons. Please visit some-website to accept th= eir license and download ${DISTFILES} into ${DISTDIR}" > +.endif > + > + =A0 =A0 =A0 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. > + =A0 =A0 =A0 > =A0 =A0 > > =A0 =A0 Apart from the quoted IGNORE, great :) Chris