From owner-freebsd-ports@FreeBSD.ORG Sun Dec 4 09:14:52 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 5E825106564A; Sun, 4 Dec 2011 09:14:52 +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 1CDA78FC12; Sun, 4 Dec 2011 09:14:51 +0000 (UTC) Received: by iafi7 with SMTP id i7so1850607iaf.13 for ; Sun, 04 Dec 2011 01:14:51 -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=G0eYEwodaX7SUutJ9sOf1LJdPUj7nFdx6ywiBNAHEW8=; b=SU0u11pyqroJl1hY5CIi/qOiSC3FGyzBxxp5qVmli4O3zaPgdK16y5smArcJmcxOuX xN0RAs/raBJ1zCBym7breXRLuP8uEuRhrTPdGWp+ag4AoeQ4MWX0p+X5FouWErxFjDXK pxjtHxTB0IRMmTueUMTKQMepBnh/lL5Qf2BhY= Received: by 10.231.28.28 with SMTP id k28mr1215365ibc.61.1322990091270; Sun, 04 Dec 2011 01:14:51 -0800 (PST) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.12.139 with HTTP; Sun, 4 Dec 2011 01:14:20 -0800 (PST) In-Reply-To: References: <20111202033058.GA25481@lonesome.com> From: Chris Rees Date: Sun, 4 Dec 2011 09:14:20 +0000 X-Google-Sender-Auth: EYjR6CIFBMPd1T60AnxoIP6jJQg 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:14:52 -0000 On 4 December 2011 09:09, Chris Rees wrote: > 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/= 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/usr/ports/LEGAL for every liste= d 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 p= ort 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 licensin= g reasons. Please visit some-website to accept t= heir license and download ${DISTFILES} into ${DISTDIR}" >> +.endif >> + >> + =A0 =A0 =A0 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. >> + =A0 =A0 =A0 >> =A0 =A0 >> >> =A0 =A0 > > Apart from the quoted IGNORE, great :) Ah, also we need to add .include before it, so it knows where DISTDIR is. Chris