Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2017 16:47:11 +0000
From:      Andrew Hotlab <andrew.hotlab@hotmail.com>
To:        Adam Weinberger <adamw@adamw.org>
Cc:        "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   Re: [SOLVED] How to create a port only for specific FreeBSD releases
Message-ID:  <AM3PR02MB312EB454CAD0CCF143988EDF6570@AM3PR02MB312.eurprd02.prod.outlook.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
> From: Adam Weinberger <adamw@adamw.org>
>=20
> Sent: Monday, February 27, 2017 5:30 PM
> To: Andrew Hotlab
> Cc: freebsd-ports@freebsd.org
> Subject: Re: [SOLVED] How to create a port only for specific FreeBSD rele=
ases
> =A0  =20
>> On 27 Feb, 2017, at 9:07, Andrew Hotlab <andrew.hotlab@hotmail.com> wrot=
e:
>>=20
>>> 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
>>> =A0=A0=A0=A0=20
>>> Hi to all, I'm trying to make a port which installs only a couple of si=
mple scripts
>>> (thus NO_BUILD, NO_ARCH, and void MASTER_SITES and DISTFILES...).
>>>=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 Fre=
eBSD
>>> releases. In the Porter's Handbook I found this paragraph, but it seems=
 regarding
>>> only ported app's source=A0 code:
>>>  https://www.freebsd.org/doc/en/books/porters-handbook/porting-versions=
.html
>>=20
>>=20
>> Sorry, just found by myself. I included these lines before the do-instal=
l 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 the p=
orts system
> will complain already. Please don't include that block in your port.
>=20
> # Adam

Thank you Adam, I wrote my previous post before reading Matthew's reply.

I removed that check from my port.



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