[SOLVED] How to create a port only for specific FreeBSD releases
Andrew Hotlab
andrew.hotlab at hotmail.com
Mon Feb 27 16:48:29 UTC 2017
> From: Adam Weinberger <adamw at adamw.org>
>
> Sent: Monday, February 27, 2017 5:30 PM
> To: Andrew Hotlab
> Cc: freebsd-ports at freebsd.org
> Subject: Re: [SOLVED] How to create a port only for specific FreeBSD releases
>
>> On 27 Feb, 2017, at 9:07, Andrew Hotlab <andrew.hotlab at hotmail.com> wrote:
>>
>>> From: Andrew Hotlab <andrew.hotlab at hotmail.com>
>>> Sent: Monday, February 27, 2017 3:37 PM
>>> To: freebsd-ports at 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
Thank you Adam, I wrote my previous post before reading Matthew's reply.
I removed that check from my port.
More information about the freebsd-ports
mailing list