From owner-freebsd-ports@FreeBSD.ORG Wed Apr 26 22:29:40 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B63FC16A409 for ; Wed, 26 Apr 2006 22:29:40 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id C941F43D49 for ; Wed, 26 Apr 2006 22:29:38 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so1065192wxc for ; Wed, 26 Apr 2006 15:29:38 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=p7I4NYQPwnfl1LJ1hbZmEQFVAxWOr/u5Edfavq6YLcxNZNEoB05yCPgmOhF3JaGpf29so2cDscQKjcOcg2/ku2b+93bWeYxg4JDjzK8En+bvGPU2BrTNljXbHCb5aer7UuyZAg16dQsJV9lKH1q2W+XfX1UbbWeCxva2nq/Yd9U= Received: by 10.70.29.17 with SMTP id c17mr667399wxc; Wed, 26 Apr 2006 15:29:12 -0700 (PDT) Received: by 10.70.27.4 with HTTP; Wed, 26 Apr 2006 15:29:11 -0700 (PDT) Message-ID: <790a9fff0604261529i28967cc1x99679cdd2d334ed9@mail.gmail.com> Date: Wed, 26 Apr 2006 17:29:11 -0500 From: "Scot Hetzel" To: "Doug Barton" , ports@freebsd.org, ports-bugs@freebsd.org, portmgr@freebsd.org In-Reply-To: <20060426220756.GB6337@merlin.emma.line.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060426203500.GB1433@merlin.emma.line.org> <444FE8F6.2040903@FreeBSD.org> <20060426220756.GB6337@merlin.emma.line.org> Cc: Subject: Re: HEADS UP: Triage of rcNG related problem reports/USE_RC_SUBR 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: Wed, 26 Apr 2006 22:29:40 -0000 On 4/26/06, Matthias Andree wrote: > And I do have an idea to protect the innocent from installing 6.1 > packages on 6.0-RELEASE: > > 1. Add a PRE-INSTALL mode pkg-install script > > to all packages built for freebsd >=3D 600101 and < 700000 or >=3D 700007= . > > 2. behavior: If the package is about to be installed on a > freebsd < 600101 or >=3D 700000 and < 700007, the pre-install script > complains, asks the user to use the port instead and exits, aborting > the install with an error. As portsnap and portmaster are deployed, > that's something that shouldn't be too difficult to explain. > > This could all be handled inside ports/Mk/bsd.port.mk. > The only problem I see is if a port already has a pkg-install script. How do you append the warning to it? Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.