From owner-freebsd-ports@FreeBSD.ORG Sat Dec 3 22:21:58 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70894106564A for ; Sat, 3 Dec 2011 22:21:58 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 090AC8FC14 for ; Sat, 3 Dec 2011 22:21:57 +0000 (UTC) Received: by eaai12 with SMTP id i12so4959499eaa.13 for ; Sat, 03 Dec 2011 14:21:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=eZN77DzGRbOG5zEcboPMH2gzpuzjJ9eAmaYoP50wWoM=; b=o4w2npHeE+nKgR08NvjwQr6/fMhHr7Lux5r2x7w7RvWcXs0q3Lfo23eyiTfNkLkKmq IVDiY8YBmjzI+HXOVUPPPUdBC9re4JW/HHAZfwEZShdYzngTsFE0Sn80rVA6SP0HT3hv 235eOg9jK6spuPIKR8t1Mg6HIVQEj+iikw2tM= Received: by 10.213.5.20 with SMTP id 20mr219406ebt.144.1322950915964; Sat, 03 Dec 2011 14:21:55 -0800 (PST) Received: from [192.168.1.11] (ip18-43-209-87.adsl2.static.versatel.nl. [87.209.43.18]) by mx.google.com with ESMTPS id c9sm39216828eeb.0.2011.12.03.14.21.55 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 03 Dec 2011 14:21:55 -0800 (PST) Message-ID: <4EDAA102.30100@gmail.com> Date: Sat, 03 Dec 2011 23:21:54 +0100 From: Rene Ladan User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111115 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <20111202033058.GA25481@lonesome.com> In-Reply-To: <20111202033058.GA25481@lonesome.com> X-Enigmail-Version: undefined Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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: Sat, 03 Dec 2011 22:21:58 -0000 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 @@ > /usr/ports/LEGAL for every listed distribution > file, describing exactly what the restriction entails. > > + > + > + Examples > + > + The preferred way to state "the distfiles for this port must be > + fetched manually" is as follows: > +.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) > +IGNORE= "may not be redistributed because of licensing reasons. Please visit some-website to accept their license and download ${DISTFILES} into ${DISTDIR}" > +.endif > + > + This both informs the user, and sets the proper metadata on > + the user's machine for use by automated programs. > + > > > > What about turning it into a bsd..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)