From owner-freebsd-ports@FreeBSD.ORG Sat Mar 28 14:14:07 2009 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 DEABB106564A for ; Sat, 28 Mar 2009 14:14:07 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-fx0-f167.google.com (mail-fx0-f167.google.com [209.85.220.167]) by mx1.freebsd.org (Postfix) with ESMTP id 6DE668FC13 for ; Sat, 28 Mar 2009 14:14:07 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: by fxm11 with SMTP id 11so1306334fxm.43 for ; Sat, 28 Mar 2009 07:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=wHLVvw6yxcYJPDnU57FcJE72zXbz0I19a5jNJ/jjo0w=; b=QFjR/tTww716YSTnns3g4dcTOS76eNXfG7ZjK7gGh1Oqs+sDFPNeU++NY6X6t0l3Ok F5d5H7Pdgbv1fLV4tSoODn20GnH9LS2eXddduBM1JbTUeP6y0IALGzHalqF9WsmN+sn4 DI2I/yEZmOnE4Fk+UIJwZnrENO/aUQ28deM9g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=sY5cCA0k6VAWbRlJiPu1kb3TCOt7u0zXwChwnXrosWgQVSZv8iWSSps/WHLfcvzkg6 qONuE/AI9UUpSkCi1gya/H/X2hz2fG+lJ6ZBaOT4ATX6A96Ih/DTzoaMF7o2mIRZnbpG 6Ym1GPpi45zvbzR6dMpMFB5TOj7kgDJYax404= MIME-Version: 1.0 Received: by 10.204.59.145 with SMTP id l17mr1128890bkh.28.1238248118914; Sat, 28 Mar 2009 06:48:38 -0700 (PDT) Date: Sat, 28 Mar 2009 15:48:38 +0200 Message-ID: From: Vitaly Magerya To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Help making a port for a (somewhat) restricted program 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, 28 Mar 2009 14:14:08 -0000 I'm creating a port for Petite Chez Scheme [1], which is a free interpreter for commercial Chez Scheme, and has some licensing restrictions. >From what I understood in the license [2], user must accept it before installing. The text of the license is also distributed in the tarball, so it seems appropriate to simply display the license file on post-extract. Is there a common way to display such a file before installing? I'm currently using ${PAGER} for that [3], but it's unlike any other port we have. There's also a problem with packages: you can't create one unless there's a way to show the license on pkg_add. I believe that pkg-install script can be used here, but I don't think that putting the whole license inside hat script is a good idea. Currently I've forbidden making packages; any thoughts on the right way to do that? And the last issue: depending on a command line switch the port requires fetching two different files. The way I've set it up is to set a parameter depending on the switch, and then use it in DISTNAME. In short, that makes portlint go crazy. Help on this is also appreciated. [1] http://scheme.com/petitechezscheme.html [2] http://scheme.com/download/petite-lic.html [3] http://tx97/pub/patches/petite-chez.shar