From owner-freebsd-ports@FreeBSD.ORG Sat Mar 28 15:16:13 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 1FD701065670 for ; Sat, 28 Mar 2009 15:16:13 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.191]) by mx1.freebsd.org (Postfix) with ESMTP id 928FB8FC1C for ; Sat, 28 Mar 2009 15:16:12 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so658149fka.11 for ; Sat, 28 Mar 2009 08:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=tACitLbvLXfM6RwPzobnNgiJPky0wpAVCeJju+xEyRQ=; b=vMJ0Jx7CP0/L1y9SPU+MxmWPnGrKtZ9ziNUTY3rR4H+8QVPLBOi1b4m8c3NW4OjXQA 4XPztWce4pS7ZngDwp433clmHaZE2YDiDDk5F8UmyXLmDQ2siun4OWgYTCWCRRxzde0W i2y8K9oZtc5MTBt/P7KlZ2f1lsbVjqWI/oeHs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=NYN+Y32B7QZg5QWwzBAXOsgHfgvv8fqYqs3Tc0By/5UKLOEaWCWaow4iTB9LUUIz2C GbEKIXG5WUA0O0T3eGR32zs98iamHdz76NgyEp6AXIvI40N+QA5bOCVXomEuxQ73cSkb sb8XS6ZyKB+LLSjZX2XzLAqZXeSoU0VB2uSBc= MIME-Version: 1.0 Received: by 10.204.31.78 with SMTP id x14mr1155572bkc.3.1238253371505; Sat, 28 Mar 2009 08:16:11 -0700 (PDT) In-Reply-To: <18894.14202.11046.741193@jerusalem.litteratus.org> References: <18894.14202.11046.741193@jerusalem.litteratus.org> Date: Sat, 28 Mar 2009 17:16:11 +0200 Message-ID: From: Vitaly Magerya To: Robert Huff Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: 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 15:16:13 -0000 > Look at how java/jdk-* does it. java/jdk* uses ${PRINTF} (/usr/bin/printf) to display a message about you having to go and download some of the restricted files, and then exits. Once you've downloaded the files (and that implies that you've accepted the license), the message no longer appears, and you can proceed with installation. (This seems to be the common way of treating restricted ports). The difference with Petite Chez is that you do not need to accept anything to download sources (no restriction on redistribution), so this part can be automated; but you do have to read and accept the license before installing it. ${PRINTF} won't help too much, as you can't display a file with it; and license is too big to fit on one screen anyway (that's why I'd use a pager).