Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Oct 2014 21:02:12 +0100
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Nick Rogers <ncrogers@gmail.com>
Cc:        "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Re: pkgng "requirements" script equivalent
Message-ID:  <20141029200212.GE11033@ivaldir.etoilebsd.net>
In-Reply-To: <CAKOb=YYW1DHSJA=HGM7Js8-hShmNCx6XjtMPg7rPkGcCytv5-A@mail.gmail.com>
References:  <CAKOb=YYW1DHSJA=HGM7Js8-hShmNCx6XjtMPg7rPkGcCytv5-A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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/--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141029200212.GE11033>