HEADS UP: Triage of rcNG related problem reports/USE_RC_SUBR

Matthias Andree matthias.andree at gmx.de
Wed Apr 26 23:28:40 UTC 2006


"Scot Hetzel" <swhetzel at gmail.com> writes:

> On 4/26/06, Matthias Andree <matthias.andree at gmx.de> 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
>> <http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/pkg-install.html>
>> to all packages built for freebsd >= 600101 and < 700000 or >= 700007.
>>
>> 2. behavior: If the package is about to be installed on a
>>   freebsd < 600101 or >= 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?

My idea would be to just prepend the checker code to the existing
pkg-install script, or use a server that first calls the new checker
script, then the original pkg-install script.

-- 
Matthias Andree


More information about the freebsd-ports mailing list