Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2017 11:43:30 -0500
From:      Ernie Luzar <luzar722@gmail.com>
To:        Adam Weinberger <adamw@adamw.org>
Cc:        Andrew Hotlab <andrew.hotlab@hotmail.com>,  "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Re: [SOLVED] How to create a port only for specific FreeBSD releases
Message-ID:  <58B45732.8060001@gmail.com>
In-Reply-To: <605504AE-19B6-4269-A8A0-7BECEDE9975C@adamw.org>
References:  <AM3PR02MB31216E353C3B32EAA4DA445F6570@AM3PR02MB312.eurprd02.prod.outlook.com> <AM3PR02MB3129086752D5917850B5F40F6570@AM3PR02MB312.eurprd02.prod.outlook.com> <605504AE-19B6-4269-A8A0-7BECEDE9975C@adamw.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Adam Weinberger wrote:
>> On 27 Feb, 2017, at 9:07, Andrew Hotlab <andrew.hotlab@hotmail.com> wrote:
>>
>>> From: Andrew Hotlab <andrew.hotlab@hotmail.com>
>>> Sent: Monday, February 27, 2017 3:37 PM
>>> To: freebsd-ports@freebsd.org
>>> Subject: How to create a port only for specific FreeBSD releases
>>     
>>> Hi to all, I'm trying to make a port which installs only a couple of simple scripts
>>> (thus NO_BUILD, NO_ARCH, and void MASTER_SITES and DISTFILES...).
>>>
>>> Since these scripts are designed to run on FreeBSD 10.0 and newer, I'd like to
>>> know if there is a way to prevent the port from installing on older FreeBSD
>>> releases. In the Porter's Handbook I found this paragraph, but it seems regarding
>>> only ported app's source  code:
>>> https://www.freebsd.org/doc/en/books/porters-handbook/porting-versions.html
>>
>> Sorry, just found by myself. I included these lines before the do-install section:
>>
>> .include <bsd.port.pre.mk>
>> .if ${OSVERSION} < 1000100
>> IGNORE=         runs only on FreeBSD 10.0 and newer
>> .endif
> 
> It's really not needed at all. Nothing below 10.3 is supported, and the ports system will complain already. Please don't include that block in your port.
> 
> # Adam
> 
> 
Thats not true. I have port version just for 9.x and even today I still 
see the source file the port fetches still being downloaded.

It has
IGNORE_FreeBSD_10= and IGNORE_FreeBSD_11= in it's Makefile.
Best you have IGNORE_FreeBSD_9=  in your Makefile to be sure you get 
what you want.



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