From owner-freebsd-ports@FreeBSD.ORG Wed Oct 29 20:02:17 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 66DF1CE3 for ; Wed, 29 Oct 2014 20:02:17 +0000 (UTC) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EE789DF0 for ; Wed, 29 Oct 2014 20:02:16 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id d1so2719314wiv.7 for ; Wed, 29 Oct 2014 13:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=ZUktpCQPC5Il54zxEZrbGf/1wVM7FPh9ft+zBqrWzHc=; b=MzQCYUbTKzr3WWDCcr5iLXZGAKWOR+8OdkMyEDzcO0L+MupX3CJs4LB1DS8fpJXuFR 4ffJ0r8wl7hpbVPMu0hhJcEUHc25q95iZR03x6o5xE/KWjh/Qcc5S46c7k+XQzppjjE9 ozt/CnztS4POWHUFv69pZ4kjkfZ5SSANQJLe/PMpRB2pgY00R+w71s6rDE8f76jSEtwn CUK4ksK45nDtdsdvwKRFZ1owc0JUXyCK/4JAF+6K5rpUhjqDqXi+De0AxXVpZiKJA4W9 8+PKIz1bEOq5CEdWgKmiEU4J8hS5Tu3I9TUJ98Y2OrwN8sINkJScLQEHeNiH7K0uTmq9 N5oA== X-Received: by 10.180.79.196 with SMTP id l4mr7880346wix.72.1414612935294; Wed, 29 Oct 2014 13:02:15 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id eu8sm14926123wic.1.2014.10.29.13.02.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Oct 2014 13:02:14 -0700 (PDT) Sender: Baptiste Daroussin Date: Wed, 29 Oct 2014 21:02:12 +0100 From: Baptiste Daroussin To: Nick Rogers Subject: Re: pkgng "requirements" script equivalent Message-ID: <20141029200212.GE11033@ivaldir.etoilebsd.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ns7jmDPpOpCD+GE/" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-ports@freebsd.org" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2014 20:02:17 -0000 --Ns7jmDPpOpCD+GE/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 29, 2014 at 12:44:21PM -0700, Nick Rogers wrote: > Hello, >=20 > I am in the process of upgrading some proprietary software that has always > been deployed via a "custom" package created by the old pkg_create. So far > I've been able to use "pkg create" to achieve what I want, but it seems > that the "requirements" script is no longer a part of the new pkg > framework. This used to be a script that you could include with a package > that could halt the pkg add or remove process by returning a non-zero exit > code from the script. I've been using it with the old pkg tools as a way = to > enforce some proprietary requirements logic that goes beyond requiring > certain pkg dependencies, architecture, etc. One example is to make sure a > specific custom kernel is running by analyzing uname output. >=20 > I am wondering if anyone has a suggestion as to how to interrupt the pkg > add process in a similar way. It looks like the "requirements" script has > been removed entirely, and from what I can tell a failure in the > pre-install script does not halt pkg add. What is the requirement script you are speaking about? I never heard of it? Explain me in detail the way you were producing the package with pkg_create= and I'll explain you how to do the same with pkg(8). regards, Bapt --Ns7jmDPpOpCD+GE/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlRRR8QACgkQ8kTtMUmk6Ez/MQCgnxVT+0uAs04Q+7ikUHLPDR/w Q0kAnAmd+CI1beBDUD82r27k9RihP/kG =7540 -----END PGP SIGNATURE----- --Ns7jmDPpOpCD+GE/--