Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2017 16:07:26 +0000
From:      Andrew Hotlab <andrew.hotlab@hotmail.com>
To:        "freebsd-ports@freebsd.org" <freebsd-ports@freebsd.org>
Subject:   [SOLVED] How to create a port only for specific FreeBSD releases
Message-ID:  <AM3PR02MB3129086752D5917850B5F40F6570@AM3PR02MB312.eurprd02.prod.outlook.com>
In-Reply-To: <AM3PR02MB31216E353C3B32EAA4DA445F6570@AM3PR02MB312.eurprd02.prod.outlook.com>
References:  <AM3PR02MB31216E353C3B32EAA4DA445F6570@AM3PR02MB312.eurprd02.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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  =20
> Hi to all, I'm trying to make a port which installs only a couple of simp=
le scripts
> (thus NO_BUILD,=A0NO_ARCH, and void MASTER_SITES and DISTFILES...).
>=20
> Since these scripts are designed=A0to 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 FreeB=
SD
> releases. In the Porter's Handbook I found this paragraph, but it seems r=
egarding
> only ported app's=A0source  code:
> https://www.freebsd.org/doc/en/books/porters-handbook/porting-versions.ht=
ml


Sorry, just found by myself. I included these lines before the do-install s=
ection:

.include <bsd.port.pre.mk>
.if ${OSVERSION} < 1000100
IGNORE=3D         runs only on FreeBSD 10.0 and newer
.endif



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