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

next in thread | previous in thread | raw e-mail | index | archive | help
> From: Adam Weinberger <adamw@adamw.org>
> Sent: Monday, February 27, 2017 6:05 PM
> To: Andrew Hotlab
> Cc: Ernie Luzar; freebsd-ports@freebsd.org
> Subject: Re: [SOLVED] How to create a port only for specific FreeBSD rele=
ases
>=20
>> On 27 Feb, 2017, at 10:00, Andrew Hotlab <andrew.hotlab@hotmail.com> wro=
te:
>>=20
>>> From: Ernie Luzar <luzar722@gmail.com>
>>> Sent: Monday, February 27, 2017 5:43 PM
>>> To: Adam Weinberger
>>> Cc: Andrew Hotlab; freebsd-ports@freebsd.org
>>> Subject: Re: [SOLVED] How to create a port only for specific FreeBSD re=
leases
>>>=20
>>>>>> 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 se=
ems regarding
>>>>>> only ported app's source=A0 code:
>>>>>>  https://www.freebsd.org/doc/en/books/porters-handbook/porting-versi=
ons.html
>>>>>=20
>>>>> Sorry, just found by myself. I included these lines before the do-ins=
tall section:
>>>>>=20
>>>>> .include <bsd.port.pre.mk>
>>>>> .if ${OSVERSION} < 1000100
>>>>> IGNORE=3D=A0=A0=A0=A0=A0=A0=A0=A0 runs only on FreeBSD 10.0 and newer
>>>>> .endif
>>>>=20
>>>> It's really not needed at all. Nothing below 10.3 is supported, and th=
e ports system will
>>>> complain already. Please don't include that block in your port.
>>>>=20
>>>> # Adam
>>>>=20
>>>>=20
>>> Thats not true. I have port version just for 9.x and even today I still=
=20
>>> see the source file the port fetches still being downloaded.
>>>=20
>>> It has
>>> IGNORE_FreeBSD_10=3D and IGNORE_FreeBSD_11=3D in it's Makefile.
>>> Best you have IGNORE_FreeBSD_9=3D=A0 in your Makefile to be sure you ge=
t=20
>>> what you want.
>>=20
>> Actually, it seems that Matthew and Adam are right, but I'm not able to =
understand if
>> it's a warn or a block action:
>> https://svnweb.freebsd.org/ports?view=3Drevision&revision=3D431746
>=20
> It's a block, but it's overridable.
>=20

Ok, I guess the better way is to let bsd.port.mk do the job for me! :)

Thanks to all you guys!



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